test(e2e): 오래된 탭 시험의 preload 허용을 검사되는 문서의 청크로 좁힌다
frontend-quality-gates / merge / static checks (pull_request) Successful in 2m52s
frontend-quality-gates / FE-GATE-014 / config-compatibility (pull_request) Skipped
frontend-quality-gates / FE-GATE-028 / manual-accessibility-review (pull_request) Skipped
frontend-quality-gates / FE-GATE-026 / lab-performance (pull_request) Skipped
frontend-quality-gates / FE-GATE-015 / immutable-release-candidate (pull_request) Skipped
frontend-quality-gates / external-vulnerability-provider (pull_request) Skipped
frontend-quality-gates / external-provenance-provider (pull_request) Skipped
frontend-quality-gates / promote-verified-immutable-candidate (pull_request) Skipped
frontend-quality-gates / deploy-promoted-release (pull_request) Skipped
frontend-quality-gates / FE-GATE-019 / hosting-header (pull_request) Skipped
frontend-quality-gates / FE-GATE-021 / runbook-boot-config (pull_request) Skipped
frontend-quality-gates / FE-GATE-022 / runbook-chunk-mismatch (pull_request) Skipped
frontend-quality-gates / FE-GATE-023 / runbook-api-degradation (pull_request) Skipped
frontend-quality-gates / FE-GATE-024 / runbook-telemetry (pull_request) Skipped
frontend-quality-gates / FE-GATE-025 / runbook-release-rollback (pull_request) Skipped
frontend-quality-gates / FE-GATE-018 / field-web-vitals (pull_request) Skipped
frontend-quality-gates / merge / tests (pull_request) Failing after 14m56s
frontend-quality-gates / merge / browser tests (pull_request) Failing after 8m12s
frontend-quality-gates / FE-GATE-017 / diagram-review (pull_request) Skipped
frontend-quality-gates / main / checker self-tests (pull_request) Skipped
frontend-quality-gates / merge / static checks (pull_request) Successful in 2m52s
frontend-quality-gates / FE-GATE-014 / config-compatibility (pull_request) Skipped
frontend-quality-gates / FE-GATE-028 / manual-accessibility-review (pull_request) Skipped
frontend-quality-gates / FE-GATE-026 / lab-performance (pull_request) Skipped
frontend-quality-gates / FE-GATE-015 / immutable-release-candidate (pull_request) Skipped
frontend-quality-gates / external-vulnerability-provider (pull_request) Skipped
frontend-quality-gates / external-provenance-provider (pull_request) Skipped
frontend-quality-gates / promote-verified-immutable-candidate (pull_request) Skipped
frontend-quality-gates / deploy-promoted-release (pull_request) Skipped
frontend-quality-gates / FE-GATE-019 / hosting-header (pull_request) Skipped
frontend-quality-gates / FE-GATE-021 / runbook-boot-config (pull_request) Skipped
frontend-quality-gates / FE-GATE-022 / runbook-chunk-mismatch (pull_request) Skipped
frontend-quality-gates / FE-GATE-023 / runbook-api-degradation (pull_request) Skipped
frontend-quality-gates / FE-GATE-024 / runbook-telemetry (pull_request) Skipped
frontend-quality-gates / FE-GATE-025 / runbook-release-rollback (pull_request) Skipped
frontend-quality-gates / FE-GATE-018 / field-web-vitals (pull_request) Skipped
frontend-quality-gates / merge / tests (pull_request) Failing after 14m56s
frontend-quality-gates / merge / browser tests (pull_request) Failing after 8m12s
frontend-quality-gates / FE-GATE-017 / diagram-review (pull_request) Skipped
frontend-quality-gates / main / checker self-tests (pull_request) Skipped
오래된 탭 시험은 A 탭의 플랫폼 화면과 함께 preload된 청크도 preloadunused 허용에 넣는다. 그러나 strict fixture의 preload 검사는 끝에 열린 문서만 읽고, A 탭은 그때 reload로 B 문서가 된다. 그래서 A 목록은 A 문서에 쓰일 일이 없고, B 문서에 같은 이름으로 나타나는 정말 쓰이지 않은 preload를 가릴 수만 있다. 고른 방법: A 목록을 지우고 B context routes 모듈의 청크만 허용한다. 주석을 fixture 동작(끝에 열린 문서만)에 맞춘다. 위험·한계: B 빌드가 A와 같은 이름의 공유 청크를 preload하고 쓰지 않으면 이제 실패한다. 그것이 이 시험이 잡아야 할 것이다. 검증: 이 spec을 세 엔진에서 세 번씩 돌린다(desktop, PR 본문). RED 없음 — 허용을 좁히는 변경이라 지금 통과가 그대로여야 한다. Refs: 1112/03-06
This commit is contained in:
@@ -179,25 +179,21 @@ async function preloadedWith(dist: string, page: string): Promise<string[]> {
|
||||
}
|
||||
|
||||
// 1103/11-09. Vite preloads a chunk together with the chunks it imports, so a
|
||||
// missing chunk leaves itself and the chunks preloaded with it unused: in the
|
||||
// A tab those of A's platform page (the tab is still on A while recovery
|
||||
// reads the release manifest), in the B tab those of B's context routes
|
||||
// module for the feature's list page. The fixture's preload check reports them in every
|
||||
// engine (WebKit's own three-second warning only did when its timer ran
|
||||
// before the test ended). They are the provoked failure's own effect; only
|
||||
// those chunks are allowed.
|
||||
// missing chunk leaves itself and the chunks preloaded with it unused. The
|
||||
// fixture's preload check reads only the documents open at the end
|
||||
// (tests/support/browser/preload-use.ts), and the A tab has become a B
|
||||
// document by then, so only B's: those of B's context routes module for the
|
||||
// feature's list page. The check reports them in every engine (WebKit's own
|
||||
// three-second warning only did when its timer ran before the test ended).
|
||||
// They are the provoked failure's own effect; only those chunks are allowed
|
||||
// (1112/03-06: the A list here covered nothing but a B chunk of the same name).
|
||||
test.use({
|
||||
allowedBrowserFailure: async ({ browserName: _engine }, provide) => {
|
||||
if (!builds) throw new Error("Fixture builds were not prepared.");
|
||||
const aManifest = await viteManifest(builds.dist.a);
|
||||
const bManifest = await viteManifest(builds.dist.b);
|
||||
const files = [
|
||||
...(await preloadedWith(builds.dist.a, pageSource(aManifest, PLATFORM))),
|
||||
...(await preloadedWith(
|
||||
builds.dist.b,
|
||||
routesSource(bManifest, pageSource(bManifest, FEATURE())),
|
||||
)),
|
||||
].map((file) => file.replaceAll(".", String.raw`\.`));
|
||||
const files = (
|
||||
await preloadedWith(builds.dist.b, routesSource(bManifest, pageSource(bManifest, FEATURE())))
|
||||
).map((file) => file.replaceAll(".", String.raw`\.`));
|
||||
await provide(
|
||||
new RegExp(
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user