mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 08:01:09 +00:00
Logs will be saved to the job artifacts only in case of failure. (#3110)
* Logs will be saved to the job artifacts only in case of failure. * Logs will be partly shown at the end in case of failure. * expiration and parsing
This commit is contained in:
@@ -154,13 +154,24 @@ test-linux-stable-int:
|
|||||||
<<: *test-linux
|
<<: *test-linux
|
||||||
except:
|
except:
|
||||||
refs:
|
refs:
|
||||||
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
|
- /^v[0-9]+\.[0-9]+.*$/ # i.e. v1.0, v2.1rc1
|
||||||
variables:
|
variables:
|
||||||
- $DEPLOY_TAG
|
- $DEPLOY_TAG
|
||||||
script:
|
script:
|
||||||
- time RUST_LOG=sync=trace,consensus=trace,client=trace,state-db=trace,db=trace,forks=trace,state_db=trace,storage_cache=trace
|
- echo "___Logs will be partly shown at the end in case of failure.___"
|
||||||
cargo test -p node-cli --release --verbose --locked -- --ignored --test-threads=1
|
- echo "___Full log will be saved to the job artifacts only in case of failure.___"
|
||||||
|
- RUST_LOG=sync=trace,consensus=trace,client=trace,state-db=trace,db=trace,forks=trace,state_db=trace,storage_cache=trace
|
||||||
|
time cargo test -p node-cli --release --verbose --locked -- --ignored --test-threads=1
|
||||||
|
&> ${CI_COMMIT_SHORT_SHA}_int_failure.log
|
||||||
- sccache -s
|
- sccache -s
|
||||||
|
after_script:
|
||||||
|
- awk '/FAILED/,0' ${CI_COMMIT_SHORT_SHA}_int_failure.log
|
||||||
|
artifacts:
|
||||||
|
name: $CI_COMMIT_SHORT_SHA
|
||||||
|
when: on_failure
|
||||||
|
expire_in: 24 hrs
|
||||||
|
paths:
|
||||||
|
- ${CI_COMMIT_SHORT_SHA}_int_failure.log
|
||||||
allow_failure: true
|
allow_failure: true
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user