Skip to content

Commit e1464a8

Browse files
committed
Update
[ghstack-poisoned]
2 parents c986013 + e269157 commit e1464a8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.ci/scripts/backend-test-linux.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ set -eux
88

99
SUITE=$1
1010
FLOW=$2
11+
ARTIFACT_DIR=$3
1112

1213
echo "Running backend test job for suite $SUITE, flow $FLOW."
14+
echo "Saving job artifacts to $ARTIFACT_DIR."
1315

1416
# The generic Linux job chooses to use base env, not the one setup by the image
1517
eval "$(conda shell.bash hook)"
@@ -22,4 +24,4 @@ conda activate "${CONDA_ENV}"
2224
# We need the runner to test the built library.
2325
PYTHON_EXECUTABLE=python .ci/scripts/setup-linux.sh --build-tool cmake --build-mode Release
2426

25-
python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report test_results.csv
27+
python -m executorch.backends.test.suite.runner $SUITE --flow $FLOW --report "$ARTIFACT_DIR/test_results.csv"

.github/workflows/nightly.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@ jobs:
5050
docker-image: ci-image:executorch-ubuntu-22.04-clang12
5151
submodules: recursive
5252
timeout: 90
53+
upload-artifact: test-report-${{ matrix.flow }}-${{ matrix.suite }}
5354
script: |
5455
set -eux
5556
# Intentionally suppressing exit code for now.
5657
# TODO (gjcomer) Remove this when jobs are stable.
57-
.ci/scripts/backend-test-linux.sh "${{ matrix.suite }}" "${{ matrix.flow }}" || EXIT_CODE=$?
58+
EXIT_CODE=0
59+
.ci/scripts/backend-test-linux.sh "${{ matrix.suite }}" "${{ matrix.flow }}" "${RUNNER_ARTIFACT_DIR}" || EXIT_CODE=$?
5860
echo "Test run complete with exit code $EXIT_CODE."
59-

0 commit comments

Comments
 (0)