Skip to content

Commit 3ac35ec

Browse files
committed
CI: add RUST_BACKTRACE=full env variable to the workflows
Currently, if a test panics in CI, a panic message will be printed which does not contain too much of the context. For example: thread 'transport::session_test::test_tracing' panicked at 'No rows for tracing with this session id!', scylla/src/transport/session_test.rs:1093:5 From this information, it's not always possible to learn much about the issue. In this particular case, the `test_tracing` case calls the function which panicked from multiple places and it's impossible to tell which place has this problem specifically. To help with debugging such issues, this commit modifies the workflow definitions to set the `RUST_BACKTRACE` environment variable. This will make sure that the panic will print a full backtrace from the place where this panic originated from, which should help narrow down the code path that failed.
1 parent 4d614ad commit 3ac35ec

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

.github/workflows/authenticate_test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
RUST_BACKTRACE: full
1112

1213
jobs:
1314
# PasswordAuthenticator

.github/workflows/book.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
env:
1111
CARGO_TERM_COLOR: always
12+
RUST_BACKTRACE: full
1213

1314
jobs:
1415
build:

.github/workflows/cassandra.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
env:
1111
CARGO_TERM_COLOR: always
12+
RUST_BACKTRACE: full
1213

1314
jobs:
1415
build:

.github/workflows/rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
env:
1010
CARGO_TERM_COLOR: always
1111
RUSTFLAGS: -Dwarnings
12+
RUST_BACKTRACE: full
1213
rust_min: 1.65.0 # <- Update this when bumping up MSRV
1314

1415
jobs:

.github/workflows/serverless.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
RUST_BACKTRACE: full
1112

1213
jobs:
1314
build:

.github/workflows/tls.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
RUST_BACKTRACE: full
1112

1213
jobs:
1314
tls:

0 commit comments

Comments
 (0)