diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b841c16b..f6afb593 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -1,15 +1,10 @@ name: Rust Test & Coverage on: - pull_request_target: - branches: - - main - types: [opened, synchronize, reopened] - push: - branches-ignore: - - main workflow_call: - workflow_dispatch: + secrets: + ETHEREUM_BLAST_RPC_URL: + required: true jobs: coverage: @@ -74,7 +69,7 @@ jobs: - name: Run llvm-cov tests env: ETHEREUM_BLAST_RPC_URL: ${{ secrets.ETHEREUM_BLAST_RPC_URL }} - run: cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1 + run: RUST_LOG=debug RUST_BACKTRACE=1 cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1 - name: Coveralls uses: coverallsapp/github-action@v2 diff --git a/.github/workflows/linters-cargo.yml b/.github/workflows/linters-cargo.yml index d3e5ff90..96172230 100644 --- a/.github/workflows/linters-cargo.yml +++ b/.github/workflows/linters-cargo.yml @@ -4,7 +4,6 @@ name: Task - Linters Cargo on: workflow_dispatch: workflow_call: - push: jobs: cargo-lint: diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 901b7f1f..42f8c8de 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -4,7 +4,6 @@ name: Task - Linters on: workflow_dispatch: workflow_call: - push: jobs: prettier: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 2863c998..3698d8c5 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -2,7 +2,8 @@ name: Workflow - Pull Request on: - pull_request_target: + workflow_dispatch: + pull_request: branches: [main] push: branches: [main] @@ -24,3 +25,4 @@ jobs: name: Run coverage uses: ./.github/workflows/coverage.yml needs: rust_build + secrets: inherit diff --git a/.github/workflows/rust-build.yml b/.github/workflows/rust-build.yml index 1406606b..f7cb3e08 100644 --- a/.github/workflows/rust-build.yml +++ b/.github/workflows/rust-build.yml @@ -4,7 +4,6 @@ name: Task - Build Rust on: workflow_dispatch: workflow_call: - push: jobs: rust_build: diff --git a/CHANGELOG.md b/CHANGELOG.md index c6f1f690..60de9a90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ## Removed +- revert CI changes from settlement client PR. - `init_config` from all the tests. - `fetch_from_test` argument diff --git a/crates/settlement-clients/ethereum/src/tests/mod.rs b/crates/settlement-clients/ethereum/src/tests/mod.rs index 65694e46..078cbe53 100644 --- a/crates/settlement-clients/ethereum/src/tests/mod.rs +++ b/crates/settlement-clients/ethereum/src/tests/mod.rs @@ -228,7 +228,7 @@ async fn update_state_blob_with_impersonation_works(#[case] fork_block_no: u64) // Asserting, Expected to receive transaction hash. assert!(!update_state_result.is_empty(), "No transaction Hash received."); - sleep(Duration::from_secs(2)).await; + sleep(Duration::from_secs(5)).await; ethereum_settlement_client .wait_for_tx_finality(update_state_result.as_str()) .await