Skip to content
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

playing with CARGO_TARGET_DIR #2979

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/agent-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:
prepare:
runs-on: larger-runner
runs-on: ubuntu-latest
outputs:
tag_date: ${{ steps.taggen.outputs.TAG_DATE }}
tag_sha: ${{ steps.taggen.outputs.TAG_SHA }}
Expand Down
36 changes: 29 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ defaults:

jobs:
test-rs:
runs-on: larger-runner

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -46,12 +45,17 @@ jobs:
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo df -h
sudo du -sh .
- name: Run tests
run: cargo test
run: cargo test --release
- name: After
run: |
sudo df -h
sudo du -sh .

lint-rs:
runs-on: larger-runner

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -74,13 +78,31 @@ jobs:
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo df -h
sudo du -sh .
- name: Check
run: cargo check --all-features --all-targets
run: cargo check --release --all-features --all-targets
- name: After
run: |
sudo df -h
sudo du -sh .
- name: Rustfmt
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy -- -D warnings
- name: After
run: |
sudo df -h
sudo du -sh .
- name: Setup WASM
run: rustup target add wasm32-unknown-unknown
- name: After
run: |
sudo df -h
sudo du -sh .
- name: Check WASM
run: cargo check -p hyperlane-core --features=strum,test-utils --target wasm32-unknown-unknown
run: cargo check --release -p hyperlane-core --features=strum,test-utils --target wasm32-unknown-unknown
- name: After
run: |
sudo df -h
sudo du -sh .
29 changes: 27 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ jobs:
run: yarn test

e2e:
runs-on: larger-runner
runs-on: ubuntu-latest
needs: [yarn-build]
steps:
- uses: actions/setup-node@v3
Expand All @@ -156,6 +156,8 @@ jobs:
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo df -h
sudo du -sh .

- name: Install mold linker
uses: rui314/setup-mold@v1
Expand All @@ -170,6 +172,10 @@ jobs:
**/node_modules
.yarn
key: ${{ runner.os }}-yarn-cache-${{ hashFiles('./yarn.lock') }}
- name: After
run: |
sudo df -h
sudo du -sh .

- name: build-cache
uses: actions/cache@v3
Expand All @@ -178,6 +184,10 @@ jobs:
./*
!./rust
key: ${{ github.sha }}
- name: After
run: |
sudo df -h
sudo du -sh .

- name: cargo-cache
uses: actions/cache@v3
Expand All @@ -190,10 +200,20 @@ jobs:
run: cargo build --release --bin run-locally
working-directory: ./rust

- name: After
run: |
sudo df -h
sudo du -sh .

- name: agent tests with CosmWasm
run: RUST_BACKTRACE=1 cargo test --package run-locally --bin run-locally -- cosmos::test --nocapture
run: RUST_BACKTRACE=1 cargo test --release --package run-locally --bin run-locally -- cosmos::test --nocapture
working-directory: ./rust

- name: After
run: |
sudo df -h
sudo du -sh .

- name: agent tests excluding CosmWasm
run: ./target/release/run-locally
working-directory: ./rust
Expand All @@ -202,6 +222,11 @@ jobs:
E2E_CI_TIMEOUT_SEC: '600'
E2E_KATHY_MESSAGES: '20'

- name: After
run: |
sudo df -h
sudo du -sh .

- name: cli e2e tests
run: ./typescript/cli/ci-test.sh

Expand Down
2 changes: 2 additions & 0 deletions rust/agents/relayer/src/msg/metadata/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@ impl BaseMetadataBuilder {
continue;
};

tracing::warn!("foo");

// If this is a LocalStorage based checkpoint syncer and it's not
// allowed, ignore it
if !self.allow_local_checkpoint_syncers
Expand Down
Loading