Repository navigation
ci: pilot proven-coverage-collect@0.1.0 (shadow only) #167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| # SPDX-License-Identifier: MPL-2.0 | ||
| # proven-cicd: proven-coverage-collect@0.1.1 sha256:0f3e695362fe661ca1daaaa850720e685748e684181793aab47597c23795a354 | ||
| # Stamped copy of hyperpolymath/proven-cicd-and-workflows templates/proven-coverage-collect.yml. | ||
| # Do not edit by hand. A changed body fails as drift. The applier moves the | ||
| # pinned suite SHA. The line after each `proven-cicd:local-next` marker is local | ||
| # and outside the stamp's hash: the suite pin, the third-party action pins, the | ||
| # toolchain versions, the proven-test filter and the JS test globs. | ||
| # | ||
| # This workflow collects coverage reports. It does not judge them. Hypatia does | ||
| # that (`mix hypatia.coverage.report`). It is shadow only: it never fails on a | ||
| # coverage number, and a language it cannot measure is reported in the job | ||
| # summary, not failed. It fails only when the collector itself cannot run (a bad | ||
| # pin, a failed fetch, a drifted copy). It does not change any ruleset. | ||
| # | ||
| # For each language the repository has (Cargo.toml, mix.exs, package.json at the | ||
| # root) it makes one raw run (all tests) and one proven run (a subset), writes a | ||
| # report-meta sidecar next to every report, and uploads everything as one | ||
| # artifact named proven-coverage. | ||
| name: Proven coverage collect | ||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: [main] | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| proven-coverage: | ||
| name: Proven coverage collect | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 30 | ||
| env: | ||
| # proven-cicd:local-next | ||
| PROVEN_SHA: "4d033a09d5a3934a9210e1c03f9f31641ebc763c" | ||
| # proven-cicd:local-next | ||
| PROVEN_COV_RUST_TOOLCHAIN: "stable" | ||
| # proven-cicd:local-next | ||
| PROVEN_COV_RUST_PROVEN_FILTER: "prop_" | ||
| # proven-cicd:local-next | ||
| PROVEN_COV_OTP_VERSION: "27.3.4.19" | ||
| # proven-cicd:local-next | ||
| PROVEN_COV_ELIXIR_VERSION: "1.19.4" | ||
| # proven-cicd:local-next | ||
| PROVEN_COV_NODE_VERSION: "22" | ||
| # proven-cicd:local-next | ||
| PROVEN_COV_JS_RAW_TESTS: "test/**/*.test.js" | ||
| # proven-cicd:local-next | ||
| PROVEN_COV_JS_PROVEN_TESTS: "test/**/props.test.js" | ||
| steps: | ||
| # proven-cicd:local-next | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Fetch the proven suite at its pinned commit | ||
| run: | | ||
| set -euo pipefail | ||
| [[ $PROVEN_SHA =~ ^[0-9a-f]{40}$ ]] || { echo "PROVEN_COVERAGE_CLASS=not_run:pin"; exit 2; } | ||
| suite="$RUNNER_TEMP/proven-suite" | ||
| git init -q "$suite" | ||
| git -C "$suite" remote add origin https://github.com/hyperpolymath/proven-cicd-and-workflows.git | ||
| git -C "$suite" config core.sparseCheckout true | ||
| printf '%s\n' scripts/ > "$suite/.git/info/sparse-checkout" | ||
| fetched=0 | ||
| for delay in 0 10 30; do | ||
| sleep "$delay" | ||
| if git -C "$suite" fetch -q --depth=1 origin "$PROVEN_SHA"; then fetched=1; break; fi | ||
| done | ||
| [[ $fetched == 1 ]] || { echo "PROVEN_COVERAGE_CLASS=not_run:fetch"; exit 2; } | ||
| git -C "$suite" checkout -q --detach FETCH_HEAD | ||
| [[ $(git -C "$suite" rev-parse HEAD) == "$PROVEN_SHA" ]] || { echo "PROVEN_COVERAGE_CLASS=not_run:pin"; exit 2; } | ||
| echo "PROVEN_SUITE=$suite" >> "$GITHUB_ENV" | ||
| - name: Detect languages | ||
| id: detect | ||
| run: bash "$PROVEN_SUITE/scripts/proven-coverage-collect.sh" detect "$GITHUB_WORKSPACE" >> "$GITHUB_OUTPUT" | ||
| # proven-cicd:local-next | ||
| - uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8 # master 2026-08-04 (v1) | ||
| if: ${{ steps.detect.outputs.rust == 'true' }} | ||
| with: | ||
| toolchain: ${{ env.PROVEN_COV_RUST_TOOLCHAIN }} | ||
| components: llvm-tools-preview | ||
| # proven-cicd:local-next | ||
| - uses: taiki-e/install-action@cfdb7ed4ccc7c7dce37759eae89dc5674b469b39 # v2.90.3 | ||
| if: ${{ steps.detect.outputs.rust == 'true' }} | ||
| with: | ||
| tool: cargo-llvm-cov | ||
| # proven-cicd:local-next | ||
| - uses: erlef/setup-beam@54075bcc5e249e4758d363f27d099f55d843f124 # v1.24.1 | ||
| if: ${{ steps.detect.outputs.elixir == 'true' }} | ||
| with: | ||
| otp-version: ${{ env.PROVEN_COV_OTP_VERSION }} | ||
| elixir-version: ${{ env.PROVEN_COV_ELIXIR_VERSION }} | ||
| # proven-cicd:local-next | ||
| - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | ||
| if: ${{ steps.detect.outputs.js == 'true' }} | ||
| with: | ||
| node-version: ${{ env.PROVEN_COV_NODE_VERSION }} | ||
| - name: Collect raw and proven coverage reports (shadow, never judged here) | ||
| run: bash "$PROVEN_SUITE/scripts/proven-coverage-collect.sh" collect "$GITHUB_WORKSPACE" .github/workflows/proven-coverage-collect.yml | ||
| # proven-cicd:local-next | ||
| - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 | ||
| if: ${{ !cancelled() }} | ||
| with: | ||
| name: proven-coverage | ||
| path: .proven-coverage/ | ||
| retention-days: 14 | ||
| include-hidden-files: true | ||
| if-no-files-found: ignore | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Complete lockfile onboarding before merge.
The current
actions.lockhas no entry for this workflow. The lock-sync check therefore rejects the new path and its action references. Adding only the workflow entry is insufficient:taiki-e/install-actionandactions/setup-nodealso need dependency records. (raw.githubusercontent.com)Coordinate the lock regeneration with the Tsunami-breaker process before merge. As per coding guidelines, “Wire first — unwired is not done”.
Source: Coding guidelines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirmed:
check-lock-sync.shreports UNLISTED WORKFLOWS for this file. The needed entries are listed in the PR body. Lock repins belong to the Tsunami-breaker process, so this PR does not editactions.lock. I've handed this over and will leave the thread open until the entries land.Generated by Claude Code