Skip to content

wpt: turn service worker on for more WPT test suites #45331

Open

Description

@gterzian

Service worker is only turned on for the Streams suite for now, but additional suites with stable results can be identified, and sw turned on for those. Note: this means tests running in the service worker scopes will not error anymore.

How to proceed:

  1. Turn sw one for the suite for which you would like to try this out, like was done here for Streams
  2. Run locally and look for unexpected passes.
  3. Run it multiple times, ensure that the passes are stable
  4. Update test expectations and open a PR.

Docs on testing commands: https://book.servo.org/contributing/testing.html

One suite per PR please.

Good potential targets are suites with lots of any.js files (and little coordination between components), like:

  • tests/wpt/tests/compression
  • /tests/wpt/tests/url
  • /tests/wpt/tests/dom/abort

Activity

  1. added
    C-untriaged
    E-less-complex
    good first issue
    and removed
    C-untriaged
    on Jun 3, 2026
  2. servo-highfive commented on Jun 3, 2026

    @servo-highfive

    Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in Zulip.

    If you intend to work on this issue, then add @servo-highfive: assign me to your comment, and I'll assign this to you. 😄

    Please read our policy on AI contributions before getting started.

  3. changed the title [-]Turn service worker on for more WPT test suites[/-] [+]wpt: turn service worker on for more WPT test suites[/+] on Jun 3, 2026
  4. added
    B-meta
    on Jun 3, 2026
  5. TimvdLippe commented on Jun 9, 2026

    @TimvdLippe
    Contributor

    @mrobinson raised concerns in #45509 (review)

  6. removed
    E-less-complex
    on Jun 9, 2026
  7. jdm commented on Jun 9, 2026

    @jdm
    Member

    Removing the label until the concerns are resolved.

  8. gterzian commented on Jun 9, 2026

    @gterzian
    MemberAuthor

    As I mentioned in zulip, I think those crashes relate not to service worker, but to shared worker, (and the problem was first noted in another zulip thread dedicated to shared worker).

    There are actually some service test crashing as well, see here, but I believe the crash actually comes from the shared worker scope test that must have been run right before it. This might also be the problem in the other worker tests that are crashing, and which do not related to service worker.

    The reason I believe the above is because the crash is This runtime still has live children., which can only happen in the script-thread, and service worker is unrelated to the script-thread (the problem is that we added shared worker as a kind of dedicated workers in the script-thread as a result of this discussion, but didn't take shutdown into account).

    Service worker has already been turned on for the Streams suite, so if that was the problem we'd see intermittent crashes for that suite as well; have we seen any?

  9. TimvdLippe commented on Jun 9, 2026

    @TimvdLippe
    Contributor

    I am not aware of intermittency in that test suite. Therefore, I would be comfortable with rolling out this flag further to the other test suites. The PR in question only affects one test anyways, so seems low impact to me.

  10. gterzian commented on Jun 9, 2026

    @gterzian
    MemberAuthor
    Image

    If this graph works like I think it does, then it shows there is zero intermittency in Streams; this was the case before the service worker features was turned on, and remained so afterwards (the jump is when it was turned on).

  11. gterzian commented on Jun 9, 2026

    @gterzian
    MemberAuthor

    The fix for shared worker, which is unrelated to this issue, is discussed at #45088 (review).

  12. Muhamad-Sobhi commented on Jul 5, 2026

    @Muhamad-Sobhi

    @servo-highfive: assign me
    I'd like to try turning on service worker for tests/wpt/tests/url

  13. added
    C-assigned
    on Jul 5, 2026
  14. servo-highfive commented on Jul 5, 2026

    @servo-highfive

    Hey @Muhamad-Sobhi! Thanks for your interest in working on this issue. It's now assigned to you!

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

Metadata

Metadata

Assignees

Labels

A-testingB-metaC-assignedgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions