Skip to content

Commit

Permalink
ci: merge label for iceberg tests & add auto labeler (#20574)
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan authored Feb 21, 2025
1 parent e202dac commit e97b914
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ labels:
- label: "ci/run-e2e-test-other-backends"
files:
- "src\\/meta\\/.*.rs"

- label: "ci/run-e2e-iceberg-tests"
files:
- ".*iceberg.*"
4 changes: 2 additions & 2 deletions ci/workflows/main-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ steps:
command: "ci/scripts/e2e-iceberg-sink-test.sh -p ci-release"
if: |
!(build.pull_request.labels includes "ci/main-cron/run-selected") && build.env("CI_STEPS") == null
|| build.pull_request.labels includes "ci/run-e2e-iceberg-sink-tests"
|| build.pull_request.labels includes "ci/run-e2e-iceberg-tests"
|| build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-sink-tests?(,|$$)/
depends_on:
- "build"
Expand All @@ -432,7 +432,7 @@ steps:
command: "ci/scripts/e2e-iceberg-sink-v2-test.sh -p ci-release"
if: |
!(build.pull_request.labels includes "ci/main-cron/run-selected") && build.env("CI_STEPS") == null
|| build.pull_request.labels includes "ci/run-e2e-iceberg-sink-v2-tests"
|| build.pull_request.labels includes "ci/run-e2e-iceberg-tests"
|| build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-sink-v2-tests?(,|$$)/
depends_on:
- "build"
Expand Down
8 changes: 4 additions & 4 deletions ci/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ steps:
retry: *auto-retry

- label: "end-to-end iceberg sink test"
if: build.pull_request.labels includes "ci/run-e2e-iceberg-sink-tests" || build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-sink-tests?(,|$$)/
if: build.pull_request.labels includes "ci/run-e2e-iceberg-tests" || build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-sink-tests?(,|$$)/
command: "ci/scripts/e2e-iceberg-sink-test.sh -p ci-dev"
depends_on:
- "build"
Expand All @@ -253,7 +253,7 @@ steps:
retry: *auto-retry

- label: "end-to-end iceberg sink v2 test"
if: build.pull_request.labels includes "ci/run-e2e-iceberg-sink-tests" || build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-sink-tests?(,|$$)/
if: build.pull_request.labels includes "ci/run-e2e-iceberg-tests" || build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-sink-tests?(,|$$)/
command: "ci/scripts/e2e-iceberg-sink-v2-test.sh -p ci-dev"
depends_on:
- "build"
Expand All @@ -267,7 +267,7 @@ steps:
retry: *auto-retry

- label: "end-to-end iceberg cdc test"
if: build.pull_request.labels includes "ci/run-e2e-iceberg-sink-tests" || build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-sink-tests?(,|$$)/
if: build.pull_request.labels includes "ci/run-e2e-iceberg-tests" || build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-sink-tests?(,|$$)/
command: "ci/scripts/e2e-iceberg-cdc.sh -p ci-dev"
depends_on:
- "build"
Expand All @@ -281,7 +281,7 @@ steps:
retry: *auto-retry

- label: "end-to-end iceberg engine test"
if: build.pull_request.labels includes "ci/run-e2e-iceberg-engine-tests" || build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-engine-tests?(,|$$)/
if: build.pull_request.labels includes "ci/run-e2e-iceberg-tests" || build.env("CI_STEPS") =~ /(^|,)e2e-iceberg-engine-tests?(,|$$)/
command: "ci/scripts/e2e-iceberg-engine-test.sh -p ci-dev"
depends_on:
- "build"
Expand Down

0 comments on commit e97b914

Please sign in to comment.