drm/ci: fix merge request rules
Subsystems (3)
Vignesh Raman
maintainerPATCH v2 1/1 drm/ci: fix merge request rules
Merge request pipelines were only created when changes were made to drivers/gpu/drm/ci/, causing MRs that didn't touch this path to break. Fix MR pipeline rules to trigger jobs for all changes.
Run jobs automatically for marge-bot and scheduled pipelines, but in all other cases run manually. Also remove CI_PROJECT_NAMESPACE checks specific to mesa.
---
v2:
- Run jobs automatically for marge-bot and scheduled pipelines, but in all other cases run manually. Also remove CI_PROJECT_NAMESPACE checks specific to mesa.
--- drivers/gpu/drm/ci/gitlab-ci.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)
drivers/gpu/drm/ci/gitlab-ci.yml +5 -16
@@ -143,11 +143,11 @@ stages: # Pre-merge pipeline - if: &is-pre-merge $CI_PIPELINE_SOURCE == "merge_request_event" # Push to a branch on a fork - - if: &is-fork-push $CI_PROJECT_NAMESPACE != "mesa" && $CI_PIPELINE_SOURCE == "push" + - if: &is-fork-push $CI_PIPELINE_SOURCE == "push" # nightly pipeline - if: &is-scheduled-pipeline $CI_PIPELINE_SOURCE == "schedule" # pipeline for direct pushes that bypassed the CI - - if: &is-direct-push $CI_PROJECT_NAMESPACE == "mesa" && $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot" + - if: &is-direct-push $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot" # Rules applied to every job in the pipeline
@@ -170,26 +170,15 @@ stages: - !reference [.disable-farm-mr-rules, rules] # Never run immediately after merging, as we just ran everything - !reference [.never-post-merge-rules, rules] - # Build everything in merge pipelines, if any files affecting the pipeline - # were changed + # Build everything in merge pipelines - if: *is-merge-attempt - changes: &all_paths - - drivers/gpu/drm/ci/**/* when: on_success # Same as above, but for pre-merge pipelines - if: *is-pre-merge - changes: - *all_paths - when: manual - # Skip everything for pre-merge and merge pipelines which don't change - # anything in the build - - if: *is-merge-attempt - when: never - - if: *is-pre-merge - when: never + - when: manual # Build everything after someone bypassed the CI - if: *is-direct-push - when: on_success + - when: manual # Build everything in scheduled pipelines - if: *is-scheduled-pipeline when: on_success
Signature · 1 line
2.47.2
Em qui., 27 de fev. de 2025 às 01:21, Vignesh Raman <[email protected]> escreveu:
Quoted 6 lines
Merge request pipelines were only created when changes were made to
drivers/gpu/drm/ci/, causing MRs that didn't touch this path to break. Fix MR pipeline rules to trigger jobs for all changes.
Quoted 6 lines
Run jobs automatically for marge-bot and scheduled pipelines, but in all other cases run manually. Also remove
CI_PROJECT_NAMESPACEchecks specific to mesa.Fixes df54f04f2020 ("drm/ci: update gitlab rules")Signed-off-by Vignesh Raman <[email protected]>
Quoted 62 lines
---
v2:
- Run jobs automatically for marge-bot and scheduled pipelines, but in all other cases run manually. Also removeCI_PROJECT_NAMESPACEchecks specific to mesa.--- drivers/gpu/drm/ci/gitlab-ci.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)drivers/gpu/drm/ci/gitlab-ci.yml +5
-17@@ -143,11 +143,11 @@ stages: # Pre-merge pipeline - if: &is-pre-merge $CI_PIPELINE_SOURCE == "merge_request_event" # Push to a branch on a fork - - if: &is-fork-push $CI_PROJECT_NAMESPACE != "mesa" && $CI_PIPELINE_SOURCE == "push" + - if: &is-fork-push $CI_PIPELINE_SOURCE == "push" # nightly pipeline - if: &is-scheduled-pipeline $CI_PIPELINE_SOURCE == "schedule" # pipeline for direct pushes that bypassed the CI - - if: &is-direct-push $CI_PROJECT_NAMESPACE == "mesa" && $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot" + - if: &is-direct-push $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot" # Rules applied to every job in the pipeline@@ -170,26 +170,15 @@ stages: - !reference [.disable-farm-mr-rules, rules] # Never run immediately after merging, as we just ran everything - !reference [.never-post-merge-rules, rules] - # Build everything in merge pipelines, if any files affecting the pipeline - # were changed + # Build everything in merge pipelines - if: *is-merge-attempt - changes: &all_paths - - drivers/gpu/drm/ci/**/* when: on_success # Same as above, but for pre-merge pipelines - if: *is-pre-merge - changes: - *all_paths - when: manual - # Skip everything for pre-merge and merge pipelines which don't change - # anything in the build - - if: *is-merge-attempt - when: never - - if: *is-pre-merge - when: never + - when: manual # Build everything after someone bypassed the CI - if: *is-direct-push - when: on_success + - when: manual # Build everything in scheduled pipelines - if: *is-scheduled-pipeline when: on_success --2.47.2
Signature · 1 line
Helen Koike
Quoted 53 lines · Vignesh Raman
Merge request pipelines were only created when changes were made to
drivers/gpu/drm/ci/, causing MRs that didn't touch this path to break. Fix MR pipeline rules to trigger jobs for all changes.Run jobs automatically for marge-bot and scheduled pipelines, but in all other cases run manually. Also remove
CI_PROJECT_NAMESPACEchecks specific to mesa.Fixes df54f04f2020 ("drm/ci: update gitlab rules")Signed-off-by Vignesh Raman <[email protected]>---
v2:
- Run jobs automatically for marge-bot and scheduled pipelines, but in all other cases run manually. Also removeCI_PROJECT_NAMESPACEchecks specific to mesa.--- drivers/gpu/drm/ci/gitlab-ci.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)drivers/gpu/drm/ci/gitlab-ci.yml +3
-6@@ -143,11 +143,11 @@ stages: # Pre-merge pipeline - if: &is-pre-merge $CI_PIPELINE_SOURCE == "merge_request_event" # Push to a branch on a fork - - if: &is-fork-push $CI_PROJECT_NAMESPACE != "mesa" && $CI_PIPELINE_SOURCE == "push" + - if: &is-fork-push $CI_PIPELINE_SOURCE == "push" # nightly pipeline - if: &is-scheduled-pipeline $CI_PIPELINE_SOURCE == "schedule" # pipeline for direct pushes that bypassed the CI - - if: &is-direct-push $CI_PROJECT_NAMESPACE == "mesa" && $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot" + - if: &is-direct-push $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot" # Rules applied to every job in the pipeline@@ -170,26 +170,15 @@ stages: - !reference [.disable-farm-mr-rules, rules] # Never run immediately after merging, as we just ran everything - !reference [.never-post-merge-rules, rules] - # Build everything in merge pipelines, if any files affecting the pipeline - # were changed + # Build everything in merge pipelines - if: *is-merge-attempt - changes: &all_paths - - drivers/gpu/drm/ci/**/* when: on_success # Same as above, but for pre-merge pipelines - if: *is-pre-merge
drivers/gpu/drm/ci/gitlab-ci.yml stages: · line 178
Quoted 10 lines
drivers/gpu/drm/ci/gitlab-ci.yml +1
-9- changes: - *all_paths - when: manual - # Skip everything for pre-merge and merge pipelines which don't change - # anything in the build - - if: *is-merge-attempt - when: never - - if: *is-pre-merge - when: never + - when: manual
I believe there should be no dash on this line
drivers/gpu/drm/ci/gitlab-ci.yml stages: · line 181
Quoted 4 lines
drivers/gpu/drm/ci/gitlab-ci.yml +1
-1# Build everything after someone bypassed the CI - if: *is-direct-push - when: on_success + - when: manual
And on this line too.
Quoted 6 lines
drivers/gpu/drm/ci/gitlab-ci.yml +0
-0# Build everything in scheduled pipelines - if: *is-scheduled-pipeline when: on_successSignature · 1 line
2.47.2
Signature · 2 lines
With best wishes Dmitry
Vignesh Raman
maintainerHi Dmitry,
Quoted 67 lines · Dmitry Baryshkov
Quoted 53 lines · Vignesh Raman
Merge request pipelines were only created when changes were made to
drivers/gpu/drm/ci/, causing MRs that didn't touch this path to break. Fix MR pipeline rules to trigger jobs for all changes.Run jobs automatically for marge-bot and scheduled pipelines, but in all other cases run manually. Also remove
CI_PROJECT_NAMESPACEchecks specific to mesa.Fixes df54f04f2020 ("drm/ci: update gitlab rules")Signed-off-by Vignesh Raman <[email protected]>---
v2:
- Run jobs automatically for marge-bot and scheduled pipelines, but in all other cases run manually. Also removeCI_PROJECT_NAMESPACEchecks specific to mesa.--- drivers/gpu/drm/ci/gitlab-ci.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-)drivers/gpu/drm/ci/gitlab-ci.yml +3
-6@@ -143,11 +143,11 @@ stages: # Pre-merge pipeline - if: &is-pre-merge $CI_PIPELINE_SOURCE == "merge_request_event" # Push to a branch on a fork - - if: &is-fork-push $CI_PROJECT_NAMESPACE != "mesa" && $CI_PIPELINE_SOURCE == "push" + - if: &is-fork-push $CI_PIPELINE_SOURCE == "push" # nightly pipeline - if: &is-scheduled-pipeline $CI_PIPELINE_SOURCE == "schedule" # pipeline for direct pushes that bypassed the CI - - if: &is-direct-push $CI_PROJECT_NAMESPACE == "mesa" && $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot" + - if: &is-direct-push $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot" # Rules applied to every job in the pipeline@@ -170,26 +170,15 @@ stages: - !reference [.disable-farm-mr-rules, rules] # Never run immediately after merging, as we just ran everything - !reference [.never-post-merge-rules, rules] - # Build everything in merge pipelines, if any files affecting the pipeline - # were changed + # Build everything in merge pipelines - if: *is-merge-attempt - changes: &all_paths - - drivers/gpu/drm/ci/**/* when: on_success # Same as above, but for pre-merge pipelines - if: *is-pre-mergedrivers/gpu/drm/ci/gitlab-ci.yml stages: · line 178
Quoted 10 lines
drivers/gpu/drm/ci/gitlab-ci.yml +1
-9- changes: - *all_paths - when: manual - # Skip everything for pre-merge and merge pipelines which don't change - # anything in the build - - if: *is-merge-attempt - when: never - - if: *is-pre-merge - when: never + - when: manualI believe there should be no dash on this line
Quoted 6 lines
drivers/gpu/drm/ci/gitlab-ci.yml stages: · line 181
Quoted 4 lines
drivers/gpu/drm/ci/gitlab-ci.yml +1
-1# Build everything after someone bypassed the CI - if: *is-direct-push - when: on_success + - when: manualAnd on this line too.
Thanks for spotting this. Will fix and send v3.
Regards,
Vignesh
Quoted 8 lines
Quoted 7 lines
drivers/gpu/drm/ci/gitlab-ci.yml +0
-0# Build everything in scheduled pipelines - if: *is-scheduled-pipeline when: on_successSignature · 1 line
2.47.2