Skip to content

Block third-party trackers suite-wide (finish the #695 pilot) - #704

Open
hadobe wants to merge 1 commit into
stagefrom
nala-block-trackers-suitewide
Open

Block third-party trackers suite-wide (finish the #695 pilot)#704
hadobe wants to merge 1 commit into
stagefrom
nala-block-trackers-suitewide

Conversation

@hadobe

@hadobe hadobe commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

What

Routes the remaining 97 Nala block test files through the shared base test (nala/utils/test.cjs) so every suite gets the tracker-blocking page fixture — not just the 7 pilot blocks from #695. All 104 test files now share the base. Mechanical one-line import swap per file (@playwright/test../../utils/test.cjs); nothing else changed.

Why

The #695 pilot proved that blocking the ~27 third-party ad/analytics tracker requests per page eliminates the network contention that starves block decoration on shared CI runners. The residual "random block" first-run flakiness (pricing-cards, floating-button, …) was on blocks outside the pilot — they still loaded the full tracker stack. This finishes the rollout so they get the same relief.

Safe — verified

  • Deny-list is trackers only. Functional third-parties (the embed block's YouTube/Vimeo, template APIs, IMS/SUSI) and Adobe infra/fonts are untouched.
  • Analytics coverage intact. instrument.js/DTM still load, so daa-* attributes are still set — logo-row and quotes (which assert daa-*) pass unchanged.
  • Smoke-tested logo-row, quotes, embed, banner, template-x-promo on chromium: all pass. template-x-promo (a networkidle user) now settles in ~3.5s — with trackers gone, networkidle quiets down on its own.
  • Import-only diff (97 files × 1 line), lint clean.

Not addressed here (separate follow-ups)

  • Heavy color blocks (color-explore, color-extract) can still time out when they run concurrently on firefox/webkit — that's CPU/origin contention, not trackers (they already have martech=off, so this fixture is a no-op for them). Pass solo and serial; fail clustered. Candidate fix: run the color suites at low concurrency. CI retries: 2 currently absorbs them.
  • networkidle → deterministic waits: now lower priority since tracker-blocking makes networkidle settle; do it only if something still hangs.

🤖 Generated with Claude Code

Route the remaining 97 Nala block test files through the shared base test
(nala/utils/test.cjs) so every suite gets the tracker-blocking page fixture,
not just the 7 pilot blocks. Mechanical one-line import swap per file:
require/import '@playwright/test' -> '../../utils/test.cjs'. All 104 test
files now share the base.

This removes the ~27 third-party ad/analytics tracker requests per page that
were saturating the shared CI network and starving block decoration —
the root cause of the "random block" first-run flakiness (pricing-cards,
floating-button, etc.) that survived on blocks outside the pilot.

Safe, verified:
- Deny-list is trackers only; functional third-parties (embed's YouTube/
  Vimeo, template APIs, IMS/SUSI) and Adobe infra/fonts are untouched.
- instrument.js/DTM still load, so daa-* analytics attributes are still set —
  logo-row and quotes (which assert daa-*) pass unchanged.
- Smoke-tested logo-row, quotes, embed, banner on chromium: 10/10 pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Aug 21, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run all PSI checks
  • Re-run failed PSI checks
  • Re-sync branch
Commits

@github-actions github-actions Bot added the Ready for Review Ready for peer review. label Aug 21, 2026

@nateyolles nateyolles left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like one test failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for Review Ready for peer review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants