From 522f9181a5c22344400b2ec8325095e38a3d3ab9 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 29 Jan 2026 21:37:05 +0000 Subject: [PATCH] ci: Upload complement logs artifact unconditionally. Signed-off-by: Jason Volk --- .github/workflows/main.yml | 2 -- .github/workflows/test.yml | 7 ++----- docker/complement.sh | 1 + 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cae1e392..bd63f95f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -126,7 +126,6 @@ jobs: enable_test_nix: ${{fromJSON(inputs.enable_test_nix || 'true')}} enable_test_rustsdk: ${{fromJSON(inputs.enable_test_rustsdk || 'true')}} enable_test_complement: ${{fromJSON(inputs.enable_test_complement || 'true')}} - complement_logs: ${{fromJSON(inputs.complement_logs || 'true')}} complement_verbose: ${{fromJSON(inputs.complement_verbose || 'false')}} complement_runner: 'het' enable_package: ${{fromJSON(inputs.enable_package || 'true')}} @@ -293,7 +292,6 @@ jobs: enable_rustsdk: ${{needs.init.outputs.enable_test_rustsdk}} enable_complement: ${{needs.init.outputs.enable_test_complement}} complement_runner: ${{needs.init.outputs.complement_runner}} - complement_logs: ${{needs.init.outputs.complement_logs}} complement_verbose: ${{needs.init.outputs.complement_verbose}} cargo_profiles: ${{needs.init.outputs.cargo_profiles}} feat_sets: ${{needs.init.outputs.feat_sets}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fb4be29c..c8587299 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -68,9 +68,6 @@ on: complement_runner: type: string default: 'het' - complement_logs: - type: string - default: 'true' complement_verbose: type: string default: 'false' @@ -428,8 +425,8 @@ jobs: name: complement_results-${{matrix.feat_set}}-${{matrix.sys_name}}-${{matrix.sys_target}}.jsonl path: ./tests/complement/results.jsonl - - if: inputs.complement_logs || (failure() && steps.execute.outcome == 'failure') - name: Upload Failure Output + - if: success() || (failure() && steps.execute.outcome == 'failure') + name: Upload Log Output id: upload-output uses: actions/upload-artifact@v4 with: diff --git a/docker/complement.sh b/docker/complement.sh index fefaf47c..f238336e 100755 --- a/docker/complement.sh +++ b/docker/complement.sh @@ -99,6 +99,7 @@ docker logs -f "$cid" docker wait "$cid" 2>/dev/null extract_results +extract_output git diff -U0 --color --shortstat "$result_dst" | (grep "$run" || true) git diff --quiet --exit-code "$result_dst"