Skip to content

feat: classify unsnapshotable subpaths with actionable skip reasons#101

Merged
jacekradko merged 1 commit into
mainfrom
jacek/classify-skip-reasons
Jun 12, 2026
Merged

feat: classify unsnapshotable subpaths with actionable skip reasons#101
jacekradko merged 1 commit into
mainfrom
jacek/classify-skip-reasons

Conversation

@jacekradko

Copy link
Copy Markdown
Contributor

When API Extractor cannot snapshot a subpath, the skip reason in the report was AE's raw error, complete with "You have encountered a software defect. Please consider reporting the issue to the maintainers of this application." That made real packaging problems in the analyzed repo read like break-check bugs (see the three skips on clerk/javascript#8827).

describeExtractionFailure now translates the four AE failure shapes we pinned down into actionable reasons: an ambient entry point (which AE can never analyze, rushstack #1176), and three variants of an unresolvable type name, which usually means the published types are broken for consumers. Anything unrecognized passes through with only the boilerplate stripped. Matching is on message strings; that is safe because AE is pinned exactly and a bump already mandates a break-check major. Reasons are run-scoped and never persisted, so no schema or discovery version changes.

Verified against the three real failures in clerk/javascript: all three now report the friendly reasons on stderr.

@github-actions

Copy link
Copy Markdown
Contributor

API Changes Report

Generated by Break Check on 2026-06-12T02:11:08.787Z

Summary

Metric Count
Packages analyzed 1
Packages with changes 0
🔴 Breaking changes 0
🟡 Non-breaking changes 0
🟢 Additions 0

No API Changes Detected

All packages have stable APIs with no detected changes.


Report generated by Break Check

@pkg-pr-new

pkg-pr-new Bot commented Jun 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@clerk/break-check@101

commit: 9a7e14d

@jacekradko
jacekradko merged commit 1860598 into main Jun 12, 2026
14 checks passed
@jacekradko
jacekradko deleted the jacek/classify-skip-reasons branch June 12, 2026 02:57
This was referenced Jun 12, 2026
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