CI: cross-OS Test262 suite cache + action/tool version bumps#2687
Merged
Conversation
lahma
enabled auto-merge (squash)
July 14, 2026 08:19
lahma
force-pushed
the
ci/test262-cache-and-actions
branch
from
July 14, 2026 08:24
6aced9c to
e4e45c3
Compare
…sions Keeps the existing single-job-per-OS workflow structure; no sharding. - Cache: mark the generated-suite cache cross-OS. The suite is pure codegen and identical on every platform, but today only the Build workflow (Linux) seeds the cache, so the PR workflow's Windows/macOS/ARM jobs never hit it and regenerate the whole ~99.5k-case suite on every run. enableCrossOsArchive lets them restore the Linux-seeded cache. - .gitattributes: force the settings file to LF. The cache key hashes it, so a CRLF Windows checkout would change the key (and the MSBuild regen gate) and defeat the cross-OS restore. - Bump test262harness.console 1.0.6 -> 1.1.0, actions/checkout v6 -> v7, actions/cache v5 -> v6. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
lahma
force-pushed
the
ci/test262-cache-and-actions
branch
from
July 14, 2026 08:35
e4e45c3 to
f7023e7
Compare
This was referenced Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A focused, structure-preserving subset of #2661 — no sharding, so the workflow keeps one job per OS (the
linux/linux - ARM/windows/macoschecks are unchanged and still report).Caching fix
The generated Test262 suite is pure codegen and byte-identical on every platform, but the cache is effectively OS-scoped and only the Build workflow (Linux) ever seeds it. So the PR workflow's Windows / macOS / ARM jobs never get a cache hit and regenerate the whole ~99.5k-case suite on every run.
Marking the cache
enableCrossOsArchive: true(on both the Build seed and the PR restore) lets every OS restore the one Linux-seeded cache. The cache key and cache action version are otherwise unchanged.The
.gitattributeschange is required for this: the cache key hashesTest262Harness.settings.json, which currently checks out CRLF on Windows (* text=auto), so without pinning it to LF the Windows key wouldn't match the Linux-seeded entry (and the MSBuild regeneration gate would also differ) — defeating the cross-OS restore.Version bumps
test262harness.console1.0.6 → 1.1.0actions/checkoutv6 → v7actions/cachev5 → v6🤖 Generated with Claude Code