Skip to content

test(scss-parser): skip flaky build-in-a-test macro-fusion check (#176) - #175

Merged
matthew-dean merged 3 commits into
devfrom
fix/scss-macro-test-ssr-transform
Sep 8, 2026
Merged

test(scss-parser): skip flaky build-in-a-test macro-fusion check (#176)#175
matthew-dean merged 3 commits into
devfrom
fix/scss-macro-test-ssr-transform

Conversation

@matthew-dean

@matthew-dean matthew-dean commented Sep 7, 2026

Copy link
Copy Markdown
Member

The SCSS ast-macro-compiled "macro-fuses" test macro-compiles the largest grammar (~1.5MB fused module) from source through a Vite dev server at test time — a build masquerading as a unit test. Under the full build-free suite (isolate: false, macro tests colliding on Vite's HMR port 24678) its cost is unbounded; it has exceeded even a 120s timeout and intermittently fails the Source tests (build-free) job for unrelated PRs (it is pre-existing infra debt, not a grammar regression).

This temporarily skips just that test (the fast index.ts CST-exclusion test in the same file still runs), so the build-free job is reliable again. The proper fix — verify the fusion on a built artifact in a build-gated job instead of recompiling through Vite — is tracked in #176.

…→ 7s)

The SCSS macro-fusion test macro-compiled the (largest) grammar twice — a
client `transformRequest` for the no-runtime-import assertion, then
`ssrLoadModule` which macro-compiled it again and SSR-loaded its whole
dependency graph to run it — pushing the test past the 30s default under CI
load. Run the grammar via an ordinary static import instead (the sibling
less/jess macro tests already do this; vitest macro-compiles it once), keeping
the client transform only for the assertion. Same coverage, ~4.5x faster, no
longer flakes the build-free job.
@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 8e6b4880-e710-4aa5-8434-c407861a9400

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

The macro-fuses test macro-compiles the largest grammar (~1.5MB fused module)
from source via a Vite dev server at test time; under the full build-free suite
(isolate:false + HMR-port contention) its cost is unbounded and has exceeded even
a 120s timeout, intermittently failing the job for unrelated PRs. Skip it (keeping
the fast index.ts CST-exclusion test) until the fusion is verified on a built
artifact in a build-gated job. Tracked in #176.
@matthew-dean matthew-dean changed the title test(scss-parser): run macro-compiled grammar via static import (32s → 7s) test(scss-parser): skip flaky build-in-a-test macro-fusion check (#176) Sep 8, 2026
@matthew-dean
matthew-dean merged commit 01d6e9b into dev Sep 8, 2026
7 checks passed
@matthew-dean
matthew-dean deleted the fix/scss-macro-test-ssr-transform branch September 8, 2026 00:15
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