ci(e2e): require fresh distributed JUnit reports (#8384)

* ci(e2e): require fresh distributed JUnit reports

* test(e2e): emit JUnit from successful workflow mocks
This commit is contained in:
Chris
2026-10-08 06:21:19 -07:00
committed by GitHub
parent 371241afcb
commit 1a450bf228
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -168,11 +168,13 @@ jobs:
FILTER: ${{ inputs.filter }}
run: |
set -euo pipefail
rm -f target/nextest/e2e-distributed/junit.xml
if [ -n "${FILTER}" ]; then
python3 scripts/e2e_binary.py run -- cargo nextest run --profile e2e-distributed -p e2e_test -E "${FILTER}"
else
python3 scripts/e2e_binary.py run -- cargo nextest run --profile e2e-distributed -p e2e_test --no-tests=fail
fi
test -s target/nextest/e2e-distributed/junit.xml
- name: Upload distributed e2e diagnostics
if: always()
+6 -1
View File
@@ -42,7 +42,12 @@ if args[:2] == ["nextest", "run"]:
if os.environ.get("RUSTFS_E2E_STARTUP_CAS_BINARY"):
assert pathlib.Path(receipt["binary"]) == pathlib.Path(os.environ["RUSTFS_E2E_STARTUP_CAS_BINARY"]).resolve()
pathlib.Path("target/nextest-command.json").write_text(json.dumps(args))
raise SystemExit(int(os.environ.get("FAKE_TEST_EXIT", "0")))
status = int(os.environ.get("FAKE_TEST_EXIT", "0"))
if status == 0:
junit = pathlib.Path("target/nextest") / args[args.index("--profile") + 1] / "junit.xml"
junit.parent.mkdir(parents=True, exist_ok=True)
junit.write_text("<testsuites/>")
raise SystemExit(status)
target = pathlib.Path(args[args.index("--target-dir") + 1])
binary = target / ("release" if "--release" in args else "debug") / "rustfs"
binary.parent.mkdir(parents=True, exist_ok=True)