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

tests: speed up retry conformance tests #655

Merged
merged 6 commits into from
Dec 10, 2021

Conversation

cojenco
Copy link
Contributor

@cojenco cojenco commented Nov 19, 2021

  • Speed up retry conf tests to run in parallel with pytest plugin
  • Update readme file

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Nov 19, 2021
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Nov 19, 2021
@cojenco cojenco added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2021
@cojenco cojenco added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Nov 19, 2021
@yoshi-kokoro yoshi-kokoro removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Nov 19, 2021
@cojenco cojenco marked this pull request as ready for review November 19, 2021 22:05
@cojenco cojenco requested review from a team as code owners November 19, 2021 22:05
noxfile.py Outdated
session.run("py.test", "--quiet", conformance_test_path, *session.posargs)
session.run(
"py.test", "-n", "auto", "--quiet", conformance_test_path, *session.posargs
)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it might be a better DX to inject the "-n", "auto" into the command line only if session.posargs is empty: that way, the user could chose to e.g. restrict the number of cores available, or even distribute the tests across multiple hosts.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@tseaver good idea! I've updated the noxfile. PTAL, thanks!

@cojenco cojenco merged commit ee41b3f into googleapis:main Dec 10, 2021
@cojenco cojenco deleted the tune-conftest branch November 16, 2023 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants