Repository navigation
P6: tests & snapshots green after P4 rename + dual-emit - #2934
Merged
ejhammond merged 3 commits intoJun 19, 2026
Merged
Conversation
The P4 generator inversion added a guard skipping alias emission for ANY
export re-exported from a sibling module (../X). That was too aggressive: it
removed legitimate compat aliases that consumers import via convenience
subpaths — e.g. lab imports {XDSHStack} from '@xds/core/Stack', but Stack
re-exports HStack from '../HStack', so the guard dropped 'HStack as XDSHStack'
there and the import resolved to undefined (20 lab Schedule test failures).
The root-level duplicate the guard was meant to prevent (XDSHeadingLevel) is
actually handled by the separate theme HeadingLevel->HeadingTag disambiguation
(P4) + the existing EXISTING_PREFIXED cross-barrel guard. Remove the sibling
guard; regenerate (8 barrels restored their sibling-reexport aliases).
@xds/core tsc clean; lab Schedule 15/15 pass.
P4 part 5 added the ./astryx.css package export (sibling of xds.css) but didn't update scripts/sync-exports.js's canonical export set, so check:repo flagged it as 'in package.json but not in src/'. Mirror the ./xds.css entry. check passes.
Pre-existing assertion drift surfaced by the full-CI-green pass: the agent-docs
generator emits 'Astryx v${version}' (P5a branding) and the theme-nudge rule
references --astryx-color-* (P3c var rebrand), but the test still asserted
'XDS v' and /never override --xds-color/. Update the 8 branding/var assertions;
the <!-- XDS:START/END --> markers + injectXdsBlock fixtures stay XDS (the
generator still uses those marker names). 39/39 agent-docs tests pass.
ejhammond
requested review from
cixzhang,
imdreamrunner,
josephfarina,
marie-lucas,
nynexman4464 and
thedjpetersen
as code owners
June 19, 2026 06:20
|
@ejhammond must be a member of the Meta Open Source team on Vercel to deploy. Learn more about collaboration on Vercel and other options here. |
ejhammond
added a commit
that referenced
this pull request
Jun 19, 2026
* P6: fix over-broad sibling-reexport guard in compat generator
The P4 generator inversion added a guard skipping alias emission for ANY
export re-exported from a sibling module (../X). That was too aggressive: it
removed legitimate compat aliases that consumers import via convenience
subpaths — e.g. lab imports {XDSHStack} from '@xds/core/Stack', but Stack
re-exports HStack from '../HStack', so the guard dropped 'HStack as XDSHStack'
there and the import resolved to undefined (20 lab Schedule test failures).
The root-level duplicate the guard was meant to prevent (XDSHeadingLevel) is
actually handled by the separate theme HeadingLevel->HeadingTag disambiguation
(P4) + the existing EXISTING_PREFIXED cross-barrel guard. Remove the sibling
guard; regenerate (8 barrels restored their sibling-reexport aliases).
@xds/core tsc clean; lab Schedule 15/15 pass.
* P6: add ./astryx.css to sync-exports expected set
P4 part 5 added the ./astryx.css package export (sibling of xds.css) but didn't
update scripts/sync-exports.js's canonical export set, so check:repo flagged it
as 'in package.json but not in src/'. Mirror the ./xds.css entry. check passes.
* P6: fix agent-docs test assertions for Astryx branding + --astryx-color
Pre-existing assertion drift surfaced by the full-CI-green pass: the agent-docs
generator emits 'Astryx v${version}' (P5a branding) and the theme-nudge rule
references --astryx-color-* (P3c var rebrand), but the test still asserted
'XDS v' and /never override --xds-color/. Update the 8 branding/var assertions;
the <!-- XDS:START/END --> markers + injectXdsBlock fixtures stay XDS (the
generator still uses those marker names). 39/39 agent-docs tests pass.
(cherry picked from commit e4b6552)
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Completes P6 — full test suite + checks green across the repo after the P4 rename and dual-emit landed.
Fixes
Compat generator: removed an over-broad sibling-reexport guard (introduced during the P4 inversion). It skipped emitting
XDS*aliases for any name re-exported from a sibling module, which dropped legitimate compat aliases consumers import via convenience subpaths — e.g.import {XDSHStack} from '@xds/core/Stack'(Stack re-exports HStack from../HStack) resolved toundefined, breaking 12@xds/labSchedule tests. The root-duplicate it was meant to prevent is handled by theHeadingLevel→HeadingTagdisambiguation + the existingEXISTING_PREFIXEDguard. 8 barrels restored their aliases.sync-exports.js: added./astryx.cssto the canonical export set (P4 part 5 added the package export but not the check's expected set).agent-docs.test.mjs: 8 assertions updated for pre-existing branding drift the full-CI pass surfaced — generator emitsAstryx v${version}(P5a) and--astryx-color-*(P3c), tests still assertedXDS v/--xds-color. The<!-- XDS:START/END -->markers +injectXdsBlockfixtures stayXDS(generator still uses those marker names).Note:
.xds-*class and[data-xds-*]assertions across component tests did not need changes — they usetoContain/toHaveClass/querySelector, which still match since the dual-emit keepsxds-*alongsideastryx-*.Validation (full CI green)
@xds/coretsc: cleancheck:repogates: compat-aliases ✓, exports-sync ✓, token-docs ✓@xds/core(xds.css + astryx.css emit), docsite generate+test 168/168CI doesn't auto-run on integration PRs; validated locally as above.