Skip to content

Commit acfe52d

Browse files
authored
Merge branch 'main' into live-reconfig
2 parents 68f510c + ebf2403 commit acfe52d

3 files changed

Lines changed: 197 additions & 40 deletions

File tree

.github/workflows/rust-ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,20 @@ jobs:
170170
- name: Run tests (partition ${{ matrix.partition }}/3)
171171
run: cargo nextest run --profile ci --config-file .config/nextest.toml --archive-file nextest-archive.tar.zst --partition count:${{ matrix.partition }}/3
172172
working-directory: ./rust/${{ matrix.folder }}
173+
- name: Write JUnit artifact metadata
174+
if: always()
175+
shell: bash
176+
run: |
177+
echo '{"job": "${{ github.job }}", "os": "${{ matrix.os }}", "partition": "${{ matrix.partition }}", "folder": "${{ matrix.folder }}"}' \
178+
> ./rust/${{ matrix.folder }}/target/nextest/ci/metadata.json
173179
- name: Upload JUnit XML results
174180
if: always()
175181
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
176182
with:
177183
name: junit-xml-nonrequired-${{ matrix.os }}-${{ matrix.partition }}
178-
path: ./rust/${{ matrix.folder }}/target/nextest/ci/junit.xml
184+
path: |
185+
./rust/${{ matrix.folder }}/target/nextest/ci/junit.xml
186+
./rust/${{ matrix.folder }}/target/nextest/ci/metadata.json
179187
retention-days: 30
180188
if-no-files-found: ignore
181189

@@ -525,12 +533,20 @@ jobs:
525533
- name: Run tests (partition ${{ matrix.partition }}/3)
526534
run: cargo nextest run --profile ci --config-file .config/nextest.toml --archive-file nextest-archive.tar.zst --partition count:${{ matrix.partition }}/3
527535
working-directory: ./rust/${{ matrix.folder }}
536+
- name: Write JUnit artifact metadata
537+
if: always()
538+
shell: bash
539+
run: |
540+
echo '{"job": "${{ github.job }}", "os": "${{ matrix.os }}", "partition": "${{ matrix.partition }}", "folder": "${{ matrix.folder }}"}' \
541+
> ./rust/${{ matrix.folder }}/target/nextest/ci/metadata.json
528542
- name: Upload JUnit XML results
529543
if: always()
530544
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
531545
with:
532546
name: junit-xml-required-${{ matrix.os }}-${{ matrix.partition }}
533-
path: ./rust/${{ matrix.folder }}/target/nextest/ci/junit.xml
547+
path: |
548+
./rust/${{ matrix.folder }}/target/nextest/ci/junit.xml
549+
./rust/${{ matrix.folder }}/target/nextest/ci/metadata.json
534550
retention-days: 30
535551
if-no-files-found: ignore
536552

0 commit comments

Comments
 (0)