Skip to content

Commit

Permalink
simplify api compare test
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed May 10, 2024
1 parent c92ef74 commit 159fbc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/forest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,20 +376,6 @@ jobs:
# We use a custom Dockerfile for CI to speed up the build process.
FOREST_DOCKERFILE_OVERRIDE: scripts/devnet/forest_ci.dockerfile
steps:
- uses: actions/cache@v4
id: cache
with:
path: '${{ env.FIL_PROOFS_PARAMETER_CACHE }}'
key: proof-params-keys
- name: Load cache into volume
if: steps.cache.outputs.cache-hit == 'true'
run: |
docker volume create api_compare_filecoin-proofs
docker run --rm \
-v api_compare_filecoin-proofs:/proofs \
-v $FIL_PROOFS_PARAMETER_CACHE:/cache \
$SHELL_IMAGE \
sh -c "cp /cache/* /proofs"
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
Expand All @@ -400,15 +386,6 @@ jobs:
- name: Dump docker logs
if: always()
uses: jwalton/gh-docker-logs@v2
- name: Prepare cache folder for uploading
if: steps.cache.outputs.cache-hit != 'true'
run: |
docker run --rm \
-v api_compare_filecoin-proofs:/proofs \
-v $FIL_PROOFS_PARAMETER_CACHE:/cache \
$SHELL_IMAGE \
sh -c "cp /proofs/* /cache"
sudo chmod -R 755 $FIL_PROOFS_PARAMETER_CACHE
snapshot-parity-checks:
needs:
- build-ubuntu
Expand Down
3 changes: 3 additions & 0 deletions scripts/tests/api_compare/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ services:
dockerfile: aria2-Dockerfile
volumes:
- node-data:/data
- filecoin-proofs:${FIL_PROOFS_PARAMETER_CACHE}
networks:
- api-tests
environment:
Expand All @@ -14,6 +15,8 @@ services:
command:
- |
set -euxo pipefail
# fetch parameter files
forest-tool fetch-params --keys
# if there are some files in the data directory, then we don't need to fetch the snapshot
if [ "$$(ls -A /data/*.car.zst)" ]; then
echo "Snapshot already fetched"
Expand Down

0 comments on commit 159fbc2

Please sign in to comment.