Skip to content

ci: check that package exports point at built files - #146

Merged
jddunn merged 1 commit into
masterfrom
ci/verify-exports
Oct 8, 2026
Merged

jddunn merged 1 commit into
masterfrom
ci/verify-exports

Conversation

@jddunn

@jddunn jddunn commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Summary

verify:exports (scripts/package-exports.test.mjs) checks that every target in package.json exports is a file the build produced. It runs only in prepublishOnly, which npm runs during the release, after semantic-release has pushed the version tag. This adds it to the CI Test & Lint job right after the build, so a missing export target fails the pull request that causes it.

None of the 112 export targets is under knowledge/, so the check needs only pnpm run build, which the job already runs.

Linked issues

None.

Type of change

  • Build or CI

How this was verified

The CI run on this pull request: the new step runs after Build in Test & Lint.

Migration notes

None.

Checklist

  • Tests cover the changed behavior.
  • Docs are updated.
  • The title follows Conventional Commits, with ! before the colon for a change that breaks users (feat!: or feat(api)!:).
  • No secrets or private data are included.
  • Every automated review thread is settled (how).
  • I have read this change and can explain every line.

Summary by Sourcery

CI:

  • Run the package export validation in the CI test and lint job after building to catch export targets missing from build output before release.

Summary by CodeRabbit

  • Chores
    • Added a check to the build workflow that verifies package exports point to generated files. This adds an automated validation step to the build process; no changes to package features or public declarations are included.

prepublishOnly runs verify:exports only at release time, after
semantic-release has pushed the tag. Running it after the CI build
reports a missing export target on the pull request instead.
@jddunn
jddunn requested a review from Victor-Evogor as a code owner October 8, 2026 03:25
@sourcery-ai

sourcery-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown

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

You can request another review in 3 hours and 19 minutes 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.

@sourcery-ai

sourcery-ai Bot commented Oct 8, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The CI workflow now runs package export validation immediately after the build, catching missing or stale export targets during pull-request checks instead of only during prepublishOnly release validation.

Flow diagram for CI package export validation

flowchart LR
    TestLint[Test & Lint job] --> Build[pnpm run build]
    Build --> Verify[pnpm run verify:exports]
    Verify --> Lint[pnpm run lint]
Loading

File-Level Changes

Change Details Files
Add package export validation to the pull-request CI pipeline after the build completes.
  • Run the existing verify:exports script in the Test & Lint job.
  • Validate that all package.json export targets resolve to files produced by the build before linting.
.github/workflows/ci.yml

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

@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: framerslab/agentos/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 302c8511-a997-4975-b8a1-3bce3c21b347
📥 Commits

Reviewing files that changed from the base of the PR and between ff883a4 and 8df429f.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.


📝 Walkthrough

Walkthrough

The CI workflow now runs pnpm run verify:exports after the build to check that package exports point to built files.

Changes

CI export verification

Layer / File(s) Summary
Run export verification
.github/workflows/ci.yml
The workflow runs pnpm run verify:exports after the build.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 8df42

CI now checks package exports after the build, and the invocation and generated-file scope are consistent. No merge-blocking risk is evident.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise, specific, and accurately describes the CI change. It follows Conventional Commits format.
Description check ✅ Passed The description includes all required sections and clearly explains the change, verification method, and migration impact. One automated review checklist item remains unchecked, but the description is…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

ci: verify package exports after the build

⚙️ Configuration changes 🕐 Less than 5 minutes

Grey Divider

AI Description

• Run the existing export-target check after the CI build.
• Fail pull requests with missing built export files before release.
Diagram

graph TD
  CI["Test & Lint"] --> Build["Build"] --> Check["Verify exports"] --> Lint["Lint"]
  Exports["Package exports"] --> Check
  Files["Built files"] --> Check
Loading
High-Level Assessment

Running the existing check immediately after the CI build reuses the release validation without duplicating its logic or adding a separate build. A release-only check reports the failure too late.

Files changed (1) +3 / -0

Other (1) +3 / -0
ci.ymlCheck built package exports in CI +3/-0

Check built package exports in CI

• Adds 'pnpm run verify:exports' to the Test & Lint job immediately after the build, so missing export targets fail CI before release.

.github/workflows/ci.yml

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can keep summaries lean with Findings visible per group, which tucks the rest behind a View link

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@jddunn
jddunn merged commit fee43be into master Oct 8, 2026
6 checks passed
@jddunn
jddunn deleted the ci/verify-exports branch October 8, 2026 03:35
github-actions Bot pushed a commit that referenced this pull request Oct 8, 2026
## [0.12.10](v0.12.9...v0.12.10) (2026-10-08)

### feat

* **emergent:** forged code runs through an executor interface, and a CI run measures QuickJS (#148) ([3c5832a](3c5832a))

### docs

* audit follow-ups to the GMI step contract and gateway docs (#147) ([000547a](000547a))
* **gmi:** correct the step contract and document completion options, history and the gateway (#145) ([ff883a4](ff883a4))

### ci

* check that package exports point at built files (#146) ([fee43be](fee43be))
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