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

Exclude browser stability tests for exports from that specific browser #31898

Conversation

DanielRyanSmith
Copy link
Contributor

@DanielRyanSmith DanielRyanSmith commented Dec 5, 2021

Fixes #29737

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.")
Copy link
Contributor

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.

Copy link
Contributor Author

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👌

@@ -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:
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea - implemented

@@ -100,6 +102,19 @@ def get_extra_jobs(event):
return jobs


def filter_jobs(jobs: Set, event: Dict) -> None:
Copy link
Contributor Author

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.

@DanielRyanSmith DanielRyanSmith marked this pull request as ready for review December 6, 2021 17:42
@wpt-pr-bot wpt-pr-bot requested a review from foolip December 6, 2021 17:42
Copy link
Member

@foolip foolip left a 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!

@foolip foolip changed the title #29737 Stop running wpt-chrome-dev-stability for automated exports Exclude browser stability tests for exports from that specific browser Dec 7, 2021
@foolip
Copy link
Member

foolip commented Dec 7, 2021

I've renamed the PR since this now does both Chrome and Firefox.

@foolip foolip merged commit d3d35b3 into web-platform-tests:master Dec 7, 2021
@DanielRyanSmith DanielRyanSmith deleted the 29737-stop-stability-tests-on-exports branch December 7, 2021 17:19
@DanielRyanSmith DanielRyanSmith restored the 29737-stop-stability-tests-on-exports branch December 7, 2021 20:18
foolip pushed a commit that referenced this pull request Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop running wpt-chrome-dev-stability for Chromium exports
4 participants