Skip to content

Nonzero Exit Code for performance-setup Failures#59483

Merged
billwert merged 6 commits intomainfrom
performance-setup-error-check
Oct 5, 2021
Merged

Nonzero Exit Code for performance-setup Failures#59483
billwert merged 6 commits intomainfrom
performance-setup-error-check

Conversation

@Tohron
Copy link
Copy Markdown
Contributor

@Tohron Tohron commented Sep 22, 2021

Created to address dotnet/performance#2010
This PR aims to cause performance-setup.ps1 and performance-setup.sh to return a nonzero exit code whenever a command in the script fails.

@ghost
Copy link
Copy Markdown

ghost commented Sep 22, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

Comment thread eng/testing/performance/performance-setup.ps1
Comment thread eng/testing/performance/performance-setup.ps1
@Tohron Tohron added the tenet-performance Performance related issue label Sep 22, 2021
@Tohron Tohron self-assigned this Sep 22, 2021
@Tohron Tohron requested a review from billwert September 22, 2021 17:54
@Tohron Tohron marked this pull request as draft September 22, 2021 17:55
Comment thread eng/testing/performance/performance-setup.ps1 Outdated
Comment thread eng/testing/performance/performance-setup.sh
@DrewScoggins
Copy link
Copy Markdown
Member

@Tohron Since we have so much repeated code in these scripts from the error checking, I think that it would be useful to write a function that takes in the command we want to check, and then does the error level checking. This would greatly simplify the code, and make adding new checks much easier.

@Tohron Tohron requested a review from billwert September 30, 2021 20:16
Comment thread eng/testing/performance/performance-setup.sh Outdated
Comment thread eng/testing/performance/performance-setup.ps1
@Tohron Tohron marked this pull request as ready for review September 30, 2021 22:04
@billwert billwert merged commit 191c60e into main Oct 5, 2021
@akoeplinger akoeplinger deleted the performance-setup-error-check branch October 7, 2021 18:37
@ghost ghost locked as resolved and limited conversation to collaborators Nov 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tenet-performance Performance related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants