Skip to content

Commit 467c3c6

Browse files
ci(xtest): upload platform and KAS server logs as artifacts on failure
The audit-log artifact only contains audit events from tests that reached the KAS. When a rewrap returns code=Internal before the audit event fires, we currently have no server-side log to inspect from CI. Upload PLATFORM_LOG_FILE and each KAS_*_LOG_FILE under server-logs-* when the test step fails. Empty step outputs (multikas-not-supported matrix rows) are dropped by upload-artifact; if-no-files-found:ignore covers the all-empty case.
1 parent a31749c commit 467c3c6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/xtest.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,21 @@ jobs:
709709
path: otdftests/xtest/test-results/audit-logs/*.log
710710
if-no-files-found: ignore
711711

712+
- name: Upload server logs on failure
713+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
714+
if: failure()
715+
with:
716+
name: server-logs-${{ steps.artifact-name.outputs.sdk_version }}-${{ matrix.platform-tag }}
717+
path: |
718+
${{ steps.run-platform.outputs.platform-log-file }}
719+
${{ steps.kas-alpha.outputs.log-file }}
720+
${{ steps.kas-beta.outputs.log-file }}
721+
${{ steps.kas-gamma.outputs.log-file }}
722+
${{ steps.kas-delta.outputs.log-file }}
723+
${{ steps.kas-km1.outputs.log-file }}
724+
${{ steps.kas-km2.outputs.log-file }}
725+
if-no-files-found: ignore
726+
712727
publish-results:
713728
runs-on: ubuntu-latest
714729
needs: xct

0 commit comments

Comments
 (0)