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(e2e): compatibility e2e test fixes #5761

Merged
merged 12 commits into from
Jan 29, 2024

Conversation

crodriguezvega
Copy link
Contributor

Description

closes: #XXXX

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 the 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.

],
"chain-b": [
"main",
"v8.1.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will not work until the tag is created, but I added it already anyway, since I am not planning to run this workflow before the release.

@@ -0,0 +1,18 @@
{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added new files for compatibility testing of unordered ICA channels.

@@ -30,6 +30,6 @@ jobs:
- name: Build image
run: |
# remove any `/` characters from the docker tag and replace them with a -
docker_tag="$(echo $GIT_TAG | sed 's/[^a-zA-Z0-9]/-/g')"
docker_tag="$(echo $GIT_TAG | sed 's/[^a-zA-Z0-9\.]/-/g')"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added the . as an allowed character in docker image tags.

@crodriguezvega
Copy link
Contributor Author

Compatibility tests green for release/v8.1.x. I will run them as well for the other release branches.

@crodriguezvega crodriguezvega marked this pull request as ready for review January 29, 2024 08:49
@crodriguezvega crodriguezvega added e2e priority PRs that need prompt reviews labels Jan 29, 2024
@damiannolan
Copy link
Member

damiannolan commented Jan 29, 2024

I'm currently looking at moving the conditionals for unknown fields to sanitize.Messages

ref: https://github.com/cosmos/ibc-go/blob/main/e2e/testsuite/sanitize/messages.go#L34

edit: Took one and ran through it locally, seems to work 👍🏻 I'll push a commit soon ™️

@damiannolan
Copy link
Member

Changes included in c949d5b. I think it significantly reduced the diff. I ran locally using the regular ORDERED test and UNORDERED test against main tags.

@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (310a4bd) 81.49% compared to head (307c149) 81.54%.
Report is 12 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5761      +/-   ##
==========================================
+ Coverage   81.49%   81.54%   +0.05%     
==========================================
  Files         199      199              
  Lines       15203    15225      +22     
==========================================
+ Hits        12389    12415      +26     
+ Misses       2348     2344       -4     
  Partials      466      466              
Files Coverage Δ
modules/apps/transfer/keeper/relay.go 90.94% <100.00%> (ø)
modules/core/04-channel/keeper/keeper.go 90.90% <100.00%> (+0.13%) ⬆️
modules/core/04-channel/keeper/upgrade.go 92.58% <100.00%> (+0.27%) ⬆️
modules/core/04-channel/types/channel.go 100.00% <ø> (+6.15%) ⬆️
modules/core/04-channel/types/codec.go 100.00% <ø> (ø)

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

Let me know if the changes look good to you @crodriguezvega! I'll drop my approval on this PR, happy to get it merged.

@crodriguezvega
Copy link
Contributor Author

Thank you so much for the improvements, @damiannolan! Changes look great, I triggered a compatibility test run here. I am happy to merge if they all get 🟢.

Copy link
Contributor

@DimitrisJim DimitrisJim left a comment

Choose a reason for hiding this comment

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

looks good, great savings on the slick filtering before broadcasting @damiannolan!

@damiannolan
Copy link
Member

damiannolan commented Jan 29, 2024

Thank you so much for the improvements, @damiannolan! Changes look great, I triggered a compatibility test run here. I am happy to merge if they all get 🟢.

I see some failures in gov/groups tests, due to the nested messaging. I think we can sanitize before putting into the proposals also. I can look into pushing a fix later if nobody gets around it.

edit: nevermind, nice one @crodriguezvega, lets see if that does the trick :)

@crodriguezvega
Copy link
Contributor Author

crodriguezvega commented Jan 29, 2024

ICA tests with gov and groups failed, but I added sanitation of the messages contained in the proposal now, so I will trigger another run.

@crodriguezvega
Copy link
Contributor Author

Test run was green, will merge as soon as I have a chance with updating the branch all the time!!

@crodriguezvega crodriguezvega merged commit 22a1727 into main Jan 29, 2024
64 checks passed
@crodriguezvega crodriguezvega deleted the carlos/compatibility-e2e-fixes branch January 29, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e priority PRs that need prompt reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants