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

Perform benchmark discovery only when running benchmarks #568

Merged
merged 1 commit into from
Jan 20, 2018

Conversation

pv
Copy link
Collaborator

@pv pv commented Oct 29, 2017

Discover benchmarks only when the project is going to be built and the
commit hashes to be checked are known, so the benchmark discovery can be
performed using those commits. This also adjusts the Benchmarks API so
that the discovery is explicit.

Previously, benchmark discovery was done installing a version of the
project at the tip of the branch or from an existing wheel. This leads
to problems when the build fails or the project is not in an importable
state.

This also changes "asv publish" to emit an error message rather than
running benchmark discovery, if benchmarks.json is damaged or missing.
That is an unusual error condition, so it is reasonable to handle it as
such (the error message explains how to resolve it).

@pv pv force-pushed the discover-failsafe branch 5 times, most recently from 513ebce to f0d4b7c Compare October 29, 2017 16:10
Discover benchmarks only when the project is going to be built and the
commit hashes to be checked are known, so the benchmark discovery can be
performed using those commits.  This also adjusts the Benchmarks API so
that the discovery is explicit.

Previously, benchmark discovery was done installing a version of the
project at the tip of the branch or from an existing wheel. This leads
to problems when the build fails or the project is not in an importable
state.

This also changes "asv publish" to emit an error message rather than
running benchmark discovery, if benchmarks.json is damaged or missing.
That is an unusual error condition, so it is reasonable to handle it as
such (the error message explains how to resolve it).
@pv pv merged commit 6012995 into airspeed-velocity:master Jan 20, 2018
@pv
Copy link
Collaborator Author

pv commented Jan 20, 2018

I think this has been dogfooded for long enough now.

@pv pv deleted the discover-failsafe branch August 19, 2018 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant