-
Notifications
You must be signed in to change notification settings - Fork 47
fix: genesis pr CI cleanup #1112
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
Closed
Closed
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
0b25d25
ci docker build
55039a9
fix ci
fd2cb3c
update tests
2c7bfc0
fix ci
08dfc38
fix abi
4e3ccf9
update CI
0d31c6b
fix rust version
5e52f39
update contract path
6009bd8
update working dir
e9a9522
fix abi
c968935
compile abi first
2d4b492
compile abi only
6997870
add docker support
1fba859
export docker
dd8e174
enable rust in contract test
a0fd434
trigger fvm test quick
4033d1c
enable fendermint e2e tests
563210e
enable cache
0cb5b43
compile abi
83c2f9b
fix binding
4e03ece
compile binding
c45be6e
fix clang
5fef732
remove make build
07b1844
test docker build cache
59d2405
docker build
c3660a7
update check out fendermint
118e05e
enable ci build
24574a9
build docker image only
707b05d
test docker build cache only
8a0ccb9
update docker build
1cbdafa
update docker build
d3eb0d8
update docker image
7f71578
copy git add -A
73fdc2d
update docker build
702774e
fix mv
214043c
fix path
506f904
remove unused stps
19272b8
debug fendermint e2e tests
1ba7d30
fix dockerfile
0b1c1c7
profile is ci
0f55d2e
build ipc actor binding
de3f22c
simplify the CI improvements + delete cruft.
raulk 08068bb
make bundle file directly.
raulk 5de656b
check fmt and clippy.
raulk f1ed0aa
nightly.
raulk 4529213
toolchain.
raulk 0a76346
fix tests workflows.
raulk 61362f9
compile ABI.
raulk 4a5841e
bump cache plugin version.
raulk 79ed6d8
generate bindings too.
raulk 9f9d1fe
fix paths.
raulk 5d91bac
fix clippy.
raulk 4d1a931
save cache even when build fails.
raulk f58d345
bindings build script: only rerun if abis change.
raulk ad9d8be
cache bindings too.
raulk f301324
fix docker build.
raulk e72a82d
fix docker build.
raulk 0320df7
cache always; make artifacts dir.
raulk 2cfecaa
disable contracts-pnpm-audit job.
raulk 387e8cf
switch to Swatinem cache; fix directories.
raulk 2f66184
fix contracts cache hash.
raulk afacf71
fix artifacts and cache hashes.
raulk c336738
splinter test make targets.
raulk cf8ccb2
use correct cache version.
raulk 29f97f1
set the default log level to Info.
raulk 8b3ff02
keep the compilation cache in the contracs-abi cache.
raulk 28538e7
cleanup ci.
raulk 3c21949
drop coverage check from contracts (flaky).
raulk 9e1ba45
install all tools for tests.
raulk 2d10fa8
actually cache the cache.
raulk bdf6f55
Merge branch 'simple-genesis' into genesis-pr-cleanup
raulk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| target | ||
| fendermint/builtin-actors | ||
| contracts/cache | ||
| contracts/node-modules |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,141 @@ | ||
| name: Build IPC | ||
|
|
||
| # This workflow is triggered from the main CI workflow. | ||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build IPC | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| RUST_BACKTRACE: full | ||
| RUSTFLAGS: -Dwarnings | ||
|
|
||
| steps: | ||
| # https://github.com/marketplace/actions/free-disk-space-ubuntu | ||
| - name: Free Disk Space (Ubuntu) | ||
| uses: jlumbroso/free-disk-space@main | ||
| with: | ||
| tool-cache: false | ||
| large-packages: false | ||
| swap-storage: false | ||
| docker-images: false | ||
| android: true | ||
| dotnet: true | ||
| haskell: true | ||
|
|
||
| - name: Check out the project | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Install Tools | ||
| uses: ./.github/actions/install-tools | ||
| with: | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
| rust: stable | ||
|
|
||
| - name: Install Node.js | ||
| uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: 18.19.0 | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
| if: always() | ||
| with: | ||
| cache-on-failure: true | ||
|
|
||
| # - name: Cache Cargo Build | ||
| # uses: actions/cache@v4 | ||
| # if: always() | ||
| # with: | ||
| # path: | | ||
| # /home/runner/.cargo/registry | ||
| # /home/runner/.cargo/git | ||
| # target | ||
| # key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | ||
| # ## save-always doesn't work. | ||
| # ## See https://github.com/actions/cache/issues/1315. | ||
| # save-always: true | ||
|
|
||
| - name: Cache Solidity ABI artifacts | ||
| uses: actions/cache@v4 | ||
| if: always() | ||
| with: | ||
| path: | | ||
| ./contracts/out | ||
| ./contracts/bindings | ||
| ./contracts/cache | ||
| ## TODO maybe add the rust version and solc version to the key | ||
| key: v2-contracts-abi-${{ hashFiles('./contracts/**/*.sol') }} | ||
|
|
||
| - name: Generate ABI and bindings | ||
| run: cd contracts && make gen | ||
|
|
||
| - name: Install Rust nightly | ||
| uses: dtolnay/rust-toolchain@master | ||
| with: | ||
| toolchain: nightly | ||
| components: rustfmt,clippy | ||
|
|
||
| - name: Check fmt (fmt, clippy) | ||
| run: cargo +nightly fmt --check --all | ||
|
|
||
| - name: Check clippy | ||
| run: cargo clippy --tests --no-deps -- -D clippy::all | ||
|
|
||
| - name: Build all | ||
| run: | | ||
| cd fendermint && make $PWD/builtin-actors/output/bundle.car | ||
| cargo build --locked --release | ||
|
|
||
| - name: Build Docker image for e2e tests | ||
| run: | | ||
| ## Create the temporary Dockerfile. | ||
| cat <<EOF > /tmp/Dockerfile | ||
| # syntax=docker/dockerfile:1 | ||
| FROM alpine as builder | ||
| COPY /fendermint/app/config /app/fendermint/app/config | ||
| COPY /target/release/fendermint /app/output/bin/fendermint | ||
| COPY /target/release/ipc-cli /app/output/bin/ipc-cli | ||
| EOF | ||
|
|
||
| ## Append the runner build phase to the Dockerfile. | ||
| cat fendermint/docker/runner.Dockerfile >> /tmp/Dockerfile | ||
|
|
||
| ## Print the Dockerfile for debugging. | ||
| echo "Dockerfile:" | ||
| cat /tmp/Dockerfile | ||
|
|
||
| ## Create the temporary .dockerignore file. | ||
| cat <<EOF > /tmp/Dockerfile.dockerignore | ||
| target | ||
| !target/release/fendermint | ||
| !target/release/ipc-cli | ||
| contracts/cache | ||
| contracts/node-modules | ||
| EOF | ||
|
|
||
| ## Print the .dockerignore file for debugging. | ||
| echo "Dockerfile.dockerignore:" | ||
| cat /tmp/Dockerfile.dockerignore | ||
|
|
||
| ## Build the Docker image. | ||
| DOCKER_BUILDKIT=1 docker build \ | ||
| --load \ | ||
| -f /tmp/Dockerfile \ | ||
| -t fendermint:latest \ | ||
| . | ||
|
|
||
| - name: Create artifacts directory | ||
| run: mkdir -p /tmp/artifacts | ||
|
|
||
| - name: Export Docker image | ||
| run: docker save fendermint:latest > /tmp/artifacts/docker-image.tar | ||
|
|
||
| - name: Upload artifacts | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: docker-image | ||
| path: /tmp/artifacts/docker-image.tar |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: NPM Audit | ||
| name: 'Contracts: pnpm audit' | ||
|
|
||
| # This workflow is triggered from the main CI workflow. | ||
| on: | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you want to delete
ipc.yaml?