gaia icon indicating copy to clipboard operation
gaia copied to clipboard

Linters prevent updates to older gaias

Open faddat opened this issue 2 years ago • 6 comments

Summary of Bug

  • https://github.com/cosmos/gaia/runs/6164055056?check_suite_focus=true

Version

all

Steps to Reproduce

Update older versions of gaia, or in the case of the codecov issue, do anything at all

https://github.com/cosmos/gaia/runs/6164055056?check_suite_focus=true#step:8:30

Suggested solutions

  • Stop using the diff ci action
  • consider replacing codecov with a more portable solution that does not rely on an api key
  • backport this to all gaias

https://github.com/cosmos/gaia/pull/1448

note

due to the fact that there seems an issue with the cosmos codecov api key generally or with the whole service, any PR's that have cone in recently will need their ci jobs re-run

this has hit tm-db as well:

https://github.com/tendermint/tm-db/runs/6163210118?check_suite_focus=true

2nd note:

it hurts more than the linters https://github.com/faddat/gaia/blob/84de16ef50b0dad6ec164b99610a80bf16d9ec01/.github/workflows/sims.yml#L125

ci jobs are free, why are we trying to conserve them?


For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned
  • [ ] Is a spike necessary to map out how the issue should be approached?

faddat avatar Apr 25 '22 19:04 faddat

Like this:

https://github.com/cosmos/gaia/runs/6615907131?check_suite_focus=true#step:4:75

faddat avatar May 26 '22 20:05 faddat

yep. this one, dated a month ago, detailed the issues with all the pr's

faddat avatar May 27 '22 02:05 faddat

Hey @faddat do have suggestions for alternative codecov tooling?

mmulji-ic avatar Jul 25 '22 15:07 mmulji-ic

Just had a call with @okwme -- so, we found that the linter was missing this line:

#1623 #1624

However, the main branch contains linting issues. They're not being caught because of the diff.

They are grandfathered-in. We saw this with:

  • https://github.com/cosmos/cosmos-sdk/pull/12702
  • https://github.com/cosmos/cosmos-sdk/pull/12141
  • https://github.com/cosmos/ibc-go/pull/1418

faddat avatar Aug 01 '22 09:08 faddat

Linting errors should all be fixed at this point in main. Since we removed checkdiff linters will be run all the time as well. still needs to be backported to v7.0.x (can go into current work on v7.0.3) and v6.0.x according to #1549

okwme avatar Aug 01 '22 15:08 okwme

hey @faddat i'm having trouble narrowing down what changes need to be backported for #1669 it's the last thing to close this issue, can you help with a backport PR with just the relevant changes?

okwme avatar Sep 19 '22 15:09 okwme

Update:

  • [ ] understand issue with using the diff CI action
  • [x] replace codecov with Sonarcloud (i.e., config Sonarcloud)

mpoke avatar Mar 06 '23 15:03 mpoke

Closing as codecov was updated to Sonarcloud. If the problem persists, we'll reopen.

mpoke avatar Sep 14 '23 12:09 mpoke