Skip to content

Prepare the GitHub CLI only for CI files that use it - #5449

Merged
freeqaz-openai merged 1 commit into
mainfrom
refactor/scope-repository-credential-cli-preparation
Nov 11, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
refactor/scope-repository-credential-cli-preparation

Conversation

@freeqaz-openai

Copy link
Copy Markdown
Collaborator

Summary

  • Declare the pinned GitHub CLI as a per-file requirement for the three repository credentials fixtures that mount the host binary.
  • Use that requirement during preparation to avoid four unnecessary extractions per lane run. Keep the lane's seven files, expected test names, and image requirements.

Verification

  • Across seven local selected-file invocations, including six completed in a continuation, the repository credentials runner recorded 39 passes and zero skips. Only the three files that require the host GitHub CLI extracted it, once each.
  • A controlled extraction failure stopped at preparation with zero test records, even with a GitHub CLI path supplied in the environment. The lane cleaned up its owned extraction resources.
  • The CI preparation and runner suites passed 213 tests. The suite inventory audit, workspace check, typecheck, lint, and focused formatting passed.

Hosted verification is pending.

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR extracts the pinned GitHub CLI only for the three CI files that mount the host binary.

Example: Run the seven-file repository-credentials-container lane.

  • Before: Preparation extracts GitHub CLI 2.103.2 seven times.
  • After: Preparation extracts it three times, while retaining all seven files and their image requirements.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is source-supported and its relevant hosted check passed; detailed execution traces were unavailable for independent inspection.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored CI maintenance PR is outside the ordinary contributor proof gate; the body reports seven selected-file runs and controlled extraction failure, and the current-head Repository Credentials check passed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Repository Credentials CI performs four binary extractions that its selected fixtures do not use.
Reason: The maintainer-authored direction removes concrete redundant preparation with a small patch and preserves the lane's existing qualification scope.

Merge readiness

✅ Ready for maintainer review

Keep open for maintainer triage: this PR makes a focused, useful CI optimization, and no concrete correctness or security defect was found.

Priority: P3
Reviewed head: 97523391dee5c24c0114ce14eca537e9f929e1cf

Before merge

None.

Findings

None.

Agent review details

How this fits together

The CI runner reads lane and file requirements, prepares images and file resources, executes selected tests, and cleans up owned resources.

flowchart LR
  A[Lane manifest] --> B[CI runner]
  B --> C[File preparation]
  C --> D[Pinned CLI extraction when required]
  C --> E[Selected test file]
  D --> E
  E --> F[Results and cleanup]
Loading

Technical review

Best possible solution:

Retain the manifest-owned per-file requirement and the existing pinned extraction and cleanup path for its three consumers.

Do we have a high-confidence way to reproduce the issue?

Fetched main unconditionally calls binary extraction for every file in this lane; source inspection establishes the redundant work without executing target code.

Is this the best way to solve the issue?

The patch uses the existing requiredEnv contract and preparation owner, preserves all consumers, and avoids additional configuration or parallel machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d8cfd61434b8.

Provenance checked

  • Pinned GitHub CLI preparation keeps the original intent (0b1f9eb: Provide controlled native Git and pinned gh clients for repository credential qualification.)
  • Lane-owned requirement declarations keeps the original intent (72db8f1: Separate lane manifest ownership while preserving expanded requirements and test selection.)
  • Prepared environment priority and cleanup keeps the original intent (f660167: Preserve generated environment priority, saved defaults, and resource cleanup across file preparation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Free Wortley: Raw commit f660167 adds scripts/ci/prepare.mjs:3830 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f6601676a4dd; files: scripts/ci/prepare.mjs)
  • stevenlee-oai: Raw commit 72db8f1 adds scripts/ci/test-suites/repository-credentials-container.json:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 72db8f133098; files: scripts/ci/test-suites/repository-credentials-container.json)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P3: This is a bounded CI efficiency improvement with no demonstrated user-facing failure.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a bounded CI efficiency improvement with no demonstrated user-facing failure.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 5:12 AM ET / 10:12 UTC.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 10:18
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 10:18
@freeqaz-openai
freeqaz-openai merged commit bac8fa3 into main Nov 11, 2026
94 of 96 checks passed
@freeqaz-openai
freeqaz-openai deleted the refactor/scope-repository-credential-cli-preparation branch November 11, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant