Skip to content

Commit

Permalink
Merge branch 'main' into popzxc-qit-22-config-deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
popzxc committed Nov 7, 2023
2 parents 3232164 + 38fb878 commit 66ac9f6
Show file tree
Hide file tree
Showing 258 changed files with 17,671 additions and 4,132 deletions.
6 changes: 5 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@ build/
dist/
volumes/
.tslintrc.js
bellman-cuda
bellman-cuda

# Ignore contract submodules
contracts
etc/system-contracts
4 changes: 2 additions & 2 deletions .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk/zksync-rs": "0.4.0",
"core": "16.2.0",
"prover": "7.2.0"
"core": "17.1.0",
"prover": "8.1.0"
}
4 changes: 3 additions & 1 deletion .github/workflows/build-core-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ jobs:
DOCKER_ACTION: ${{ inputs.action }}
COMPONENT: ${{ matrix.component }}
run: |
ci_run docker login -u ${{ secrets.DOCKERHUB_USER }} -p ${{ secrets.DOCKERHUB_TOKEN }}
ci_run gcloud auth configure-docker us-docker.pkg.dev,asia-docker.pkg.dev -q
ci_run rustup default nightly-2023-07-21
ci_run zk docker $DOCKER_ACTION $COMPONENT -- --public
- name: Show sccache stats
if: always()
run: |
Expand Down
20 changes: 18 additions & 2 deletions .github/workflows/build-docker-from-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
runs-on: [ubuntu-latest]
outputs:
image_tag_suffix: ${{ steps.set.outputs.image_tag_suffix }}
prover_fri_cpu_key_id: ${{ steps.extract-prover-fri-setup-key-ids.outputs.cpu_short_commit_sha }}
prover_fri_gpu_key_id: ${{ steps.extract-prover-fri-setup-key-ids.outputs.gpu_short_commit_sha }}
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
with:
Expand All @@ -42,6 +44,20 @@ jobs:
version=$(cut -d "-" -f2 <<< ${git_tag})
echo "image_tag_suffix=${version}" >> $GITHUB_OUTPUT
- name: Generate outputs with Prover FRI setup data keys IDs
id: extract-prover-fri-setup-key-ids
run: |
declare -A json_files=(
["cpu"]="setup-data-cpu-keys.json"
["gpu"]="setup-data-gpu-keys.json"
)
for type in "${!json_files[@]}"; do
file=${json_files[$type]}
value=$(jq -r '.us' "./prover/$file")
short_sha=$(echo $value | sed 's|gs://matterlabs-setup-data-us/\(.*\)/|\1|')
echo "${type}_short_commit_sha=$short_sha" >> $GITHUB_OUTPUT
done
build-push-core-images:
name: Build and push image
needs: [setup]
Expand Down Expand Up @@ -73,7 +89,7 @@ jobs:
uses: ./.github/workflows/build-gar-reusable.yml
if: contains(github.ref_name, 'prover')
with:
setup_keys_id: 4989f12
setup_keys_id: bccc7de
image_tag_suffix: ${{ needs.setup.outputs.image_tag_suffix }}
push_asia: true
push_europe: true
Expand All @@ -84,5 +100,5 @@ jobs:
uses: ./.github/workflows/build-prover-fri-gpu-gar.yml
if: contains(github.ref_name, 'prover')
with:
setup_keys_id: 2d33a27-gpu
setup_keys_id: ${{ needs.setup.outputs.prover_fri_gpu_key_id }}
image_tag_suffix: ${{ needs.setup.outputs.image_tag_suffix }}
23 changes: 20 additions & 3 deletions .github/workflows/release-test-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
uses: tj-actions/changed-files@v37
with:
files_yaml: |
# If you want to exclude some files, please adjust here.
# TODO: make it more granular, as already implemented in CI workflow
# We don't want to be rebuilding and redeploying all the Docker images when eg. only document have changed
prover:
- prover/**
core:
Expand All @@ -40,6 +41,8 @@ jobs:
runs-on: [matterlabs-deployer-stage]
outputs:
image_tag_suffix: ${{ steps.generate-tag-suffix.outputs.image_tag_suffix }}
prover_fri_cpu_key_id: ${{ steps.extract-prover-fri-setup-key-ids.outputs.cpu_short_commit_sha }}
prover_fri_gpu_key_id: ${{ steps.extract-prover-fri-setup-key-ids.outputs.gpu_short_commit_sha }}
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
with:
Expand All @@ -52,6 +55,20 @@ jobs:
ts=$(date +%s%N | cut -b1-13)
echo "image_tag_suffix=${sha}-${ts}" >> $GITHUB_OUTPUT
- name: Generate outputs with Prover FRI setup data keys IDs
id: extract-prover-fri-setup-key-ids
run: |
declare -A json_files=(
["cpu"]="setup-data-cpu-keys.json"
["gpu"]="setup-data-gpu-keys.json"
)
for type in "${!json_files[@]}"; do
file=${json_files[$type]}
value=$(jq -r '.us' "./prover/$file")
short_sha=$(echo $value | sed 's|gs://matterlabs-setup-data-us/\(.*\)/|\1|')
echo "${type}_short_commit_sha=$short_sha" >> $GITHUB_OUTPUT
done
build-push-core-images:
name: Build and push images
needs: [setup, changed_files]
Expand Down Expand Up @@ -83,7 +100,7 @@ jobs:
uses: ./.github/workflows/build-gar-reusable.yml
if: needs.changed_files.outputs.prover == 'true' || needs.changed_files.outputs.all == 'true'
with:
setup_keys_id: 4989f12
setup_keys_id: bccc7de
image_tag_suffix: ${{ needs.setup.outputs.image_tag_suffix }}
push_asia: false
push_europe: false
Expand All @@ -94,5 +111,5 @@ jobs:
uses: ./.github/workflows/build-prover-fri-gpu-gar.yml
if: needs.changed_files.outputs.prover == 'true' || needs.changed_files.outputs.all == 'true'
with:
setup_keys_id: 2d33a27-gpu
setup_keys_id: ${{ needs.setup.outputs.prover_fri_gpu_key_id }}
image_tag_suffix: ${{ needs.setup.outputs.image_tag_suffix }}
4 changes: 4 additions & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# Ignore submodule
bellman-cuda

# Ignore contract submodules
contracts
etc/system-contracts
4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
bellman-cuda
sdk/zksync-rs/CHANGELOG.md
CHANGELOG.md

# Ignore contract submodules
contracts
etc/system-contracts
3 changes: 3 additions & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore contract submodules
contracts
etc/system-contracts
Loading

0 comments on commit 66ac9f6

Please sign in to comment.