Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Eigen DA Merge Main #290

Merged
merged 101 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
dab1eb2
feat(ci): Deprecate use of zk tool in docker-build process (#2901)
artmakh Sep 18, 2024
20442f6
test: Investigate L1 "nonce too low" errors (#2848)
slowli Sep 18, 2024
ba21c6e
fix(ci): vm perf to prometheus (#2909)
Deniallugo Sep 18, 2024
5cb04ed
feat(ci): Add building base docker image (#2913)
artmakh Sep 18, 2024
8729270
fix(ci): Fix multiarch for build-base CI (#2914)
artmakh Sep 18, 2024
86299e7
fix(ci): Switch build-base to ghcr.io (#2912)
artmakh Sep 18, 2024
8363c1d
feat: make `to` address optional for transaction data (#2852)
IAvecilla Sep 19, 2024
36e5340
feat(prover): WitnessGenerator refactoring #2 (#2899)
Artemka374 Sep 19, 2024
abe0440
feat(tee): use hex serialization for RPC responses (#2887)
pbeza Sep 19, 2024
55f1605
feat(ci): Add runtime-base image (#2919)
artmakh Sep 19, 2024
6acd606
fix(ci): Rename workflows for runner and builder base (#2921)
artmakh Sep 19, 2024
eda70b4
fix(ci): zksync-runtime-base proper platforms names (#2923)
artmakh Sep 19, 2024
1b06409
fix(ci): Proper type of var for platforms in docker build action (#2924)
artmakh Sep 19, 2024
ab898e7
fix(zk_toolbox): show readable log (#2911)
Deniallugo Sep 19, 2024
174dcf5
feat(ci): Migrate to vendored image as a zksync-runtime-base (#2926)
artmakh Sep 19, 2024
f6d68da
chore(main): release core 24.25.0 (#2816)
zksync-era-bot Sep 19, 2024
6ec528e
docs: Update system requirements (#2894)
brunoffranca Sep 19, 2024
209ac10
chore(vm): Bump vm2 repo revision (#2883)
slowli Sep 19, 2024
633bca4
feat(nix): use precompiled `rocksdb` and `snappy` (#2925)
haraldh Sep 19, 2024
2cec83f
feat(prover): Add endpoint to PJM to get queue reports (#2918)
Artemka374 Sep 19, 2024
38fc824
fix(eth-sender): print better error message in case of missing blob p…
tomg10 Sep 19, 2024
e9d1d90
feat: added seed_peers to consensus global config (#2920)
pompon0 Sep 20, 2024
7aa5721
feat(vm): Do not panic on VM divergence (#2705)
slowli Sep 20, 2024
1cf959d
feat(prover): Use query macro instead string literals for queries (#2…
Artemka374 Sep 20, 2024
48317e6
feat(circuit_prover): Add circuit prover (#2908)
EmilLuta Sep 20, 2024
d997041
refactor(vm): Refactor L1 batch params provider (#2891)
slowli Sep 20, 2024
a2d4126
feat(vm): Extract oneshot VM executor – environment types (#2885)
slowli Sep 23, 2024
44a8f79
fix(api_server): fix blob_gas length (#2673)
tomg10 Sep 23, 2024
878dab3
refactor: Improve EN Grafana dashboards (#2931)
brunoffranca Sep 23, 2024
7a53cd1
chore(main): release core 24.26.0 (#2928)
zksync-era-bot Sep 23, 2024
2224f8f
chore(ci): Fix CI building (#2936)
EmilLuta Sep 23, 2024
93bc66f
feat(vm): Split old and new VM implementations (#2915)
slowli Sep 23, 2024
9b63817
feat(zk_toolbox): Add options for selective installation of zk_incept…
matias-gonz Sep 24, 2024
7026637
feat(zk_toolbox): Add zk toolbox unit tests to zks test (#2935)
matias-gonz Sep 24, 2024
1095ae7
feat(circuit-prover): Add circuit_prover Dockerfile and build rules (…
EmilLuta Sep 24, 2024
72e2218
feat(contract-verifier): add new compilers (#2947)
perekopskiy Sep 24, 2024
9340480
ci: Copy setup_keys to docker/circuit-prover-gpu-gar (#2951)
yorik Sep 24, 2024
6313c7d
docs: fix invalid links to "namespaces/eth.rs" and "execution_sandbox…
mtzsky Sep 25, 2024
2edd8a2
chore(prover): Fixes broken non-GPU setup (#2953)
EmilLuta Sep 25, 2024
1fdbb30
chore(prover-gateway): Speed up polling (#2957)
EmilLuta Sep 25, 2024
218646a
fix(api): Return correct flat call tracer (#2917)
Deniallugo Sep 25, 2024
e214dd0
chore(main): release core 24.27.0 (#2940)
zksync-era-bot Sep 25, 2024
aa72d84
feat(eth-watch): redesign to support multiple chains (#2867)
tomg10 Sep 26, 2024
df68762
feat(prover): WG refactoring #3 (#2942)
Artemka374 Sep 26, 2024
191e81a
chore(eth-sender): remove deprecated proof loading (#2958)
perekopskiy Sep 26, 2024
3f406c7
fix(eth-watch): add missing check that from_block is not larger than …
tomg10 Sep 26, 2024
3010a19
refactor: Deleted unnecessary files (#2959)
brunoffranca Sep 26, 2024
c3d4bc1
fix: cargo-deny advisory due to structopt (#2972)
nbaztec Sep 26, 2024
692ea73
fix: ignore unknown fields in rpc json response (#2962)
pompon0 Sep 26, 2024
57b99d4
fix(zk_toolbox): Do not panic if mint is not successful (#2973)
Deniallugo Sep 26, 2024
cc954c4
initial commit
juan518munoz Sep 26, 2024
2dc65f0
feat: zk_toolbox command for setting attester committee (#2900)
pompon0 Sep 27, 2024
4ffbf42
fix: chainstack block limit exceeded (#2974)
sachanayush47 Sep 27, 2024
650d42f
feat(eth-sender): add a cap to time_in_mempool (#2978)
tomg10 Sep 27, 2024
7ad0425
chore: update derive_more to stable version (#2961)
nbaztec Sep 27, 2024
3150e0d
use Notify for a more deterministic approach
juan518munoz Sep 27, 2024
f4631e4
feat(da-clients): add secrets (#2954)
dimazhornyk Sep 27, 2024
79b6fcf
fix(api): Fix batch fee input for `debug` namespace (#2948)
slowli Sep 30, 2024
e7ead76
feat(zk_toolbox): add fees integration test to toolbox (#2898)
manuelmauro Sep 30, 2024
e0b6488
feat: Expose http debug page (#2952)
brunoffranca Sep 30, 2024
802b4e1
feat(zk_inception): Add ecosystem ports scanner (#2849)
sanekmelnikov Sep 30, 2024
ba03a4b
build: Set consensus and pruning as default for EN (#2956)
brunoffranca Oct 1, 2024
8b79b9a
fix(ci): Remove deprecated artifacts dir in contracts (#2989)
artmakh Oct 1, 2024
cdc1288
chore(zk_toolbox): Use load current chain function (#2990)
Deniallugo Oct 1, 2024
3b69e37
perf(api): More efficient gas estimation (#2937)
slowli Oct 1, 2024
b249827
test: Base token price client, fix: ratio calculation multiplicative …
cytadela8 Oct 2, 2024
af782ba
chore(githooks): Use zk_toolbox in githooks (#2895)
Deniallugo Oct 2, 2024
540e5d7
feat(zk_toolbox): Add SQL format for zk supervisor (#2950)
matias-gonz Oct 2, 2024
4870d8f
feat(ci): Add Makefile for easy local build (#2985)
artmakh Oct 2, 2024
f57719c
fix(zk_toolbox): wrong configs path for prover binaries (#2922)
Artemka374 Oct 2, 2024
eed8198
feat(zk_toolbox): Migrate db during update (#2995)
Deniallugo Oct 2, 2024
8c9b332
fix(ci): Bring back hack for contracts build till full migration to f…
artmakh Oct 2, 2024
8d24eb5
chore(main): release core 24.28.0 (#2968)
zksync-era-bot Oct 2, 2024
057705e
feat(zk_toolbox): Add subcommands and flags for chain registration (#…
sanekmelnikov Oct 2, 2024
b7ba428
fix(zk_toolbox): Correct secrets (#3004)
Deniallugo Oct 2, 2024
b108adc
replace atomic for mutex
juan518munoz Oct 2, 2024
1286def
move const to config
juan518munoz Oct 2, 2024
a5ac9c1
feat(ci): Add external-node build to Makefile (#3002)
artmakh Oct 3, 2024
092eed9
fix(zk_toolbox): Remove prover db from server init (#3009)
matias-gonz Oct 4, 2024
2a7e72b
fix(ci): Build zk-env with CUDA (#3013)
artmakh Oct 4, 2024
3a21329
Merge branch 'main' into da-eigen-merged-main
gianbelinche Oct 4, 2024
d963287
Update contracts
gianbelinche Oct 4, 2024
2394dd5
Finalize merge
gianbelinche Oct 4, 2024
e984bfb
feat(en): periodically fetch bridge addresses (#2949)
perekopskiy Oct 7, 2024
4640c42
feat(eth-watch): catch another reth error (#3026)
perekopskiy Oct 7, 2024
3140769
test(api): Add more `TxSender` tests (#3001)
slowli Oct 7, 2024
f6d86bd
feat(eth-sender): add time_in_mempool_cap config (#3018)
tomg10 Oct 7, 2024
57d658e
fix(zkstack_cli): Fix fmt --check (#3027)
matias-gonz Oct 7, 2024
9636e01
docs(zk_toolbox): remove generate-sk subcommand references (#3016)
manuelmauro Oct 7, 2024
f0bfd2a
chore(vm): Remove tests for old VM versions (#3015)
slowli Oct 7, 2024
e40c06b
Merge branch 'main' into da-eigen-merged-main
gianbelinche Oct 7, 2024
4726372
Update contracts
gianbelinche Oct 7, 2024
b51c530
refactor(eth): Brush up `eth_signer` crate (#3014)
slowli Oct 7, 2024
a5b7659
Update query jsons
gianbelinche Oct 7, 2024
741b77e
fix(vm): Prepare new VM for use in API server and fix divergences (#2…
slowli Oct 7, 2024
eeb1c2a
feat: Increased the timeout of waiting for db in tests (#3007)
pompon0 Oct 7, 2024
df6d952
Merge branch 'da-eigen-implementation' into da-eigen-merged-main
gianbelinche Oct 7, 2024
3fd2fb1
feat: add metric to track current cbt ratio (#3020)
ischasny Oct 7, 2024
04d2395
Format md
gianbelinche Oct 7, 2024
8a0ed94
Merge branch 'main' into da-eigen-merged-main
gianbelinche Oct 8, 2024
bdb3a82
Refactor secrets
gianbelinche Oct 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 9 additions & 4 deletions .githooks/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ RED='\033[0;31m'
NC='\033[0m' # No Color

# Check that prettier formatting rules are not violated.
if ! zk fmt --check; then
echo -e "${RED}Push error!${NC}"
echo "Please format the code via 'zk fmt', cannot push unformatted code"
exit 1
if which zk_supervisor >/dev/null; then
if ! zk_supervisor fmt --check; then
echo -e "${RED}Push error!${NC}"
echo "Please format the code via 'zks fmt', cannot push unformatted code"
exit 1
fi
else
echo "Please install zk_toolbox using zkup from https://github.com/matter-labs/zksync-era/tree/main/zk_toolbox/zkup, and then run ./bin/zkt from the zksync-era repository."
exit 1
fi
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
- [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via `zk fmt` and `zk lint`.
- [ ] Code has been formatted via `zk_supervisor fmt` and `zk_supervisor lint`.
2 changes: 1 addition & 1 deletion .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"core": "24.24.0",
"core": "24.28.0",
"prover": "16.5.0",
"zk_toolbox": "0.1.2"
}
43 changes: 43 additions & 0 deletions .github/scripts/rate_limit_check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash

set -o errexit
set -o pipefail


api_endpoint="https://api.github.com/users/zksync-era-bot"
wait_time=60
max_retries=60
retry_count=0

while [[ $retry_count -lt $max_retries ]]; do
response=$(run_retried curl -s -w "%{http_code}" -o temp.json "$api_endpoint")
http_code=$(echo "$response" | tail -n1)

if [[ "$http_code" == "200" ]]; then
echo "Request successful. Not rate-limited."
cat temp.json
rm temp.json
exit 0
elif [[ "$http_code" == "403" ]]; then
rate_limit_exceeded=$(jq -r '.message' temp.json | grep -i "API rate limit exceeded")
if [[ -n "$rate_limit_exceeded" ]]; then
retry_count=$((retry_count+1))
echo "API rate limit exceeded. Retry $retry_count of $max_retries. Retrying in $wait_time seconds..."
sleep $wait_time
else
echo "Request failed with HTTP status $http_code."
cat temp.json
rm temp.json
exit 1
fi
else
echo "Request failed with HTTP status $http_code."
cat temp.json
rm temp.json
exit 1
fi
done

echo "Reached the maximum number of retries ($max_retries). Exiting."
rm temp.json
exit 1
159 changes: 159 additions & 0 deletions .github/workflows/build-base.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
name: Build zksync-build-base Docker image
on:
workflow_dispatch:
inputs:
repo_ref:
description: "git reference of the zksync-era to build"
required: true
default: main
jobs:
build-images:
name: Build and Push Docker Images
runs-on: ${{ fromJSON('["matterlabs-ci-runner-high-performance", "matterlabs-ci-runner-arm"]')[contains(matrix.arch, 'arm')] }}
outputs:
image_tag_sha: ${{ steps.get-sha.outputs.image_tag_sha }}
# Needed to push to Gihub Package Registry
permissions:
packages: write
contents: read
env:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
REPO_REF: ${{ github.event.inputs.repo_ref }}
strategy:
matrix:
name: [ build-base ]
repository: [ zksync-build-base ]
arch: [ amd64, arm64 ]

steps:
- uses: actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.7
with:
submodules: "recursive"

- name: Login to google container registry
run: |
gcloud auth configure-docker us-docker.pkg.dev -q
- name: Login to DockerHub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get tag
id: get-sha
run: |
echo IMAGE_TAG_SHA=$(git rev-parse --short HEAD) >> $GITHUB_ENV
echo image_tag_sha=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: Build and push
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
push: true
context: .
file: docker/build-base/Dockerfile
labels: |
org.opencontainers.image.source=https://github.com/matter-labs/zksync-era
org.opencontainers.image.licenses="MIT OR Apache-2.0"
tags: |
matterlabs/zksync-build-base:${{ steps.get-sha.outputs.image_tag_sha }}-${{ matrix.arch }}
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/zksync-build-base:${{ steps.get-sha.outputs.image_tag_sha }}-${{ matrix.arch }}
ghcr.io/${{ github.repository_owner }}/zksync-build-base:${{ steps.get-sha.outputs.image_tag_sha }}-${{ matrix.arch }}
multiarch_manifest:
# Needed to push to Gihub Package Registry
permissions:
packages: write
contents: read
needs: [ build-images ]
env:
IMAGE_TAG_SUFFIX: ${{ needs.build-images.outputs.image_tag_sha }}
runs-on: [ matterlabs-ci-runner-high-performance ]
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: Login to google container registry
run: |
gcloud auth configure-docker us-docker.pkg.dev -q
- name: Login to DockerHub
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create and push multi-arch manifests for Dockerhub
shell: bash
run: |
images=("zksync-build-base")
archs=("amd64" "arm64")
for img in "${images[@]}"; do
multiarch_tag="matterlabs/zksync-build-base:latest"
individual_images=()
for arch in "${archs[@]}"; do
TAG="$IMAGE_TAG_SUFFIX"
docker pull matterlabs/zksync-build-base:${TAG}-${arch} --platform linux/${arch}
individual_images+=("matterlabs/zksync-build-base:${TAG}-${arch}")
done
docker buildx imagetools create --tag "${multiarch_tag}" "${individual_images[@]}"
done
- name: Create and push multi-arch manifests for GitHub Container Registry
shell: bash
run: |
images=("zksync-build-base")
archs=("amd64" "arm64")
for img in "${images[@]}"; do
multiarch_tag="ghcr.io/${{ github.repository_owner }}/zksync-build-base:latest"
individual_images=()
for arch in "${archs[@]}"; do
TAG="$IMAGE_TAG_SUFFIX"
docker pull ghcr.io/${{ github.repository_owner }}/zksync-build-base:${TAG}-${arch} --platform linux/${arch}
individual_images+=("ghcr.io/${{ github.repository_owner }}/zksync-build-base:${TAG}-${arch}")
done
docker buildx imagetools create --tag "${multiarch_tag}" "${individual_images[@]}"
done
- name: Create and push multi-arch manifests for Google Artifact Registry
shell: bash
run: |
images=("zksync-build-base")
archs=("amd64" "arm64")
for img in "${images[@]}"; do
multiarch_tag="us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/zksync-build-base:latest"
individual_images=()
for arch in "${archs[@]}"; do
TAG="$IMAGE_TAG_SUFFIX"
docker pull us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/zksync-build-base:${TAG}-${arch} --platform linux/${arch}
individual_images+=("us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/zksync-build-base:${TAG}-${arch}")
done
docker buildx imagetools create --tag "${multiarch_tag}" "${individual_images[@]}"
done
2 changes: 1 addition & 1 deletion .github/workflows/build-core-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
echo "No tag found on all pages."
echo "BUILD_CONTRACTS=true" >> "$GITHUB_ENV"
# TODO Remove it when we migrate to foundry inside contracts repository
mkdir -p contracts/l1-contracts/artifacts/
mkdir -p contracts/l1-contracts/artifacts/
exit 0
fi
filtered_tag=$(jq -r --arg commit_sha "$commit_sha" 'map(select(.commit.sha == $commit_sha)) | .[].name' <<<"$tags")
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-docker-from-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ jobs:
DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

build-gar-prover-fri-gpu:
build-gar-prover-fri-gpu-and-circuit-prover-gpu-gar:
name: Build GAR prover FRI GPU
needs: [ setup, build-push-prover-images ]
uses: ./.github/workflows/build-prover-fri-gpu-gar.yml
uses: ./.github/workflows/build-prover-fri-gpu-gar-and-circuit-prover-gpu-gar.yml
if: contains(github.ref_name, 'prover')
with:
setup_keys_id: ${{ needs.setup.outputs.prover_fri_gpu_key_id }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Prover FRI GPU with builtin setup data
name: Build Prover FRI GPU & Circuit Prover GPU with builtin setup data

on:
workflow_call:
Expand All @@ -17,7 +17,7 @@ on:
type: string

jobs:
build-gar-prover-fri-gpu:
build:
name: Build prover FRI GPU GAR
runs-on: [matterlabs-ci-runner-high-performance]
steps:
Expand All @@ -28,6 +28,7 @@ jobs:
- name: Download Setup data
run: |
gsutil -m rsync -r gs://matterlabs-setup-data-us/${{ inputs.setup_keys_id }} docker/prover-gpu-fri-gar
cp -v docker/prover-gpu-fri-gar/*.bin docker/circuit-prover-gpu-gar/

- name: Login to us-central1 GAR
run: |
Expand All @@ -39,7 +40,15 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: Build and push
- name: Login to Asia GAR
run: |
gcloud auth print-access-token --lifetime=7200 --impersonate-service-account=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com | docker login -u oauth2accesstoken --password-stdin https://asia-docker.pkg.dev

- name: Login to Europe GAR
run: |
gcloud auth print-access-token --lifetime=7200 --impersonate-service-account=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com | docker login -u oauth2accesstoken --password-stdin https://europe-docker.pkg.dev

- name: Build and push prover-gpu-fri-gar
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: docker/prover-gpu-fri-gar
Expand All @@ -49,22 +58,36 @@ jobs:
tags: |
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}

- name: Login to Asia GAR
- name: Build and push prover-gpu-fri-gar to Asia GAR
run: |
gcloud auth print-access-token --lifetime=7200 --impersonate-service-account=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com | docker login -u oauth2accesstoken --password-stdin https://asia-docker.pkg.dev
docker buildx imagetools create \
--tag asia-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}

- name: Build and push to Asia GAR
- name: Build and push prover-gpu-fri-gar to Europe GAR
run: |
docker buildx imagetools create \
--tag asia-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
--tag europe-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}

- name: Login to Europe GAR
- name: Build and push circuit-prover-gpu-gar
uses: docker/build-push-action@5cd11c3a4ced054e52742c5fd54dca954e0edd85 # v6.7.0
with:
context: docker/circuit-prover-gpu-gar
build-args: |
PROVER_IMAGE=${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}
push: true
tags: |
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/circuit-prover-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}

- name: Build and push circuit-prover-gpu-gar to Asia GAR
run: |
gcloud auth print-access-token --lifetime=7200 --impersonate-service-account=gha-ci-runners@matterlabs-infra.iam.gserviceaccount.com | docker login -u oauth2accesstoken --password-stdin https://europe-docker.pkg.dev
docker buildx imagetools create \
--tag asia-docker.pkg.dev/matterlabs-infra/matterlabs-docker/circuit-prover-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/circuit-prover-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}

- name: Build and push to Europe GAR
- name: Build and push circuit-prover-gpu-gar to Europe GAR
run: |
docker buildx imagetools create \
--tag europe-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/prover-fri-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}
--tag europe-docker.pkg.dev/matterlabs-infra/matterlabs-docker/circuit-prover-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }} \
us-docker.pkg.dev/matterlabs-infra/matterlabs-docker/circuit-prover-gpu-gar:2.0-${{ inputs.protocol_version }}-${{ inputs.image_tag_suffix }}
1 change: 1 addition & 0 deletions .github/workflows/build-prover-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
- witness-generator
- prover-gpu-fri
- witness-vector-generator
- circuit-prover-gpu
- prover-fri-gateway
- prover-job-monitor
- proof-fri-gpu-compressor
Expand Down
Loading
Loading