Skip to content

test(reference): pin excluded package main resolution - #7941

Merged
morluto merged 1 commit into
mainfrom
codex/reference-main-exclusion-7291
Oct 29, 2026
Merged

morluto merged 1 commit into
mainfrom
codex/reference-main-exclusion-7291

Conversation

@morluto

@morluto morluto commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Related to #7291. Add public CLI regression coverage for a declared package main omitted from the source inventory. The runtime fix already exists on main in 838f5f44d and keeps earlier unobserved candidates unresolved; this PR changes tests only.

Problem and expected behavior

A declared main hidden by an exclusion must not be treated as absent and replaced with the package's index. The regression covers both a default-excluded directory and a project-excluded file, plus visible-main and genuinely missing-main controls. The existing excluded-manifest control remains covered.

Change and scope

Extend the public reference-source CLI boundary test. This does not change resolver behavior, exclusion policy or file access.

Contract and boundary impact

  • Semantic owner and earliest changed stage: existing reference-source selection owner; public CLI regression only.
  • Contribution scope fit and linked maintainer decision: test-only; no new target authority.
  • CLI and MCP/tool-catalog contract: unchanged.
  • Provider, bridge, target-format, or platform compatibility: unchanged.
  • Evidence, artifact, provenance, or reconstruction contract: unchanged.
  • Target selection, authority, upstream behavior, and cleanup details: unchanged.
  • Generated metadata, package, or installation impact: none.

Expected effects:

  • Read existing files or captured data.

Evidence and regression coverage

The test creates synthetic packages and verifies exclusions remain visible, excluded mains resolve as unknown, an observed main remains internal, and a truly absent main falls back to the observed index. It exercises the public compiled CLI. Current-main behavior was observed; the earlier failing revision was not rerun. MCP and real package inventories were not exercised.

Validation performed

  • npm run test:focused -- tests/boundary/cli/referenceSourceExcludedPackageManifest.test.ts tests/boundary/cli/referenceSourceDirectoryImports.test.ts — 3 tests passed.
  • npm run check:fast — passed.
  • git diff --check — passed.

Compatibility, safety, and release

No runtime or schema change. Synthetic local source fixtures only.

Author readiness

Human owner: @morluto

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • This PR addresses a concrete problem or an agreed enhancement.
  • Material scope and authority questions are resolved, and any required maintainer scope decision covers the final diff.
  • The PR has one focused outcome and the title follows type(scope): outcome.
  • Related issue is linked, or the reason for not linking one is stated above.
  • Tests cover changed observable behavior and meaningful failure paths.
  • Owning docs, contracts, and generated metadata are updated where needed.
  • User-visible CLI/MCP changes include representative output.
  • I checked the final diff for secrets, unrelated cleanup, and unsupported claims.

@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The test-only change appears safe to merge.

Summary

Adds public CLI regression coverage for package mains omitted from the source inventory.

  • The reference CLI test checks that excluded package mains stay unresolved.

Review checks: traced the resolver, exclusion rules, CLI fixture, and cleanup helpers. The diff whitespace check passed. Tests were not rerun. Remote supersession could not be checked because GitHub authentication was unavailable.

Reviews (1) · Last reviewed commit: "test(reference): pin excluded package ma..." · Reviewed by Greptile

@morluto
morluto marked this pull request as ready for review October 28, 2026 23:24
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T23:26:00.979000Z e1f3d5c 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.

@morluto
morluto merged commit 7c57005 into main Oct 29, 2026
43 of 44 checks passed
@morluto
morluto deleted the codex/reference-main-exclusion-7291 branch October 29, 2026 00:18
@morluto morluto added the area: tests Test suite and verification label Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tests Test suite and verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant