Skip to content

ci: complete Sonar source scope and measured coverage - #51

Merged
brettheap merged 22 commits into
mainfrom
010-sonar-assurance
Nov 12, 2026
Merged

brettheap merged 22 commits into
mainfrom
010-sonar-assurance

Conversation

@brettheap

@brettheap brettheap commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Provide complete, exact-commit Sonar inventory and measured Python/Bash coverage for the assembled project, including eighteen extensionless commands and the pinned provider. Copied commands earn coverage only when their bytes match committed sources; every unexecuted production file remains in the denominator. A mandatory C-tracer probe verifies exact-copy attribution and rejects modified copies before testing. The collector preserves application SIGTERM ownership and intentionally clean virtual environments.

Both complete composed/provider suites run independently and pass measured evidence by immutable artifact ID. The helpers require both artifacts to match a fresh checkout's exact commits, source bytes and complete line-bounded reports, then combine actual hits by boolean union. They fail on missing work, source drift, incomplete main indexing, absent/ignored new-code coverage, neutral gates or changed Sonar way thresholds. PR receipts distinguish changed-file/new-code metrics from authoritative complete main acceptance.

Consume normally merged provider 4bf963f0ca416b142652bb608cafe5c76d893faa from opensoft/openRepoShape#1330, with its recomputed tree digest. CI installations require wheels; the provider uses its pinned/hash-verified runtime dependency lock. Existing source CI jobs, commands, package checks and the full-CI parity contract remain.

Validation: 45 focused helper checks, 12 measured process-supervision checks, 12 measured package-isolation checks and 258 earlier composed collector-smoke cases pass on Python 3.15.2/coverage 7.17.3. Exact copies credit 190 Python lines and modified copies zero in the separate mandatory probe. The earlier 35d60b8 head passed all ordinary/reusable full CI; this final provider-consuming head requires fresh complete checks. Companion governance/reconciliation: opensoft/openRepoTools-spec#32/#34; assembly: opensoft/openRepoTools#361. Published-main acceptance is pending.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-12T21:35:13.227927Z
We couldn’t complete this review. Comment @codex review to try again.
c72c619 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Data structures

Define the exact-commit source inventory and measured Python/Bash coverage report, including provenance-aware attribution and complete production denominators.

  • .github/ci/sonar_coverage.py L1-295
  • .github/ci/sonar_coverage/bash-env.sh L1-31
  • .github/ci/sonar_coverage/provenance.py L1-41
  • .github/ci/sonar_coverage/sitecustomize.py L1-14

Implementation

Inventory and bind CI evidence to exact checkout bytes, then verify Sonar indexing, coverage, revisions, and quality-gate acceptance.

  • .github/ci/sonar_assurance.py L1-354

Configuration

Update the pinned provider revision and baseline, and require wheel-only pytest installation in the affected workflow jobs.

  • .github/ci/full-ci-baseline.json L5-22, L31-47
  • .github/workflows/tests.yml L173, L267
  • contracts/openreposhape-pin.yaml L54, L60
  • upstream/openRepoShape L1

Tests

Test exact-source inventory, evidence combination, Sonar acceptance, provenance-aware coverage, shell tracing, and the wheel-only workflow expectations.

  • tests/test_sonar_assurance.py L1-277
  • tests/test_sonar_coverage.py L1-136
  • tests/test_tests_workflow.py L146, L160

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@brettheap

Copy link
Copy Markdown
Contributor Author

Shared-CI coordination: I am preparing feature009's separate disabled-by-default claude-current cutover PR (trusted routing, held manual queue and landing proof) under prepare/open-only authority. Your PR owns the Sonar collectors and baseline amendment. I will not edit this PR/branch or regenerate .github/ci/full-ci-baseline.json. The cutover will preserve the thirteen full jobs and validate only narrowly normalized needs/if control wiring; your wheel-only installation changes and coverage work must survive integration. I am using separate isolated worktrees, not touching lanes1-5. Before any later cutover merge, I will refresh to the latest reviewed baseline and require fresh integrated CI/review. Please flag any additional coupling/ordering constraints; no merge hold or lane pause is requested.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap marked this pull request as ready for review November 12, 2026 21:35
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 12, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 16 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap
brettheap merged commit b227d53 into main Nov 12, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant