Raymond Toy pushed to branch issue-478-run-analyzer-link-chcker-on-schedule at cmucl / cmucl Commits: 81e241ae by Raymond Toy at 2026-03-11T14:26:42-07:00 Revert "Experiment: Add schedule rules to all tasks" This reverts commit 3ba0ba2a191cfece43bd2ee64ceca1165503c718. [skip-ci] - - - - - 1 changed file: - .gitlab-ci.yml Changes: ===================================== .gitlab-ci.yml ===================================== @@ -110,18 +110,6 @@ variables: - CMUCL=../../dist/bin/lisp ./run-cmucl.sh - ../../snapshot/bin/lisp -load report -# Default rules to run things on a schedule -.rules_sched_template: &rules_schedule - rules: - # 1. Ensure build runs for schedules so the analyzer can use its files - - if: $CI_PIPELINE_SOURCE == "schedule" - when: on_success - # 2. Ensure build runs if the analyzer variable is set - - if: $RUN_ANALYSIS - when: on_success - # 3. Default: run for standard pushes/MRs - - when: on_success - stages: - install - build @@ -136,16 +124,23 @@ cache: #### Linux jobs #### linux:install: <<: *install_configuration - <<: *rules_schedule tags: - linux variables: osname: "linux" CURL: "curl" + rules: + # 1. Ensure build runs for schedules so the analyzer can use its files + - if: $CI_PIPELINE_SOURCE == "schedule" + when: on_success + # 2. Ensure build runs if the analyzer variable is set + - if: $RUN_ANALYSIS + when: on_success + # 3. Default: run for standard pushes/MRs + - when: on_success linux:build: <<: *build_configuration - <<: *rules_schedule tags: - linux needs: @@ -155,6 +150,15 @@ linux:build: # Fedora 41 must build with gcc because the clang build fails some # ansi-tests. See [#469]. CONFIG: "x86_linux" + rules: + # 1. Ensure build runs for schedules so the analyzer can use its files + - if: $CI_PIPELINE_SOURCE == "schedule" + when: on_success + # 2. Ensure build runs if the analyzer variable is set + - if: $RUN_ANALYSIS + when: on_success + # 3. Default: run for standard pushes/MRs + - when: on_success linux:cross-build: stage: build @@ -190,7 +194,6 @@ linux:cross-build: linux:test: <<: *unit_test_configuration - <<: *rules_schedule tags: - linux needs: @@ -200,7 +203,6 @@ linux:test: linux:exec-test: <<: *exec_test_configuration - <<: *rules_schedule tags: - linux needs: @@ -224,7 +226,6 @@ linux:cross-test: linux:ansi-test: <<: *ansi_test_configuration - <<: *rules_schedule tags: - linux needs: @@ -234,7 +235,6 @@ linux:ansi-test: linux:benchmark: <<: *benchmark_configuration - <<: *rules_schedule tags: - linux needs: @@ -246,7 +246,6 @@ linux:benchmark: #### OSX (Mac) jobs #### osx:install: <<: *install_configuration - <<: *rules_schedule tags: - macos-virtualbox variables: @@ -255,7 +254,6 @@ osx:install: osx:build: <<: *build_configuration - <<: *rules_schedule tags: - macos-virtualbox needs: @@ -266,7 +264,6 @@ osx:build: osx:test: <<: *unit_test_configuration - <<: *rules_schedule tags: - macos-virtualbox needs: @@ -276,7 +273,6 @@ osx:test: osx:exec-test: <<: *exec_test_configuration - <<: *rules_schedule tags: - macos-virtualbox needs: @@ -285,7 +281,6 @@ osx:exec-test: osx:ansi-test: <<: *ansi_test_configuration - <<: *rules_schedule tags: - macos-virtualbox needs: @@ -295,7 +290,6 @@ osx:ansi-test: osx:benchmark: <<: *benchmark_configuration - <<: *rules_schedule tags: - macos-virtualbox needs: @@ -307,7 +301,6 @@ osx:benchmark: # Optional job that runs the static analyzer. It needs the files from # the linux-4 directory built in the linux:build job. linux:static-analyzer: - <<: *rules_schedule stage: analyze tags: @@ -319,6 +312,15 @@ linux:static-analyzer: needs: - job: linux:build artifacts: true + rules: + # 1. If the pipeline is a scheduled run, run this job automatically + - if: $CI_PIPELINE_SOURCE == "schedule" + when: on_success + # 2. If the variable is set (manually via UI/API), run automatically. + - if: $RUN_ANALYSIS + when: on_success + # 3. Otherwise, the job remains a manual button in the pipeline. + - when: manual # Allows the pipeline to proceed and show a "passed with warnings" # status (orange) instead of "failed" (red) if this job exits with an error. allow_failure: true @@ -333,7 +335,6 @@ linux:static-analyzer: #### OpenSUSE jobs #### ubuntu:install: <<: *install_configuration - <<: *rules_schedule tags: - ubuntu variables: @@ -342,7 +343,6 @@ ubuntu:install: ubuntu:build: <<: *build_configuration - <<: *rules_schedule tags: - ubuntu needs: @@ -356,7 +356,6 @@ ubuntu:build: ubuntu:test: <<: *unit_test_configuration - <<: *rules_schedule tags: - ubuntu needs: @@ -366,7 +365,6 @@ ubuntu:test: ubuntu:ansi-test: <<: *ansi_test_configuration - <<: *rules_schedule tags: - ubuntu needs: @@ -380,12 +378,20 @@ ubuntu:ansi-test: # From https://github.com/tcort/markdown-link-check # Checks links on the wiki pages whenever any wiki markdown pages change. markdown-link-check: - <<: *rules_schedule stage: markdown-link-check # Only the linux runner has markdown-link-check installed tags: - linux + rules: + # 1. If the pipeline is a scheduled run, run this job automatically + - if: $CI_PIPELINE_SOURCE == "schedule" + when: on_success + # 2. If the variable is set (manually via UI/API), run automatically. + - if: $RUN_ANALYSIS + when: on_success + # 3. Otherwise, the job remains a manual button in the pipeline. + - when: manual # It's ok if this fails; we don't want to declare the entire # pipeline as having failed. allow_failure: true View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/81e241aebaa20093c22770d1... -- View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/81e241aebaa20093c22770d1... You're receiving this email because of your account on gitlab.common-lisp.net.