-
Notifications
You must be signed in to change notification settings - Fork 637
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
Fix error in Code Coverage workflow #2282
Fix error in Code Coverage workflow #2282
Conversation
@@ -103,7 +103,7 @@ jobs: | |||
if: env.GIT_DIFF | |||
- name: test & coverage report creation | |||
run: | | |||
cat pkgs.txt.part.${{ matrix.part }} | xargs go test $(go list ./... | grep -v e2e) -race -mod=readonly -timeout 30m -coverprofile=${{ matrix.part }}profile.out -covermode=atomic -tags='ledger test_ledger_mock' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was not reading the split input from the file, but was actually building a full list of all tests to run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, @chatton! I guess this also fixes this issue?
@crodriguezvega yes it looks like a duplicate issue, I've closed the original and updated the closes in the description! Thanks for pointing it out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🙏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent catch! You are the man!
(cherry picked from commit 57e518c)
(cherry picked from commit 57e518c)
(cherry picked from commit 57e518c) Co-authored-by: Cian Hatton <[email protected]>
(cherry picked from commit 57e518c) Co-authored-by: Cian Hatton <[email protected]> Co-authored-by: Carlos Rodriguez <[email protected]> Co-authored-by: Damian Nolan <[email protected]>
Description
When the e2e tests were introduced, the e2e tests were excluded from the unit tests in an incorrect fashion, which resulted in each task running all tests as opposed to splitting up the tests into 4 sections.
The workflow will be skipped on this PR as no go files are changed. See the this workflow which ran with the changes to see the run times.
closes: #2167
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes