Context
PR #14571 failed the full unit CI job after the v13.1 release archive moved active pull-request content out of the Latest group. The failure reproduces on the current branch and the same committed index shape exists on origin/dev: apps/portal/resources/data/pulls/index.json has zero Latest/*active-chunk-* children.
Problem
test/playwright/unit/ai/buildScripts/docs/index/PortalContentIndexes.spec.mjs currently asserts chunkNumbers.length > 1 for the committed pull-request index. That was a useful ordering guard while the repo had multiple unreleased PR chunks, but it becomes false immediately after a release archive leaves no active PR chunks. The test is now asserting release timing, not the generator contract.
Fix
Adjust the committed-index assertion so it verifies descending chunk-number order when active chunks are present without requiring the repository to always have multiple unreleased active chunks. Keep the synthetic generator tests that create multiple chunks as the strong ordering proof.
Acceptance Criteria
Evidence
gh pr checks 14571 showed unit failing while Fleet-focused local checks had passed.
- CI failure:
PortalContentIndexes.spec.mjs:183 expected active chunk count > 1, received 0.
- Local reproduction of the exact spec produced the same single failure.
origin/dev:apps/portal/resources/data/pulls/index.json also has zero Latest children, so this is not introduced by #14562.
Related
#14571 · #14562
Live duplicate sweep: gh search issues "PortalContentIndexes", "pull-request index active chunk", and "committed pull-request index keeps active chunk folders" returned no open matching issue before creation.
Origin Session ID: 019f2a7a-94c2-7de1-901a-966c21a5d604
Retrieval Hint: "PortalContentIndexes committed pull-request index Latest active chunk post-release v13.1"
Context
PR #14571 failed the full
unitCI job after the v13.1 release archive moved active pull-request content out of theLatestgroup. The failure reproduces on the current branch and the same committed index shape exists onorigin/dev:apps/portal/resources/data/pulls/index.jsonhas zeroLatest/*active-chunk-*children.Problem
test/playwright/unit/ai/buildScripts/docs/index/PortalContentIndexes.spec.mjscurrently assertschunkNumbers.length > 1for the committed pull-request index. That was a useful ordering guard while the repo had multiple unreleased PR chunks, but it becomes false immediately after a release archive leaves no active PR chunks. The test is now asserting release timing, not the generator contract.Fix
Adjust the committed-index assertion so it verifies descending chunk-number order when active chunks are present without requiring the repository to always have multiple unreleased active chunks. Keep the synthetic generator tests that create multiple chunks as the strong ordering proof.
Acceptance Criteria
Latestgroup has zero or one active chunk.npm run test-unit -- test/playwright/unit/ai/buildScripts/docs/index/PortalContentIndexes.spec.mjspasses.Evidence
gh pr checks 14571showedunitfailing while Fleet-focused local checks had passed.PortalContentIndexes.spec.mjs:183expected active chunk count> 1, received0.origin/dev:apps/portal/resources/data/pulls/index.jsonalso has zeroLatestchildren, so this is not introduced by #14562.Related
#14571 · #14562
Live duplicate sweep:
gh search issues "PortalContentIndexes","pull-request index active chunk", and"committed pull-request index keeps active chunk folders"returned no open matching issue before creation. Origin Session ID: 019f2a7a-94c2-7de1-901a-966c21a5d604 Retrieval Hint: "PortalContentIndexes committed pull-request index Latest active chunk post-release v13.1"