STRA-8 add Linux changed-scope coverage gate
Linux / verify (pull_request) Failing after 1m15s
Linux / changed-scope-coverage (pull_request) Skipped
Linux / keyless-cuda (pull_request) Skipped
Linux / hosted-cuda-package (pull_request) Skipped
Linux / linux-static-cli (pull_request) Skipped
Linux / linux-cli-container (pull_request) Skipped
Linux / release-cli (pull_request) Skipped

This commit is contained in:
Pavlo Ratushnyi
2026-10-07 00:57:08 +02:00
parent 3bcfbfd856
commit 30d2867aea
11 changed files with 11558 additions and 2038 deletions
+42
View File
@@ -15,6 +15,10 @@ on:
description: Build actual CUDA package on isolated hosted CPU (no GPU, private artifact)
type: boolean
default: false
changed_scope_coverage:
description: Run exact changed-production Rust line, function and branch coverage on Linux CPU
type: boolean
default: false
permissions:
contents: read
@@ -37,6 +41,44 @@ jobs:
- name: Local checks
run: scripts/check-local.sh
changed-scope-coverage:
if: github.event_name == 'workflow_dispatch' && inputs.changed_scope_coverage
needs: verify
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install parser runtime
run: apt-get update && apt-get install -y ca-certificates curl python3
- name: Install pinned Rust nightly with LLVM coverage tools
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain none
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
export PATH="$HOME/.cargo/bin:$PATH"
rustup toolchain install nightly-2026-10-05 --profile minimal --component llvm-tools-preview
- name: Test coverage parser and workflow contract
run: python3 scripts/test-changed-scope-coverage.py
- name: Run exact changed-production coverage gate
run: python3 scripts/check-changed-scope-coverage.py --root "$GITHUB_WORKSPACE" --output-dir "$RUNNER_TEMP/changed-scope-coverage"
- name: Archive raw LCOV and machine-readable summary
if: always()
uses: actions/upload-artifact@v4.4.3
with:
name: changed-scope-coverage-${{ github.run_id }}-${{ github.run_attempt }}
path: |
${{ runner.temp }}/changed-scope-coverage/coverage.raw.lcov
${{ runner.temp }}/changed-scope-coverage/summary.json
${{ runner.temp }}/changed-scope-coverage/summary.txt
${{ runner.temp }}/changed-scope-coverage/cargo.stderr
${{ runner.temp }}/changed-scope-coverage/llvm-cov.stderr
${{ runner.temp }}/changed-scope-coverage/llvm-profdata.stderr
if-no-files-found: warn
retention-days: 14
keyless-cuda:
if: github.event_name == 'workflow_dispatch' && github.event.inputs.keyless_gpu == 'true'
needs: verify