diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9a659bb3..c5578c41 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,6 +10,15 @@ on: branches: - "**" workflow_dispatch: + inputs: + complement_logs: + type: boolean + default: true + description: Upload complement logs even after success. + complement_verbose: + type: boolean + default: false + description: Include successful tests in complement logs. concurrency: group: ${{github.workflow}}-${{github.ref}} @@ -45,6 +54,8 @@ jobs: check_pkgs: ${{vars.CHECK_PKGS || github.ref == 'refs/heads/test'}} complement: ${{vars.COMPLEMENT != 'false'}} complement_runner: 'het' + complement_logs: ${{inputs.complement_logs || 'true'}} + complement_verbose: ${{inputs.complement_verbose || 'false'}} docker_repo: ${{vars.DOCKER_REPO}} docker_acct: ${{vars.DOCKER_ACCT}} release_url: ${{steps.release.outputs.upload_url}} @@ -180,6 +191,8 @@ jobs: rust_sdk_integ: ${{fromJSON(needs.init.outputs.rust_sdk_integ)}} complement: ${{fromJSON(needs.init.outputs.complement)}} complement_runner: ${{needs.init.outputs.complement_runner}} + complement_logs: ${{fromJSON(needs.init.outputs.complement_logs)}} + complement_verbose: ${{fromJSON(needs.init.outputs.complement_verbose)}} cargo_profiles: ${{needs.init.outputs.cargo_profiles}} feat_sets: ${{needs.init.outputs.feat_sets}} rust_toolchains: ${{needs.init.outputs.rust_toolchains}} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 820a2fc1..41833d32 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,15 @@ on: default: true complement_runner: type: string + default: 'het' + complement_logs: + type: boolean + default: true + description: Upload complement logs artifact even when passing. + complement_verbose: + type: boolean + default: false + description: Include complement logs from successful tests. rust_sdk_integ: type: boolean default: true @@ -48,6 +57,7 @@ on: default: true head_msg: type: string + default: ${{github.event.workflow_run.head_commit.message}} jobs: docs: @@ -358,6 +368,7 @@ jobs: - name: Execute id: execute env: + complement_verbose: ${{inputs.complement_verbose && 1 || 0}} cargo_profile: ${{matrix.cargo_profile}} rust_toolchain: ${{matrix.rust_toolchain}} rust_target: ${{matrix.rust_target}} @@ -389,7 +400,7 @@ jobs: name: complement_results-${{matrix.feat_set}}-${{matrix.sys_name}}-${{matrix.sys_target}}.jsonl path: ./tests/complement/results.jsonl - - if: failure() && steps.execute.outcome == 'failure' + - if: inputs.complement_logs || (failure() && steps.execute.outcome == 'failure') name: Upload Failure Output id: upload-output uses: actions/upload-artifact@v4