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

Make simapp its own gomod [Don't review] #4117

Closed
wants to merge 11 commits into from

Conversation

chatton
Copy link
Contributor

@chatton chatton commented Jul 18, 2023

Description

closes: #3968

A few things that need to be done

  • Move the simapp directory to the root. In doing this, I ran into the following issue.
go: downloading github.com/cosmos/ibc-go/v7/testing/simapp v1.0.0
github.com/cosmos/ibc-go/simapp imports
        github.com/cosmos/ibc-go/modules/capability tested by
        github.com/cosmos/ibc-go/modules/capability.test imports
        github.com/cosmos/ibc-go/v7/testing/simapp: reading github.com/cosmos/ibc-go/v7/testing/simapp/go.mod at revision v7/testing/simapp/v1.0.0: unknown revision v7/testing/simapp/v1.0.0

I believe this is because the capability module that is being used in the simapp module is still referencing ibc-go. Once the sdk 0.50 upgrade is done, this will no longer be the case, (thanks @damiannolan !) After that, this problem should go away.

  • decouple ibc-go go.mod from simapp go.mod. Currently there is a local pin to simapp to maintain existing functionality (there is not a current tag that exists to import cleanly from, I think this can be handled post sdk-50 )

  • Clean up Dockerfile, I didn't investigate yet, but it looks like additional files need to be added to the docker context now to build the image correctly.

  • Remove dependency on simapp module from ibc-go, this largely comes in the form of simapp.Setup(...) in a lot of our tests.

  • Usage of suite.chainA.GetSimApp() throughout all our tests. We have an assumption in all of our tests that we are using a SimApp instance directly. Can we potentially operate on an interface?

Commit Message / Changelog Entry

type: commit message

see the guidelines for commit messages. (view raw markdown for examples)


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.

  • Targeted PR against correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

@chatton chatton changed the title Make simapp its own gomod [Don'] Make simapp its own gomod [Don't review] Jul 18, 2023
Dockerfile Outdated
#ADD testing testing
#ADD modules modules
#ADD LICENSE LICENSE
ADD . .
Copy link
Contributor

Choose a reason for hiding this comment

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

this might turn out to be slightly annoying, there's no simd binary now

Copy link
Contributor

Choose a reason for hiding this comment

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

can look into it, probs makefile tweaks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

doesn't make build below create the binary?

Copy link
Contributor

Choose a reason for hiding this comment

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

this should be finding the main.go in cmd, not the one in testing. Building locally, this builds the binary for that main (build_test_matrix) byt not the one for simapp/simd.

@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2023

Codecov Report

Merging #4117 (33af765) into main (00a680c) will decrease coverage by 0.02%.
The diff coverage is 60.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4117      +/-   ##
==========================================
- Coverage   79.48%   79.47%   -0.02%     
==========================================
  Files         188      188              
  Lines       13033    13035       +2     
==========================================
  Hits        10359    10359              
- Misses       2243     2245       +2     
  Partials      431      431              
Files Changed Coverage Δ
modules/core/02-client/keeper/keeper.go 82.88% <0.00%> (-0.64%) ⬇️
modules/core/02-client/simulation/decoder.go 100.00% <ø> (ø)
modules/core/module.go 44.30% <100.00%> (ø)
modules/core/simulation/decoder.go 100.00% <100.00%> (ø)

@chatton
Copy link
Contributor Author

chatton commented Sep 12, 2023

closings this PR, it can be used as a reference for the linked issue.

@chatton chatton closed this Sep 12, 2023
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.

Move simapp binary into own go.mod or e2e
3 participants