Skip to content

Run ub check on src as its own CI gate on every PR - #14

Merged
0xjgv merged 3 commits into
mainfrom
ub-cli-ci-gate
Nov 17, 2026
Merged

0xjgv merged 3 commits into
mainfrom
ub-cli-ci-gate

Conversation

@0xjgv

@0xjgv 0xjgv commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

ub check -s src passes on this repo, but nothing kept it passing: CI ran only make test. This adds make gate and runs it as its own gate job on every PR and push to main.

  • make gate runs this checkout's ub check -s src (via uv run --with-editable ., never an installed ub) with the unittest suite as the test command.
  • make test and make gate share one RUN variable; make test now passes -q to uv run (only uv's own install chatter goes away).
  • README development section says what the gate covers and runs where.

scripts/

Plain ub check fails CRAP on scripts/ (release tooling at ~0% coverage). Options weighed:

  1. Include scripts/ and test it: vendor.py's main/vendor shell out to git fetch; testing them needs git/network fakes for little signal. The other scripts are packaging glue.
  2. Include scripts/ as is: the gate fails; not a gate.
  3. Picked: gate src/ only and say so in the README. vendor.py, the one script with real logic, already has its import rewriting unit-tested (tests/test_vendor.py) and its full re-vendor run by the vendored-tree check on every PR.

Evidence

  • Local: make gate exited 0 in 7:28 wall (10 cores): CRAP: 0 of 59 functions >= 10, Duplication: 0 pairs >= 0.8, Mutation: 273 killed, 0 survived, 0 uncovered.
  • CI gate job wall time: 6m37s on ubuntu-22.04 (run), same counts as local. The job timeout is 30 minutes.
  • Red proof: c5292b4 added an untested if P is Q and len(P) > 4: return True to signature.point_equal. The gate failed in 3m52s (run) with Mutation: 273 killed, 2 survived, 1 uncovered (signature.py:37 survived and -> or, > -> >=, signature.py:38 uncovered True -> False) while test passed. dbfc014 reverts it; squash-merge drops both.

Waits for the ub-cli-fast-mutation PR; I will merge main once it lands and re-time the gate.

make gate runs this checkout's ub check -s src with the unittest suite.
scripts/ stays out of the gate as release tooling; README says why.
@0xjgv
0xjgv marked this pull request as ready for review November 17, 2026 19:45
@0xjgv
0xjgv merged commit 8b03b40 into main Nov 17, 2026
2 checks passed
@chatgpt-codex-connector

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

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T19:47:05.273608Z dbfc014 Draft marked ready
ℹ️ 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.

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