Closed Bug 1861635 Opened 2 years ago Closed 2 years ago

`./mach wpt-serve` is broken: 'TestRoot' object is not subscriptable

Categories

(Testing :: web-platform-tests, defect)

defect

Tracking

(firefox-esr115 unaffected, firefox119 unaffected, firefox120 unaffected, firefox121 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox119 --- unaffected
firefox120 --- unaffected
firefox121 --- fixed

People

(Reporter: saschanaz, Assigned: Sasha)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Reverting bug 1857918 fixes it.

> ./mach wpt-serve     
Config is up to date, not regenerating
Error running mach:

    mach wpt-serve

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
You can invoke ``./mach busted`` to check if this issue is already on file. If it
isn't, please use ``./mach busted file wpt-serve`` to report it. If ``./mach busted`` is
misbehaving, you can also inspect the dependencies of bug 1543241.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

TypeError: 'TestRoot' object is not subscriptable

  File "C:\Users\sasch\Documents\GitHub\gecko-dev\testing\web-platform\mach_commands.py", line 618, in wpt_serve
    return wpt_serve.run(**params)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sasch\Documents\GitHub\gecko-dev\testing\web-platform\mach_commands.py", line 284, in run
    return 0 if serve.run(route_builder=get_route_builder, **kwargs) else 1
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sasch\Documents\GitHub\gecko-dev\testing\web-platform\tests\tools\serve\serve.py", line 1196, in run
    routes = route_builder(logger, config.aliases, config).get_routes()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\sasch\Documents\GitHub\gecko-dev\testing\web-platform\mach_commands.py", line 280, in get_route_builder
    route_builder.add_mount_point(url_base, paths["tests_path"])
                                            ~~~~~^^^^^^^^^^^^^^

Sentry event ID: 729049abf3e749f3825ad36137e68c20
Assignee: nobody → aborovova
Status: NEW → ASSIGNED

Set release status flags based on info from the regressing bug 1857918

Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/eecc536c719e Fix `TestRoot object is not subscriptable` error in `./mach wpt-serve`, r=jgraham
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: