-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: .github/workflows retrofit to use Go modules #10382
Conversation
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.
LGTM
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.
lgtm
- name: Create a file with all the pkgs | ||
run: go list ./... > pkgs.txt | ||
run: find . -name "go.mod" | grep -v cosmovisor | while read F;do cd $(dirname $F);go list ./...;cd $OLDPWD;done >> pkgs.txt |
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.
how this is different to the originating PR? https://github.com/cosmos/cosmos-sdk/pull/10325/files#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88R76
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.
Thanks for digging into it.
However we need to think a bit more. This doesn't solve the problems discussed in the original PR. As an evidence - look at the failing tests.
@@ -115,7 +119,7 @@ jobs: | |||
if: env.GIT_DIFF | |||
- name: test & coverage report creation | |||
run: | | |||
cat pkgs.txt.part.${{ matrix.part }} | xargs go test -mod=readonly -timeout 30m -coverprofile=${{ matrix.part }}profile.out -covermode=atomic -tags='norace ledger test_ledger_mock' | |||
cat pkgs.txt.part.${{ matrix.part }} && cat pkgs.txt.part.${{ matrix.part }} | while read pkg;do go test -timeout 30m -coverprofile=${{ matrix.part }}profile.out -covermode=atomic -tags='norace ledger test_ledger_mock' $pkg;done |
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 doesn't work for the same reason noted in #10325 (comment).
https://github.com/cosmos/cosmos-sdk/pull/10325/files#r729729294 I was thinking to do more traversal approach. I will dig more in my PR.
Could you check my comment: #10325 (comment) |
Fixes #10319