Skip to content

Commit

Permalink
chore(ci): add workflow to automate bumping aztec-packages commit (#7465
Browse files Browse the repository at this point in the history
)
  • Loading branch information
TomAFrench authored Feb 20, 2025
1 parent ceaa198 commit 752dc04
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/bump-aztec-packages-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Bump external repos pinned commits

on:
workflow_dispatch:
schedule:
# Trigger at 8am on Mondays
- cron: '0 8 * * 1'


jobs:
bump-commit:
name: Update external repo pinned commits
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: master

- name: Check for existing PR
id: pr-check
run: |
set -xue # print commands
PR_URL=$(gh pr list --repo noir-lang/noir --head bump-aztec-packages --json url --jq ".[0].url")
echo "pr_url=$PR_URL" >> $GITHUB_OUTPUT
env:
GH_TOKEN: ${{ github.token }}

- name: Configure git
run: |
git config user.name noirwhal
git config user.email [email protected]
- name: Update commit
run: |
git checkout bump-aztec-packages || git checkout -b bump-aztec-packages
./scripts/bump-aztec-packages-commit.sh
git add .
git commit -m 'chore: Update pinned commit of aztec-packages'
git push --set-upstream origin bump-aztec-packages --force
- name: Create PR
if: ${{ steps.pr-check.outputs.pr_url == '' }}
run: |
PR_BODY="""
Automated update of the pinned commit of [aztec-packages](https://github.com/AztecProtocol/aztec-packages) repository against which we run benchmarks.
"""
gh pr create --repo noir-lang/noir --title "chore: bump external pinned commits" --body "$PR_BODY" --base master --head bump-aztec-packages
env:
GH_TOKEN: ${{ secrets.NOIR_REPO_TOKEN }}
File renamed without changes.

1 comment on commit 752dc04

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'Compilation Time'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 1.20.

Benchmark suite Current: 752dc04 Previous: ceaa198 Ratio
sha256_regression 1.26 s 0.969 s 1.30
regression_4709 0.934 s 0.709 s 1.32
ram_blowup_regression 25.1 s 20.1 s 1.25
global_var_regression_entry_points 0.685 s 0.52 s 1.32

This comment was automatically generated by workflow using github-action-benchmark.

CC: @TomAFrench

Please sign in to comment.