Skip to content

ci: refresh Rust caches on main changes - #3205

Merged
CTTY merged 5 commits into
apache:mainfrom
kevinjqliu:kevinjqliu-rust-shared-cache-warming
Sep 12, 2026
Merged

ci: refresh Rust caches on main changes#3205
CTTY merged 5 commits into
apache:mainfrom
kevinjqliu:kevinjqliu-rust-shared-cache-warming

Conversation

@kevinjqliu

@kevinjqliu kevinjqliu commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Our Rust caches are only saved on pushes to main. After those triggers were removed, PR and merge queue runs could restore old caches, but nothing refreshed them.

This restores path-filtered main pushes for the three workflows that write Rust caches. PR and merge group triggers stay unfiltered and restore-only.

Relates to: #3195, #3203

Copilot AI lite review requested due to automatic review settings September 12, 2026 00:40
@kevinjqliu kevinjqliu closed this Sep 12, 2026
@kevinjqliu
kevinjqliu deleted the kevinjqliu-rust-shared-cache-warming branch September 12, 2026 00:40
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues were identified.

Pull request overview

Refreshes trusted Rust caches on main only when relevant inputs change, while keeping PR and merge-queue validation unfiltered.

Changes:

  • Adds path-filtered main triggers to CI, public API, and Python workflows.
  • Removes redundant main triggers from zizmor and ASF allowlist checks.
File summaries
File Summary
.github/workflows/zizmor.yml Removes redundant main push trigger.
.github/workflows/public-api.yml Filters public API cache-refresh runs.
.github/workflows/ci.yml Filters trusted Rust cache-refresh runs.
.github/workflows/bindings_python_ci.yml Filters Python Rust-cache refreshes.
.github/workflows/asf-allowlist-check.yml Removes redundant main push trigger.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kevinjqliu kevinjqliu changed the title ci: refresh Rust caches on main changes ci: warm shared Rust caches on main Sep 12, 2026
@kevinjqliu kevinjqliu reopened this Sep 12, 2026
@kevinjqliu
kevinjqliu force-pushed the kevinjqliu-rust-shared-cache-warming branch from 8861d82 to ad59b4a Compare September 12, 2026 00:44
@kevinjqliu kevinjqliu closed this Sep 12, 2026
@kevinjqliu
kevinjqliu restored the kevinjqliu-rust-shared-cache-warming branch September 12, 2026 00:46
@kevinjqliu kevinjqliu reopened this Sep 12, 2026
@kevinjqliu
kevinjqliu force-pushed the kevinjqliu-rust-shared-cache-warming branch from ad59b4a to 481a89a Compare September 12, 2026 00:46
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@kevinjqliu kevinjqliu changed the title ci: warm shared Rust caches on main ci: refresh Rust caches on main changes Sep 12, 2026
kevinjqliu and others added 2 commits September 11, 2026 17:53
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@kevinjqliu kevinjqliu left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unlike pyiceberg, iceberg-rust hydrates cache using main branch. So we gotta put these main branch triggers back

push:
branches:
- main
paths:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread .github/workflows/ci.yml
push:
branches:
- main
paths:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

push:
branches:
- main
paths:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment thread .github/workflows/ci.yml
on:
push:
branches:
- main

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

main push trigger is needed to hydrate cache

save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

on:
push:
branches:
- main

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

main push trigger is needed to hydrate cache

save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

on:
push:
branches:
- main

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

main push trigger is needed to hydrate cache

save-if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

@kevinjqliu
kevinjqliu requested review from CTTY and blackmwk September 12, 2026 01:01

@CTTY CTTY left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for fixing this!

@CTTY
CTTY added this pull request to the merge queue Sep 12, 2026
Merged via the queue into apache:main with commit be48041 Sep 12, 2026
23 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.

3 participants