moztest.resolve doesn't handle wpt tests with a query string containign a `/`
Categories
(Testing :: web-platform-tests, defect, P1)
Tracking
(firefox128 fixed)
Tracking | Status | |
---|---|---|
firefox128 | --- | fixed |
People
(Reporter: jgraham, Assigned: jgraham)
References
Details
Attachments
(1 file)
If you have a test with an id like /foo/bar/baz?foobar=sp/am" then
moztestis putting that in a group like
foo/bar/baz?foobar=sprather than
foo/bar/bazbecause we're trying to parse test ids as os pathnames rather than URLs. This later breaks the metadata update which is trying to convert the group name into a filesystem path for the
dir.ini` file.
Assignee | ||
Comment 1•9 months ago
|
||
wpt test ids are URLs, and can have query components. This means that
using os.path.dirname
isn't a correct way to extract different parts
of the URL
In particular a test id like /foo/bar/baz?foobar=sp/am
can lead to an
invalid group name like foo/bar/baz?foobar=sp
, which breaks the
invariant that we can turn the group name into a filesystem path that
may contain a dir.ini file with metadata for that group.
The fix here is to correctly treat the test id as a URL using the same
logic as in wptrunner.
Updated•9 months ago
|
Comment 3•9 months ago
|
||
bugherder |
Description
•