Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make WPT return full relative paths and adjust is_bad_group check #161

Closed
marco-c opened this issue Apr 20, 2020 · 7 comments · Fixed by #182
Closed

Make WPT return full relative paths and adjust is_bad_group check #161

marco-c opened this issue Apr 20, 2020 · 7 comments · Fixed by #182
Assignees
Labels
enhancement New feature or request

Comments

@marco-c
Copy link
Collaborator

marco-c commented Apr 20, 2020

Currently, with 61720eb, we have a special case for WPT tasks (

mozci/mozci/task.py

Lines 50 to 55 in 11777df

# web-platform-tests manifests are currently absolute.
if not any(
sublabel not in task_label
for sublabel in {"web-platform-tests", "test-verify-wpt"}
):
bad_group |= os.path.isabs(group)
).

We should check if the harness could return full relative paths, so we have the same behavior as the other suites.

@marco-c marco-c added the enhancement New feature or request label Apr 20, 2020
@marco-c marco-c added this to Backlog in Smart Scheduling via automation Apr 20, 2020
@marco-c marco-c moved this from Backlog to Next up in Smart Scheduling Apr 20, 2020
@marco-c
Copy link
Collaborator Author

marco-c commented Apr 22, 2020

@ahal did you figure this out?

@ahal
Copy link
Member

ahal commented Apr 23, 2020

No, haven't had time. Is there a translation in mozci already? If not, can we add one? Or is fixing this in WPT on the critical path?

@marco-c
Copy link
Collaborator Author

marco-c commented Apr 23, 2020

No, haven't had time. Is there a translation in mozci already? If not, can we add one? Or is fixing this in WPT on the critical path?

No there's nothing yet in mozci, I don't know if we can add one: I'm not sure if those paths are always relative to testing/web-platform/tests/. If they are, then yeah, we could add a translation in mozci in the meantime.

@ahal
Copy link
Member

ahal commented Apr 23, 2020 via email

@worldomonation
Copy link
Contributor

Note I've filed https://bugzilla.mozilla.org/show_bug.cgi?id=1632546 for this.

Please feel free to correct my statements if they are not accurate.

@marco-c
Copy link
Collaborator Author

marco-c commented Apr 23, 2020

I thought I could use a workaround in bugbug and just check if the path existed in testing/web-platform/mozilla/tests or testing/web-platform/tests, but @worldomonation told me some paths could be in both directories, so we have no way to apply this workaround.
Also, in mozci we'd have the same group name for two sets of tests which are actually different, with the clear consequences.

@marco-c marco-c self-assigned this Apr 29, 2020
@marco-c
Copy link
Collaborator Author

marco-c commented Apr 29, 2020

@ahal noticed that groups from testing/web-platform/mozilla/tests start with /_mozilla/, so we can use the presence of that prefix to detect to which directory the group belongs to.

@marco-c marco-c moved this from Next up to In progress in Smart Scheduling Apr 29, 2020
Smart Scheduling automation moved this from In progress to Done May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

3 participants