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

fix: authz exec and coverage directory location #1173

Merged
merged 5 commits into from
Jul 15, 2024

Conversation

fmorency
Copy link
Contributor

@fmorency fmorency commented Jul 5, 2024

This PR

  • Passes environment variable context when creating the AuthZ JSON file containing the nested message to be executed
  • Fixes the coverage directory to match HomeDir()

Relates #1130 #1158

@Reecepbcups

fmorency added 2 commits July 5, 2024 11:30
The node `HomeDir()` is `/var/cosmos-chain/[CHAIN_NAME]` and not
`/var/cosmos-chain/[CHAIN_ID]`
@fmorency fmorency requested a review from a team as a code owner July 5, 2024 15:35
@fmorency fmorency requested a review from joelsmith-2019 July 5, 2024 15:35
Copy link

vercel bot commented Jul 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
interchaintest-docs ⬜️ Ignored (Inspect) Visit Preview Jul 15, 2024 1:30pm

Copy link
Member

@Reecepbcups Reecepbcups left a comment

Choose a reason for hiding this comment

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

LGTM

@fmorency
Copy link
Contributor Author

fmorency commented Jul 8, 2024

The failing test in the previous run is unrelated to this PR. It also fails on the v8.5.0 tag.

@Reecepbcups Reecepbcups enabled auto-merge (squash) July 14, 2024 07:34
Copy link
Member

@Reecepbcups Reecepbcups left a comment

Choose a reason for hiding this comment

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

Failing e2e test is related:

    code_coverage_test.go:87: 
        	Error Trace:	/home/runner/work/interchaintest/interchaintest/examples/cosmos/code_coverage_test.go:87
        	            				/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1175
        	            				/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1353
        	            				/home/runner/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1683
        	Error:      	Should NOT be empty, but was []
        	Test:       	TestCodeCoverage

Code coverage is not finding coverage files in the home dir. It was originally pulling /var/cosmos-chain/manifest-2 which is where it is actually stored (not name), but due to that being the core repo it is possible the output never actually happened for the cov files
image

auto-merge was automatically disabled July 15, 2024 13:30

Head branch was pushed to by a user without write access

@@ -52,7 +52,7 @@ func TestCodeCoverage(t *testing.T) {
{
Name: "manifest",
Version: cfgA.Images[0].Version,
ChainName: cfgA.ChainID,
Copy link
Member

Choose a reason for hiding this comment

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

ahhhh

@Reecepbcups Reecepbcups enabled auto-merge (squash) July 15, 2024 16:02
@Reecepbcups Reecepbcups merged commit cbcd20f into strangelove-ventures:main Jul 15, 2024
16 checks passed
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.

2 participants