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

Guard, and fix single sha perf:library tests #153

Merged
merged 4 commits into from Oct 5, 2019

Conversation

schneems
Copy link
Member

@schneems schneems commented Oct 5, 2019

When using perf:library there was a bug that would result in the same sha being tested twice for instance if you ran:

$ SHAS_TO_TEST='schneems/keymaster-more-compat-correct' bundle exec derailed exec perf:library

Then it would incorrectly default to the same SHA. This PR fixes that behavior, it also detects this failure mode and raises an error if it happens somehow (perhaps the user accidentally puts it in twice somehow).

In addition there's a nice litte testing output that advertises which sha and description you're testing before you execute the tests:

Testing 1: fe60c15579: Preserve existing interfaces for smaller diff
Testing 2: 430579e40b: 1.8x Faster Partial Caching - Faster Cache Keys

Should really clean up all these random SHA detection and shelling out scripts into a cleaner class. 

Would love to route stderr somewhere else like a log file and only show if things fail. Also would love to figure a way to make these git & shelling out commands faster.
@schneems schneems merged commit b4cf3e8 into master Oct 5, 2019
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