Skip to content

Commit

Permalink
test(ci-cd): external kurtosis yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
tosettil-polimi committed Nov 13, 2024
1 parent 5d2fae8 commit 5347df0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 40 deletions.
59 changes: 20 additions & 39 deletions .github/workflows/ci-cd-main-branch-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ jobs:
id: os
run: echo 'os=ubuntu-latest' >> "$GITHUB_OUTPUT"

Build_and_test:
Build:
needs: define_matrix
runs-on: ${{ needs.define_matrix.outputs.os }}
timeout-minutes: 45
outputs:
docker_build_tag: ${{ steps.built_tag_export.outputs.docker_build_tag }}

steps:
- name: Fast checkout git repository
Expand Down Expand Up @@ -138,44 +141,22 @@ jobs:
--tag ${{ env.APPLICATION }}:latest \
--tag ${{ env.APPLICATION }} \
--target release .
- name: Cleanup some space
run: |
df -h
sudo rm -drf \
/usr/share/dotnet \
/usr/share/swift \
/usr/local/julia* \
/opt/google/chrome \
/opt/microsoft/msedge \
/opt/microsoft/powershell \
/usr/lib/mono \
/usr/local/lib/android \
/usr/local/share/chromium
echo DEBUG current list of docker images
docker image ls
echo DEBUG Removing legacy node:1 matching docker images
sudo docker image rm $(docker image ls --filter=reference='node:1*' -q)
echo DEBUG new disk free output
df -h
- name: Install dependencies on Linux
if: runner.os == 'Linux'
run: sudo apt update && sudo apt install build-essential

- name: download kurtosis config - with pectra
- name: export and print docker build tag
id: built_tag_export
env:
BUILD_VERSION: local-${{ steps.getCommitId.outputs.short_commit_id }}
# TODO: update the path to the config file with main branch before PR is merged
run: |
wget -O kurtosis_config_with_p.yaml https://raw.githubusercontent.com/erigontech/erigon/feat/assertor-testing/.github/workflows/kurtosis/config.properties
sed 's#<<ERIGON_IMAGE_PLACEHOLDER>>#${{ env.APPLICATION }}:${{ env.BUILD_VERSION }}#g' kurtosis_config_with_p.yaml > kurtosis_config.yaml
- name: Run Kurtosis + assertoor tests
uses: ethpandaops/kurtosis-assertoor-github-action@v1
with:
enclave_name: "kurtosis-run-${{ github.run_id }}"
ethereum_package_args: "./kurtosis_config.yaml"
#kurtosis_extra_args: --verbosity detailed --cli-log-level trace
enclave_dump: false

echo "docker_build_tag=${{ env.APPLICATION }}:${{ env.BUILD_VERSION }}" >> $GITHUB_OUTPUT
echo The following docker images have been published:
echo "${{ env.APPLICATION }}:${{ env.BUILD_VERSION }}"
echo "${{ env.APPLICATION }}:latest"
echo "${{ env.APPLICATION }}"
run-kurtosis-assertoor:
needs: [define_matrix, Build]
uses: erigontech/erigon/.github/workflows/test-kurtosis-assertoor.yml@feat/assertor-testing
with:
checkout_ref: ${{ github.sha }}
os: ${{ needs.define_matrix.outputs.os }}
docker_build_tag: ${{ needs.Build.outputs.docker_build_tag }}
2 changes: 1 addition & 1 deletion .github/workflows/test-kurtosis-assertoor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
- name: download kurtosis config - with pectra
env:
BUILD_VERSION: ${{ inputs.docker_build_tag }}
# TODO: update the path to the config file with main branch before PR is merged
# TODO: update the path to the config file with correct branch before PR is merged
run: |
wget -O kurtosis_config_with_p.yaml https://raw.githubusercontent.com/erigontech/erigon/feat/assertor-testing/.github/workflows/kurtosis/config.properties
sed 's#<<ERIGON_IMAGE_PLACEHOLDER>>#${{ env.BUILD_VERSION }}#g' kurtosis_config_with_p.yaml > kurtosis_config.yaml
Expand Down

0 comments on commit 5347df0

Please sign in to comment.