Skip to content

Improve update-reproducibles workflow: auto-push for internal PRs, verify for forks#8714

Open
roger-zhangg wants to merge 3 commits intoaws:developfrom
roger-zhangg:update-reproducible-enhance
Open

Improve update-reproducibles workflow: auto-push for internal PRs, verify for forks#8714
roger-zhangg wants to merge 3 commits intoaws:developfrom
roger-zhangg:update-reproducible-enhance

Conversation

@roger-zhangg
Copy link
Member

@roger-zhangg roger-zhangg commented Feb 27, 2026

Changes

  • For internal PRs (same repo): auto-updates reproducible requirements and pushes back to the branch
  • For fork PRs: verifies requirements are up to date, fails with a clear error message if stale

@roger-zhangg roger-zhangg requested a review from a team as a code owner February 27, 2026 23:06
reedham-aws
reedham-aws previously approved these changes Feb 27, 2026
@roger-zhangg
Copy link
Member Author

looks like this if external PR need update reproducible
https://github.com/roger-zhangg/aws-sam-cli/actions/runs/22507576283/job/65209671730?pr=12

Before this action will fail directly on external prs when it got triggered

run: make update-reproducible-reqs-uv
- name: Fail if requirements are out of date
run: |
if ! git diff --quiet requirements/reproducible-*.txt; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Correct me if I'm wrong here. This check here is basically just asking contributors to run make update-reproducible-reqs-uv if they are making any changes to requirements file and otherwise too, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes that's the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants