Skip to content

P6: tests & snapshots green after P4 rename + dual-emit - #2934

Merged
ejhammond merged 3 commits into
xds-unprefix-integrationfrom
navi/chore/p6-tests-ci-green
Jun 19, 2026
Merged

ejhammond merged 3 commits into
xds-unprefix-integrationfrom
navi/chore/p6-tests-ci-green

Conversation

@ejhammond

Copy link
Copy Markdown
Contributor

What

Completes P6 — full test suite + checks green across the repo after the P4 rename and dual-emit landed.

Fixes

  1. 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 to undefined, breaking 12 @xds/lab Schedule tests. The root-duplicate it was meant to prevent is handled by the HeadingLevel→HeadingTag disambiguation + the existing EXISTING_PREFIXED guard. 8 barrels restored their aliases.

  2. sync-exports.js: added ./astryx.css to the canonical export set (P4 part 5 added the package export but not the check's expected set).

  3. agent-docs.test.mjs: 8 assertions updated for pre-existing branding drift the full-CI pass surfaced — generator emits Astryx v${version} (P5a) and --astryx-color-* (P3c), tests still asserted XDS v / --xds-color. The <!-- XDS:START/END --> markers + injectXdsBlock fixtures stay XDS (generator still uses those marker names).

Note: .xds-* class and [data-xds-*] assertions across component tests did not need changes — they use toContain/toHaveClass/querySelector, which still match since the dual-emit keeps xds-* alongside astryx-*.

Validation (full CI green)

  • Full repo vitest: 4754/4754 pass (254 files)
  • @xds/core tsc: clean
  • check:repo gates: compat-aliases ✓, exports-sync ✓, token-docs ✓
  • Build: @xds/core (xds.css + astryx.css emit), docsite generate+test 168/168

CI doesn't auto-run on integration PRs; validated locally as above.

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.
@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

@ejhammond must be a member of the Meta Open Source team on Vercel to deploy.
- Click here to add @ejhammond to the team.
- If you initiated this build, request access.

Learn more about collaboration on Vercel and other options here.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 19, 2026
@ejhammond
ejhammond merged commit e4b6552 into xds-unprefix-integration Jun 19, 2026
2 of 3 checks passed
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)
@cixzhang
cixzhang deleted the navi/chore/p6-tests-ci-green branch June 21, 2026 16:56

This branch had an error being deployed

1 failed deployment
Preview — d24d67bb Deployed Jun 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant