Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

ci: add JUnit XML timing artifacts for test analysis (#514)

Maximilian Roos49a7df9ea9ea
diff --git a/.config/nextest.toml b/.config/nextest.toml
index b3de16a52..c3fec6f50 100644
--- a/.config/nextest.toml
+++ b/.config/nextest.toml
@@ -13,6 +13,11 @@
[profile.default]
slow-timeout = { period = "60s", terminate-after = 1 }
+status-level = "fail"
+success-output = "never"
+
+[profile.default.junit]
+path = "junit.xml"
# The ci_status tests spawn many parallel threads and processes (~30 threads, ~34
# child processes each). Mark them as "heavy" so nextest limits how many run
diff --git a/.config/wt.toml b/.config/wt.toml
index 58a1d2f85..a7cd05bcc 100644
--- a/.config/wt.toml
+++ b/.config/wt.toml
@@ -11,7 +11,7 @@ sync = 'if [ "{{ target }}" = "main" ]; then git pull && git push; fi'
[pre-merge]
pre-commit = "if [ -n \"$MSYSTEM\" ]; then SKIP=lychee-system pre-commit run --all-files; else pre-commit run --all-files; fi"
-insta = "RUSTFLAGS='-D warnings' NEXTEST_STATUS_LEVEL=fail NEXTEST_SUCCESS_OUTPUT=never NEXTEST_NO_INPUT_HANDLER=1 cargo insta test --test-runner nextest --dnd --check $([ \"$(uname)\" = 'Linux' ] && echo '--unreferenced reject') --features shell-integration-tests"
+insta = "RUSTFLAGS='-D warnings' NEXTEST_NO_INPUT_HANDLER=1 cargo insta test --test-runner nextest --dnd --check $([ \"$(uname)\" = 'Linux' ] && echo '--unreferenced reject') --features shell-integration-tests"
doctest = "RUSTDOCFLAGS='-Dwarnings' cargo test --doc"
doc = "RUSTDOCFLAGS='-Dwarnings' cargo doc --no-deps"
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 12e9c677f..ad1eb3d2c 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -100,6 +100,13 @@ jobs:
- name: 🧪 Pre-merge hooks
run: wt hook pre-merge --yes
+ - name: 📊 Upload test timing
+ if: always()
+ uses: actions/upload-artifact@v6
+ with:
+ name: junit-${{ matrix.os }}
+ path: target/nextest/default/junit.xml
+
# Check if Cargo files changed (for conditional jobs below)
changes:
runs-on: ubuntu-latest