Skip to content

Commit 977cbfe

Browse files
committed
[Backend Tester] Upload test report artifacts in CI job
ghstack-source-id: d911d53 ghstack-comment-id: 3190250291 Pull-Request: #13444
1 parent 4849a49 commit 977cbfe

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
docker-image: ci-image:executorch-ubuntu-22.04-clang12
5151
submodules: recursive
5252
timeout: 90
53+
upload-artifact: report
5354
script: |
5455
set -eux
55-
.ci/scripts/backend-test-linux.sh "${{ matrix.suite }}" "${{ matrix.flow }}"
56+
.ci/scripts/backend-test-linux.sh "${{ matrix.suite }}" "${{ matrix.flow }}" "$${RUNNER_ARTIFACT_DIR}"

0 commit comments

Comments
 (0)