Repository navigation
GH-55261: [CI] Stop running Extra CI jobs on push to main and push docker images on scheduled trigger events - #55262
Conversation
|
|
There was a problem hiding this comment.
🟢 Approval recommended
The narrow condition removal matches the intended scope and leaves the remaining enablement conditions unchanged.
No open issues 🎉
What changed in this PR
Reduces shared CI resource usage by disabling Linux packaging jobs on pushes to main, as requested in GH-55261.
Changes:
- Removes the condition enabling Linux packaging jobs for pushes to
apache/arrow’smainbranch. - Preserves eligibility for tags, nightly schedules, and appropriately labeled pull requests.
| File | Description |
|---|---|
.github/workflows/package_linux.yml |
Removes main-push eligibility from the packaging enablement condition. |
Review effort: Balanced
|
This is already done on PR CI and nightly? If so then let's do it. |
yes, other extra CI jobs require to run on push to main due to docker images being generated and pushed only on those cases. Even though we could generate them on the schedule job instead of running them on main. I could follow that up as an improvement, @kou what do you think about that one? |
kou
left a comment
There was a problem hiding this comment.
+1
Linux jobs also push Docker images on push to main. How about adding the following change to this PR?
diff --git a/.github/workflows/package_linux.yml b/.github/workflows/package_linux.yml
index 8cc6de3a9f..10c967854d 100644
--- a/.github/workflows/package_linux.yml
+++ b/.github/workflows/package_linux.yml
@@ -265,9 +265,7 @@ jobs:
- name: Docker Push
continue-on-error: true
if: >-
- success() &&
- github.event_name == 'push' &&
- github.ref_name == 'main'
+ success() && github.event_name == 'schedule'
run: |
rake -C dev/tasks/linux-packages/apache-arrow docker:push:${TARGET}
- name: Build artifact tarballWe can do this in other Extra CI jobs.
|
Sorry @kou you are right, I missed we were pushing docker images on Linux Packaging jobs (not sure how I searched :P). I've updated the rest of the workflows to the the same. Do not run on push to main and push docker images when the scheduled job is triggered. |
Rationale for this change
We are using too many CI resources from the shared pool. Running Linux Packaging jobs and other Extra CI jobs on main currently seems a waste of resources.
What changes are included in this PR?
Remove the ability to run Extra CI jobs when we push to main and push the docker images on the scheduled events.
Are these changes tested?
No.
Are there any user-facing changes?
No
Was AI used for this PR?
In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.
PR code and description written by:
Reviewed before submission by: