ci: Add rules:changes:compare_to to the job rules
By default MR pipelines always compare against the target branch, however branch pipelines compare the difference of the last two commit. This means that once we merge something, jobs that we expected to run, might not depending on what the last two commits touched. Add rules:changes:compare_to: keyword so the behavior is the same between branch and MR pipelines. https://docs.gitlab.com/ee/ci/yaml/index.html#ruleschangescompare_to Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3780 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7507>
This commit is contained in:
parent
d8421a1f42
commit
dcd11f0a10
@ -324,6 +324,7 @@ commitlint:
|
|||||||
.gtk-build-rules:
|
.gtk-build-rules:
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- ".gitlab-ci.yml"
|
- ".gitlab-ci.yml"
|
||||||
- "meson.build"
|
- "meson.build"
|
||||||
@ -360,9 +361,11 @@ commitlint:
|
|||||||
rules:
|
rules:
|
||||||
- !reference [.upstream-branch-rules, rules]
|
- !reference [.upstream-branch-rules, rules]
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
*modules_changes
|
*modules_changes
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "subprojects/gstreamer-vaapi/**/*"
|
- "subprojects/gstreamer-vaapi/**/*"
|
||||||
|
|
||||||
@ -482,9 +485,11 @@ build debian x86_64:
|
|||||||
- !reference [.gtk-build-rules, rules]
|
- !reference [.gtk-build-rules, rules]
|
||||||
- !reference [.upstream-branch-rules, rules]
|
- !reference [.upstream-branch-rules, rules]
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
*modules_changes
|
*modules_changes
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "subprojects/win-*/*"
|
- "subprojects/win-*/*"
|
||||||
script:
|
script:
|
||||||
@ -605,9 +610,11 @@ build macos:
|
|||||||
- !reference [.gtk-build-rules, rules]
|
- !reference [.gtk-build-rules, rules]
|
||||||
- !reference [.upstream-branch-rules, rules]
|
- !reference [.upstream-branch-rules, rules]
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
*modules_changes
|
*modules_changes
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "subprojects/macos-*/*"
|
- "subprojects/macos-*/*"
|
||||||
parallel:
|
parallel:
|
||||||
@ -654,6 +661,7 @@ build macos:
|
|||||||
PYTHONFAULTHANDLER: "enabled"
|
PYTHONFAULTHANDLER: "enabled"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
*modules_changes
|
*modules_changes
|
||||||
script:
|
script:
|
||||||
@ -692,9 +700,11 @@ check fedora:
|
|||||||
TEST_SUITE: "check.gst*"
|
TEST_SUITE: "check.gst*"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
*modules_changes
|
*modules_changes
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "subprojects/gstreamer-vaapi/**/*"
|
- "subprojects/gstreamer-vaapi/**/*"
|
||||||
|
|
||||||
@ -744,6 +754,7 @@ check video formats:
|
|||||||
- $CI_PROJECT_DIR/ci/scripts/check-video-formats.sh
|
- $CI_PROJECT_DIR/ci/scripts/check-video-formats.sh
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "${VIDEO_HEADER}"
|
- "${VIDEO_HEADER}"
|
||||||
- "${WL_HEADER}"
|
- "${WL_HEADER}"
|
||||||
@ -837,6 +848,7 @@ fluster v4l2-stateless on visl:
|
|||||||
junit: build/fluster-results-*.xml
|
junit: build/fluster-results-*.xml
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- ".gitlab-ci.yml"
|
- ".gitlab-ci.yml"
|
||||||
- ".gitlab-image-tags.yml"
|
- ".gitlab-image-tags.yml"
|
||||||
@ -856,9 +868,11 @@ fluster v4l2-stateless on visl:
|
|||||||
EXTRA_VALIDATE_ARGS: "--valgrind"
|
EXTRA_VALIDATE_ARGS: "--valgrind"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
*modules_changes
|
*modules_changes
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "subprojects/gstreamer-vaapi/**/*"
|
- "subprojects/gstreamer-vaapi/**/*"
|
||||||
|
|
||||||
@ -868,6 +882,7 @@ valgrind core:
|
|||||||
TEST_SUITE: "check.gstreamer\\..*"
|
TEST_SUITE: "check.gstreamer\\..*"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "*"
|
- "*"
|
||||||
- "scripts/*"
|
- "scripts/*"
|
||||||
@ -881,6 +896,7 @@ valgrind base:
|
|||||||
TEST_SUITE: "check.gst-plugins-base\\..*"
|
TEST_SUITE: "check.gst-plugins-base\\..*"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "*"
|
- "*"
|
||||||
- "scripts/*"
|
- "scripts/*"
|
||||||
@ -897,6 +913,7 @@ valgrind good:
|
|||||||
TIMEOUT_FACTOR: "4"
|
TIMEOUT_FACTOR: "4"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "*"
|
- "*"
|
||||||
- "scripts/*"
|
- "scripts/*"
|
||||||
@ -912,6 +929,7 @@ valgrind ugly:
|
|||||||
TEST_SUITE: "check.gst-plugins-ugly\\..*"
|
TEST_SUITE: "check.gst-plugins-ugly\\..*"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "*"
|
- "*"
|
||||||
- "scripts/*"
|
- "scripts/*"
|
||||||
@ -928,6 +946,7 @@ valgrind bad:
|
|||||||
TEST_SUITE: "check.gst-plugins-bad\\..*"
|
TEST_SUITE: "check.gst-plugins-bad\\..*"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "*"
|
- "*"
|
||||||
- "scripts/*"
|
- "scripts/*"
|
||||||
@ -944,6 +963,7 @@ valgrind ges:
|
|||||||
TEST_SUITE: "check.gst-editing-services\\..*"
|
TEST_SUITE: "check.gst-editing-services\\..*"
|
||||||
rules:
|
rules:
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- "*"
|
- "*"
|
||||||
- "scripts/*"
|
- "scripts/*"
|
||||||
@ -1015,6 +1035,7 @@ build documentation:
|
|||||||
- if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
|
- if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
|
||||||
when: never
|
when: never
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- ".gitlab-ci.yml"
|
- ".gitlab-ci.yml"
|
||||||
- ".gitlab-image-tags.yml"
|
- ".gitlab-image-tags.yml"
|
||||||
@ -1054,6 +1075,7 @@ cerbero trigger:
|
|||||||
- if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
|
- if: '$CI_PROJECT_NAMESPACE == "gstreamer" && $CI_COMMIT_BRANCH == $GST_UPSTREAM_BRANCH'
|
||||||
when: never
|
when: never
|
||||||
- changes:
|
- changes:
|
||||||
|
compare_to: "$GST_UPSTREAM_BRANCH"
|
||||||
paths:
|
paths:
|
||||||
- ".gitlab-ci.yml"
|
- ".gitlab-ci.yml"
|
||||||
- "ci/gitlab/*.py"
|
- "ci/gitlab/*.py"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user