-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Exclude browser stability tests for exports from that specific browser #31898
Exclude browser stability tests for exports from that specific browser #31898
Conversation
tools/ci/tc/decision.py
Outdated
all_jobs.discard("wpt-firefox-nightly-stability") | ||
except KeyError: | ||
# Just continue if the username cannot be pulled from the event. | ||
logger.info("Unable to read username from event. Continuing.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not even sure we need to log this, but if we are maybe make it debug level.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it to a debug level log👌
tools/ci/tc/decision.py
Outdated
@@ -74,6 +74,17 @@ def get_run_jobs(event): | |||
path_jobs = jobs.get_jobs(paths) | |||
all_jobs = path_jobs | get_extra_jobs(event) | |||
logger.info("Including jobs:\n * %s" % "\n * ".join(all_jobs)) | |||
|
|||
# Exclude browser stability tests for exports from that specific browser. | |||
try: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we put this in a filter_jobs
function, and call it before the Including jobs
log line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea - implemented
tools/ci/tc/decision.py
Outdated
@@ -100,6 +102,19 @@ def get_extra_jobs(event): | |||
return jobs | |||
|
|||
|
|||
def filter_jobs(jobs: Set, event: Dict) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Flake8 is upset about this line not using typing.Set and typing.Dict, but these are deprecated as of Python 3.9. I'm just going to remove the type hints.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, thanks @DanielRyanSmith!
I've renamed the PR since this now does both Chrome and Firefox. |
Fixes #29737