Open Bug 2006817 Opened 1 day ago

[wpt-sync] Sync PR 56843 - feat(automation): Add workflow to vendor and update Test262 tests

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 56843 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/56843
Details from upstream follow.

wpt-pr-bot <wpt-pr-bot@users.noreply.github.com> wrote:

feat(automation): Add workflow to vendor and update Test262 tests

This commit introduces a GitHub Actions workflow to automate the vendoring of the Test262 test suite into third_party/test262. This automation is the final piece of the integration, ensuring that the tests can be kept up-to-date with the upstream tc39/test262 repository.

The workflow is configured to run weekly or can be triggered manually. It performs the following steps:

  1. Checks out both the WPT and tc39/test262 repositories.
  2. Selectively copies a subset of the Test262 tests into WPT.
  3. Copies the essential Test262 harness files.
  4. Creates a vendored.toml file at the root of the vendored directory, recording the specific commit SHA from tc39/test262 that the files were sourced from. This ensures traceability, as described in the RFC.
  5. Commits the updated files and opens a pull request with the changes.

Initially, only a subset of Test262 tests related to Interop 2026 features (Temporal and top-level-await) are being imported. This is a temporary measure to manage the volume of new test results and to avoid overloading wpt.fyi, which currently has limitations in processing the full Test262 result set (see wpt-fyi/issues/4681). The workflow can be expanded to include more tests in the future.

This work directly supports the integration of Test262 into WPT as detailed in the RFC: https://github.com/web-platform-tests/rfcs/pull/229

This commit is part of a series of smaller PRs split from the larger, original implementation in https://github.com/web-platform-tests/wpt/pull/55997.

You need to log in before you can comment on or make changes to this bug.