Skip to content

Commit 8820ea1

Browse files
authored
Merge pull request crossplane#6414 from negz/one-time
Run E2Es with `--hide-summary output`
2 parents a6c8d06 + 3c1fb7d commit 8820ea1

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
# TODO(negz): Remove this and all references to the v2 branches below
99
# if/when v2 is merged into main. It's a temporary branch for v2 preview
1010
# development.
11-
- v2
11+
- v2
1212
pull_request: {}
1313
workflow_dispatch: {}
1414

@@ -299,6 +299,13 @@ jobs:
299299
secret: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }}
300300
path: _output/tests/e2e-tests.xml
301301

302+
- name: Upload E2E Test Artifacts to GitHub
303+
if: '!cancelled()'
304+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
305+
with:
306+
name: e2e-tests-${{ matrix.test-suite }}
307+
path: _output/tests/**
308+
302309
publish-artifacts:
303310
runs-on: ubuntu-22.04
304311

Earthfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,16 @@ e2e:
7474
# https://github.com/earthly/earthly/issues/4143 is fixed.
7575
RUN gotestsum \
7676
--rerun-fails \
77-
--no-color=false \
78-
--format ${GOTESTSUM_FORMAT} \
79-
--junitfile e2e-tests.xml \
80-
--raw-command go tool test2json -t -p E2E ./e2e -test.v ${FLAGS}
77+
--rerun-fails-report e2e-rerun-fails.txt \
78+
--hide-summary output \ # See https://github.com/gotestyourself/gotestsum/issues/423
79+
--no-color=false \
80+
--format ${GOTESTSUM_FORMAT} \
81+
--junitfile e2e-tests.xml \
82+
--raw-command go tool test2json -t -p E2E ./e2e -test.v ${FLAGS}
8183
END
8284
FINALLY
8385
SAVE ARTIFACT --if-exists e2e-tests.xml AS LOCAL _output/tests/e2e-tests.xml
86+
SAVE ARTIFACT --if-exists e2e-rerun-fails.txt AS LOCAL _output/tests/e2e-rerun-fails.txt
8487
END
8588

8689
# hack builds Crossplane, and deploys it to a kind cluster. It runs in your

0 commit comments

Comments
 (0)