Skip to content

GH-55261: [CI] Stop running Extra CI jobs on push to main and push docker images on scheduled trigger events - #55262

Merged
kou merged 3 commits into
apache:mainfrom
raulcd:GH-55261
Oct 26, 2026
Merged

kou merged 3 commits into
apache:mainfrom
raulcd:GH-55261

Conversation

@raulcd

@raulcd raulcd commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

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:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

Copilot AI balanced review requested due to automatic review settings October 26, 2026 10:38
@raulcd

raulcd commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

@kou @rok thoughts?

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #55261 has been automatically assigned in GitHub to PR creator.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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’s main branch.
  • 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

@rok

rok commented Oct 26, 2026

Copy link
Copy Markdown
Member

This is already done on PR CI and nightly? If so then let's do it.

@raulcd

raulcd commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

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 kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+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 tarball

We can do this in other Extra CI jobs.

Copilot AI balanced review requested due to automatic review settings October 26, 2026 12:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The targeted condition changes preserve the intended build paths, with no blocking issues identified.

No open issues 🎉

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings October 26, 2026 12:22
@raulcd raulcd changed the title GH-55261: [CI] Stop running Linux Packaging jobs on push to main GH-55261: [CI] Stop running Extra CI jobs on push to main and push docker images on scheduled trigger events Oct 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The narrow condition changes preserve scheduled image publication and existing tag and label paths, with no unresolved findings.

No open issues 🎉

Review effort: Balanced

@raulcd

raulcd commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

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.

@kou
kou merged commit 7454dec into apache:main Oct 26, 2026
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants