fix: recognize frontend feature loaders - #205
hopehadfield wants to merge 1 commit into
Conversation
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
|
|
🤖 Finished Review · ✅ Success · Started 2:41 PM UTC · Completed 2:56 PM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-4-6 · Effort: high · Cost: $2.58 |
|
Risk Assessment: moderate (2/5) DetailsSmall dependency-only change (3 files, 51 lines) adding a yarn patch for @backstage/cli-node with no protected paths or CI impact; elevated Tier 2 churn on package.json and yarn.lock reflects expected background noise on those shared files. |
ReviewFindingsMedium
Next steps:
|
| +++ b/dist/monorepo/PackageGraph.cjs.js | ||
| @@ -14,7 +14,8 @@ const packageFeatureType = [ | ||
| "@backstage/BackendFeature", | ||
| "@backstage/BackstagePlugin", |
There was a problem hiding this comment.
[medium] logic-error
The patch updates dist/monorepo/PackageGraph.cjs.js (CJS runtime) and dist/index.d.ts (type declarations) to add "@backstage/FrontendFeatureLoader", but contains no hunk for dist/monorepo/PackageGraph.js, which would be the ESM counterpart in a Rollup dual-build. If that file exists in the published @backstage/cli-node@0.3.4 tarball, ESM consumers will still see a 4-element packageFeatureType array without FrontendFeatureLoader at runtime while TypeScript compilation succeeds, masking the gap.
Suggested fix: Unpack the @backstage/cli-node@0.3.4 tarball and check for dist/monorepo/PackageGraph.js. If it exists, add a third hunk to the patch file targeting that file with the same "@backstage/FrontendFeatureLoader" addition to the packageFeatureType array.
|
🤖 Finished Retro · ✅ Success · Started 3:55 PM UTC · Completed 4:03 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $2.91 |
Retro: PR #205 — fix: recognize frontend feature loadersTimeline
What went well
Key gap: review missed the CI-breaking incompatibilityThe review agent flagged a speculative ESM gap but missed the definite CI-breaking issue: the Yarn The root cause is that AGENTS.md has no mention of the Verify Plugin Export workflow, the Retro dispatch efficiencyThis retro ran on a closed, unmerged human-authored PR where the only agent interaction was a single review. This pattern has limited retro value and is already covered by existing upstream issues: fullsend-ai/fullsend#2471 (skip retro for unmerged human PRs with only review-agent interaction) and fullsend-ai/fullsend#7197 (skip retro when no agent stages ran). This retro provides additional supporting evidence for those issues. Existing issue evidence
Proposals filed
|



Description
Patch
@backstage/cli-node@0.3.4soFrontendFeatureLoaderentry points are recognized in generated feature metadata and Module Federation exposure detection. This allows the TechDocs addons dynamic-plugin/alphaentry point to be packaged as a supported frontend feature while the RHDH 2.1 branch still consumes the older Backstage release.Test Plan
yarn tsc./alphais detected as@backstage/FrontendFeatureLoader.andalphaChecklist