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

test(gnoclient): Fix a potential bug in the integration test #2558

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

linhpn99
Copy link
Contributor

@linhpn99 linhpn99 commented Jul 9, 2024

Screenshot from 2024-07-09 21-48-59

I'm not sure about the root cause, but it seems like the test node isn't ready to handle the request call, so it returns an error. Using the result immediately without asserting that there's no error will cause this section to panic, leading to a CI that fails randomly

You can see https://github.com/gnolang/gno/actions/runs/9855164413/job/27209502761?pr=2518

Contributors' checklist...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@github-actions github-actions bot added the 📦 ⛰️ gno.land Issues or PRs gno.land package related label Jul 9, 2024
Copy link

codecov bot commented Jul 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.88%. Comparing base (f980fd6) to head (29ae0e1).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2558      +/-   ##
==========================================
- Coverage   54.96%   54.88%   -0.08%     
==========================================
  Files         595      595              
  Lines       79568    79356     -212     
==========================================
- Hits        43734    43557     -177     
+ Misses      32527    32506      -21     
+ Partials     3307     3293      -14     
Flag Coverage Δ
contribs/gnodev 26.00% <ø> (ø)
contribs/gnofaucet 15.31% <ø> (+0.85%) ⬆️
contribs/gnokeykc 0.00% <ø> (ø)
contribs/gnomd 0.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@thehowl thehowl left a comment

Choose a reason for hiding this comment

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

Using assert will fail the test, but still eventually panic, as asserts don't stop the execution of the test; require does.

gno.land/pkg/gnoclient/integration_test.go Outdated Show resolved Hide resolved
gno.land/pkg/gnoclient/integration_test.go Outdated Show resolved Hide resolved
gno.land/pkg/gnoclient/integration_test.go Outdated Show resolved Hide resolved
gno.land/pkg/gnoclient/integration_test.go Outdated Show resolved Hide resolved
@thehowl thehowl changed the title fix(gnoclient): Fix a potential bug in the integration test test(gnoclient): Fix a potential bug in the integration test Jul 9, 2024
@thehowl thehowl merged commit 6432573 into gnolang:master Jul 9, 2024
80 checks passed
@linhpn99 linhpn99 deleted the potential-gnoclient-bug branch July 10, 2024 12:28
gfanton pushed a commit to gfanton/gno that referenced this pull request Jul 23, 2024
…#2558)

![Screenshot from 2024-07-09
21-48-59](https://github.com/gnolang/gno/assets/167175638/a4429fb7-c277-4296-86fb-f55dfaa924ca)

I'm not sure about the root cause, but it seems like the test node isn't
ready to handle the request call, so it returns an error. Using the
result immediately without asserting that there's no error will cause
this section to panic, leading to a CI that fails randomly

You can see
https://github.com/gnolang/gno/actions/runs/9855164413/job/27209502761?pr=2518

<!-- please provide a detailed description of the changes made in this
pull request. -->

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>

---------

Co-authored-by: Morgan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 ⛰️ gno.land Issues or PRs gno.land package related
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants