-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: visibility for type aliases (noir-lang/noir#6058)
feat: Sync from aztec-packages (noir-lang/noir#6151) feat: allow silencing an unused variable defined via `let` (noir-lang/noir#6149) feat: simplify sha256 implementation (noir-lang/noir#6142)
- Loading branch information
Showing
1,268 changed files
with
29,277 additions
and
20,767 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
*.nr linguist-language=Rust | ||
|
||
.yarn/releases/** binary | ||
.yarn/plugins/** binary | ||
yarn.lock -diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Aztec Network EKS Deployment | ||
|
||
# Manual trigerring of this workflow is intentionally disabled | ||
# Helm deployments do not support lock files | ||
# Without a lockfile, manual trigerring can lead to corrupted or partial deployments | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
- production | ||
pull_request: | ||
branches: | ||
- staging | ||
- production | ||
|
||
jobs: | ||
network_deployment: | ||
# This job will run on Ubuntu | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: deploy-${{ github.ref }} # Only one job per branch | ||
cancel-in-progress: false # Allow previous deployment to complete to avoid corruption | ||
|
||
# Set up a variable based on the branch name | ||
env: | ||
NAMESPACE: ${{ github.ref == 'refs/heads/production' && 'production' || 'staging' }} | ||
CHART_PATH: ./spartan/aztec-network | ||
|
||
steps: | ||
# Step 1: Check out the repository's code | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
# Step 2: Configure AWS credentials using GitHub Secrets | ||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-east-2 | ||
|
||
# Step 3: Set up Kubernetes context for AWS EKS | ||
- name: Configure kubectl with EKS cluster | ||
run: | | ||
aws eks update-kubeconfig --region us-east-2 --name spartan_cluster | ||
# Step 4: Install Helm | ||
- name: Install Helm | ||
run: | | ||
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash | ||
# Step 5: Apply Helm Chart | ||
- name: Deploy Helm chart | ||
run: | | ||
helm dependency update ${{ env.CHART_PATH }} | ||
helm upgrade --install ${{ env.NAMESPACE }} ${{ env.CHART_PATH }} --namespace ${{ env.NAMESPACE }} --atomic |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Redo Typo PR | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
pr_number: | ||
description: 'The PR number to redo' | ||
required: true | ||
type: string | ||
|
||
pull_request_target: | ||
types: [labeled] | ||
branches: | ||
- master | ||
paths-ignore: | ||
- '**/README.md' | ||
|
||
jobs: | ||
redo-typo-pr: | ||
if: github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'redo-typo-pr') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.AZTEC_BOT_GITHUB_TOKEN }} | ||
|
||
- name: Authenticate with GitHub CLI | ||
run: | | ||
echo "${{ secrets.AZTEC_BOT_GITHUB_TOKEN }}" | gh auth login --with-token | ||
- name: Set git configure for commits | ||
run: | | ||
# Identify ourselves, needed to commit | ||
git config --global user.name AztecBot | ||
git config --global user.email tech@aztecprotocol.com | ||
- name: Determine PR number | ||
id: determine-pr-number | ||
run: echo "PR_NUMBER=${{ github.event.inputs.pr_number || github.event.pull_request.number }}" >> $GITHUB_ENV | ||
|
||
- name: Run repo-typo-pr script | ||
run: ./scripts/redo-typo-pr ${{ env.PR_NUMBER }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,52 @@ | ||
# from https://github.com/orgs/community/discussions/67654 | ||
# adapted from https://github.com/orgs/community/discussions/67654 | ||
# altered to not rerun if we are not the newest commit in the run's branch | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
run_id: | ||
required: true | ||
|
||
jobs: | ||
rerun: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
actions: write | ||
actions: write # Needed for 'gh run rerun' | ||
steps: | ||
- name: rerun ${{ inputs.run_id }} | ||
- name: Wait for run to finish | ||
env: | ||
GH_REPO: ${{ github.repository }} | ||
GH_TOKEN: ${{ github.token }} | ||
GH_DEBUG: api | ||
run: | | ||
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1 | ||
gh run rerun ${{ inputs.run_id }} --failed | ||
- name: Rerun failed jobs if the commit is the latest on the branch | ||
env: | ||
GH_REPO: ${{ github.repository }} | ||
GH_TOKEN: ${{ github.token }} | ||
GH_DEBUG: api | ||
run: | | ||
RUN_ID="${{ inputs.run_id }}" | ||
# Get the run details | ||
RUN_INFO=$(gh run view $RUN_ID --json headSha,headBranch,event) | ||
# Extract the commit SHA, branch name, and event type | ||
COMMIT_SHA=$(echo "$RUN_INFO" | jq -r '.headSha') | ||
BRANCH_NAME=$(echo "$RUN_INFO" | jq -r '.headBranch') | ||
EVENT_TYPE=$(echo "$RUN_INFO" | jq -r '.event') | ||
# Only proceed if the event is a pull_request | ||
if [[ "$EVENT_TYPE" != "pull_request" ]]; then | ||
echo "Event type is $EVENT_TYPE. Skipping rerun." | ||
exit 0 | ||
fi | ||
# Get the latest commit SHA on the branch | ||
LATEST_COMMIT_SHA=$(gh api repos/${{ github.repository }}/commits/$BRANCH_NAME --jq .sha) | ||
# Compare the SHAs | ||
if [[ "$COMMIT_SHA" != "$LATEST_COMMIT_SHA" ]]; then | ||
echo "Commit $COMMIT_SHA is not the latest commit on branch $BRANCH_NAME (latest is $LATEST_COMMIT_SHA). Skipping rerun." | ||
else | ||
echo "Commit $COMMIT_SHA is the latest on branch $BRANCH_NAME. Proceeding with rerun." | ||
gh run rerun ${{ inputs.run_id }} --failed | ||
fi |
Oops, something went wrong.