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

CI: Don't run tests during benchmark #5491

Merged
merged 1 commit into from Jun 22, 2023

Conversation

jasonpaulos
Copy link
Member

@jasonpaulos jasonpaulos commented Jun 22, 2023

Summary

I noticed that our benchmark job also runs all unit tests in the logic package.

Not only is this unnecessary, it also causes the benchmark job to fail if there are unrelated test failures in that package, which I found confusing during development. See here for an example: https://github.com/algorand/go-algorand/actions/runs/5340633710/jobs/9680667023

The solution is pretty simple, we just need to filter out all tests, which I've done by adding the -run=^$ flag.

Test Plan

n/a

Copy link
Contributor

@algochoi algochoi left a comment

Choose a reason for hiding this comment

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

nice thanks!

@codecov
Copy link

codecov bot commented Jun 22, 2023

Codecov Report

Merging #5491 (2ff0d26) into master (227df93) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5491      +/-   ##
==========================================
- Coverage   55.70%   55.68%   -0.03%     
==========================================
  Files         446      446              
  Lines       63291    63291              
==========================================
- Hits        35259    35244      -15     
- Misses      25662    25674      +12     
- Partials     2370     2373       +3     

see 15 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@algojohnlee algojohnlee merged commit 21525f6 into algorand:master Jun 22, 2023
19 checks passed
@jasonpaulos jasonpaulos deleted the no-tests-during-benchmark branch June 22, 2023 20:33
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.

None yet

4 participants