-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debugging unit test timeout in CI (#2118)
Signed-off-by: Sreekanth <[email protected]>
- Loading branch information
Showing
2 changed files
with
27 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -43,7 +43,7 @@ jobs: | |
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
go-version: "1.22" | ||
- name: Add bins to PATH | ||
run: | | ||
echo /home/runner/go/bin >> $GITHUB_PATH | ||
|
@@ -72,7 +72,7 @@ jobs: | |
--health-timeout 5s | ||
--health-retries 5 | ||
nats: | ||
image: 'bitnami/nats:latest' | ||
image: "bitnami/nats:latest" | ||
ports: | ||
- 4222:4222 | ||
env: | ||
|
@@ -81,7 +81,7 @@ jobs: | |
- name: Set up Go 1.x | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
go-version: "1.22" | ||
id: go | ||
|
||
- name: Check out code | ||
|
@@ -94,11 +94,11 @@ jobs: | |
key: ${{ runner.os }}-go-build-v1-${{ github.run_id }} | ||
|
||
- name: Get dependencies | ||
run: go mod download | ||
run: go mod download -x | ||
|
||
- name: Test Go | ||
run: make test-coverage-with-isb | ||
|
||
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
|
@@ -119,7 +119,7 @@ jobs: | |
- name: Test Rust | ||
working-directory: ./rust | ||
run: | | ||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='./target/debug/coverage/cargo-test-%p-%m.profraw' cargo test --all-features --workspace --all | ||
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='./target/debug/coverage/cargo-test-%p-%m.profraw' cargo test --all-features --workspace --all | ||
grcov . -s ./target/debug/coverage/ --binary-path ./target/debug/ -t lcov --branch --ignore-not-existing -o ./target/debug/coverage/lcov.info | ||
- name: Check Rust formatting | ||
|
@@ -145,7 +145,7 @@ jobs: | |
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
go-version: "1.22" | ||
- name: Restore Go build cache | ||
uses: actions/cache@v4 | ||
with: | ||
|
@@ -165,7 +165,7 @@ jobs: | |
uses: actions-rust-lang/[email protected] | ||
with: | ||
cache-workspaces: rust -> target | ||
rustflags: '' | ||
rustflags: "" | ||
- name: Configure sccache | ||
run: | | ||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | ||
|
@@ -192,13 +192,28 @@ jobs: | |
e2e-tests: | ||
name: E2E Tests | ||
runs-on: ubuntu-latest | ||
needs: [ build-rust-amd64 ] | ||
needs: [build-rust-amd64] | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
driver: [jetstream] | ||
case: [e2e, diamond-e2e, transformer-e2e, kafka-e2e, map-e2e, reduce-one-e2e, reduce-two-e2e, udsource-e2e, api-e2e, sideinputs-e2e, idle-source-e2e, monovertex-e2e, builtin-source-e2e] | ||
case: | ||
[ | ||
e2e, | ||
diamond-e2e, | ||
transformer-e2e, | ||
kafka-e2e, | ||
map-e2e, | ||
reduce-one-e2e, | ||
reduce-two-e2e, | ||
udsource-e2e, | ||
api-e2e, | ||
sideinputs-e2e, | ||
idle-source-e2e, | ||
monovertex-e2e, | ||
builtin-source-e2e, | ||
] | ||
include: | ||
- driver: redis | ||
case: e2e | ||
|
@@ -218,7 +233,7 @@ jobs: | |
- name: Setup Golang | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.22' | ||
go-version: "1.22" | ||
- name: Add bins to PATH | ||
run: | | ||
echo /home/runner/go/bin >> $GITHUB_PATH | ||
|
This file contains 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