-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into jihwan/op-succinct-integration
- Loading branch information
Showing
7 changed files
with
189 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This file is a copy/paste of .github/tests/combinations/fork12-cdk-erigon-sovereign.yml | ||
# The only difference is that it does not deploy the cdk bridge ui. | ||
deployment_stages: | ||
deploy_cdk_bridge_ui: false | ||
deploy_l2_contracts: true | ||
|
||
args: | ||
verbosity: debug | ||
zkevm_contracts_image: leovct/zkevm-contracts:v9.0.0-rc.6-pp-fork.12 | ||
zkevm_prover_image: hermeznetwork/zkevm-prover:v8.0.0-RC16-fork.12 | ||
consensus_contract_type: pessimistic | ||
sequencer_type: erigon | ||
erigon_strict_mode: false | ||
gas_token_enabled: false | ||
zkevm_use_real_verifier: false | ||
enable_normalcy: true | ||
agglayer_prover_sp1_key: "" | ||
agglayer_prover_primary_prover: mock-prover | ||
additional_services: | ||
- tx_spammer |
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,14 @@ | ||
# This file is a copy/paste of .github/tests/combinations/fork12-cdk-erigon-validium.yml | ||
# The only difference is that it does not deploy the cdk bridge ui. | ||
deployment_stages: | ||
deploy_cdk_bridge_ui: false | ||
deploy_l2_contracts: true | ||
|
||
args: | ||
verbosity: debug | ||
zkevm_contracts_image: leovct/zkevm-contracts:v9.0.0-rc.6-pp-fork.12 | ||
zkevm_prover_image: hermeznetwork/zkevm-prover:v8.0.0-RC16-fork.12 | ||
consensus_contract_type: cdk-validium | ||
sequencer_type: erigon | ||
additional_services: | ||
- tx_spammer |
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,48 @@ | ||
# Workflow for automatically building and pushing the config image to the Antithesis registry. | ||
name: Antithesis Docker Image Builder | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
ANTITHESIS_REGISTRY: us-central1-docker.pkg.dev | ||
ANTITHESIS_REPOSITORY: molten-verve-216720/polygon-repository | ||
|
||
concurrency: | ||
group: antithesis-build-and-push-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.ANTITHESIS_REGISTRY }} | ||
username: _json_key | ||
password: ${{ secrets.ANTITHESIS_JSON_LOGIN_KEY }} | ||
# This step will only execute if the necessary secrets are available, preventing failures | ||
# on pull requests from forked repositories. | ||
if: ${{ env.ANTITHESIS_JSON_LOGIN_KEY }} | ||
env: | ||
ANTITHESIS_JSON_LOGIN_KEY: ${{ secrets.ANTITHESIS_JSON_LOGIN_KEY }} | ||
|
||
- name: Build and push config image | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: docker | ||
file: docker/antithesis.Dockerfile | ||
push: true | ||
tags: | | ||
${{ env.ANTITHESIS_REGISTRY }}/${{ env.ANTITHESIS_REPOSITORY}}/config:antithesis-latest, | ||
${{ env.ANTITHESIS_REGISTRY }}/${{ env.ANTITHESIS_REPOSITORY}}/config:${{ github.sha }} | ||
# This step will only execute if the necessary secrets are available, preventing failures | ||
# on pull requests from forked repositories. | ||
if: ${{ env.ANTITHESIS_JSON_LOGIN_KEY }} | ||
env: | ||
ANTITHESIS_JSON_LOGIN_KEY: ${{ secrets.ANTITHESIS_JSON_LOGIN_KEY }} |
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,42 @@ | ||
FROM debian:stable-slim as builder | ||
|
||
# WARNING (DL3008): Pin versions in apt get install. | ||
# hadolint ignore=DL3008 | ||
RUN apt-get update \ | ||
&& apt-get --yes upgrade \ | ||
&& apt-get install --yes --no-install-recommends libssl-dev ca-certificates jq git curl make \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
# Pull kurtosis-cdk package. | ||
# Temporary hack for now. | ||
# && git clone --branch v0.2.29 https://github.com/0xPolygon/kurtosis-cdk \ | ||
&& git clone --branch feat/antithesis-integration https://github.com/leovct/kurtosis-cdk \ | ||
# Pull kurtosis-cdk dependencies. | ||
# The package has other dependencies (blockscout, prometheus and grafana) but they shouldn't be used when testing the package with Antithesis. | ||
&& git clone --branch 4.4.0 https://github.com/ethpandaops/ethereum-package \ | ||
&& git clone --branch 1.2.0 https://github.com/ethpandaops/optimism-package \ | ||
# Make the kurtosis-cdk package reference locally pulled dependencies. | ||
&& sed -i '$ a\\nreplace:\n github.com/ethpandaops/ethereum-package: ../ethereum-package\n github.com/ethpandaops/optimism-package: ../optimism-package\n github.com/kurtosis-tech/redis-package: ../redis-package\n github.com/kurtosis-tech/postgres-package: ../postgres-package\n github.com/bharath-123/db-adminer-package: ../db-adminer-package\n github.com/kurtosis-tech/prometheus-package: ../prometheus-package' /kurtosis-cdk/kurtosis.yml \ | ||
# Pull ethereum package dependencies. | ||
&& git clone --branch main https://github.com/kurtosis-tech/prometheus-package \ | ||
&& git clone --branch main https://github.com/kurtosis-tech/postgres-package \ | ||
&& git clone --branch main https://github.com/bharath-123/db-adminer-package \ | ||
&& git clone --branch main https://github.com/kurtosis-tech/redis-package \ | ||
# Make the ethereum package reference locally pulled dependencies. | ||
&& sed -i '$ a\\nreplace:\n github.com/kurtosis-tech/prometheus-package: ../prometheus-package\n github.com/kurtosis-tech/postgres-package: ../postgres-package\n github.com/bharath-123/db-adminer-package: ../db-adminer-package\n github.com/kurtosis-tech/redis-package: ../redis-package' /ethereum-package/kurtosis.yml \ | ||
# Pull optimism package dependencies. | ||
# It relies on the ethereum package which is already pulled. | ||
&& sed -i '$ a\\nreplace:\n github.com/ethpandaops/ethereum-package: ../ethereum-package' /optimism-package/kurtosis.yml | ||
|
||
|
||
FROM scratch | ||
LABEL author="devtools@polygon.technology" | ||
LABEL description="Antithesis config image for kurtosis-cdk" | ||
|
||
COPY --from=builder /kurtosis-cdk /kurtosis-cdk | ||
COPY --from=builder /ethereum-package /ethereum-package | ||
COPY --from=builder /prometheus-package /prometheus-package | ||
COPY --from=builder /postgres-package /postgres-package | ||
COPY --from=builder /db-adminer-package /db-adminer-package | ||
COPY --from=builder /redis-package /redis-package | ||
COPY --from=builder /optimism-package /optimism-package |