Export shadow logs as an artifact for debugging

This commit is contained in:
Cecylia Bocovich 2024-01-06 14:08:31 -05:00
parent b3b03d1a56
commit f95babc1e1
No known key found for this signature in database
GPG key ID: 009DE379FD9B7B90

View file

@ -164,6 +164,10 @@ shadow-integration:
key: sf-integration-$SHADOW_VERSION-$TGEN_VERSION
paths:
- /opt/
artifacts:
paths:
- shadow.data.tar.gz
when: on_failure
script:
- apt-get update
- apt-get install -y git tor
@ -219,6 +223,7 @@ shadow-integration:
- git clone --depth 1 https://github.com/cohosh/shadow-snowflake-minimal
- pushd shadow-snowflake-minimal/
- shadow --log-level=debug --model-unblocked-syscall-latency=true snowflake-minimal.yaml > shadow.log
- tar -czvf $CI_PROJECT_DIR/shadow.data.tar.gz shadow.data/
# Check to make sure streams succeeded
- |