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

ci: Improve CI linting #791

Merged
merged 19 commits into from
Mar 3, 2024

Conversation

shubham-cmyk
Copy link
Member

@shubham-cmyk shubham-cmyk commented Mar 2, 2024

Description

Fixes #790

Type of change

Improve the CI practice in the Operator

Checklist

  • Tests have been added/modified and all tests pass.
  • Functionality/bugs have been confirmed to be unchanged or fixed.
  • I have performed a self-review of my own code.
  • Documentation has been updated or added where necessary.

Copy link

codecov bot commented Mar 2, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 12 lines in your changes are missing coverage. Please review.

Project coverage is 32.76%. Comparing base (4e66ea2) to head (c010d5f).

Files Patch % Lines
k8sutils/poddisruption.go 0.00% 6 Missing ⚠️
k8sutils/statefulset.go 25.00% 3 Missing ⚠️
k8sutils/cluster-scaling.go 0.00% 2 Missing ⚠️
k8sutils/redis.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #791      +/-   ##
==========================================
+ Coverage   32.69%   32.76%   +0.06%     
==========================================
  Files          19       19              
  Lines        3233     3220      -13     
==========================================
- Hits         1057     1055       -2     
+ Misses       2116     2106      -10     
+ Partials       60       59       -1     

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

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Shubham Gupta <[email protected]>
@shubham-cmyk shubham-cmyk enabled auto-merge (squash) March 3, 2024 13:01
@shubham-cmyk shubham-cmyk disabled auto-merge March 3, 2024 13:05
@shubham-cmyk shubham-cmyk merged commit 649ebd4 into OT-CONTAINER-KIT:master Mar 3, 2024
31 of 32 checks passed
@shubham-cmyk shubham-cmyk deleted the golang-ci-lint branch March 3, 2024 13:06
wkd-woo pushed a commit to wkd-woo/redis-operator that referenced this pull request Mar 4, 2024
* ci: enable more linters

Signed-off-by: Shubham Gupta <[email protected]>

* ci: diable few checks for temporary

Signed-off-by: Shubham Gupta <[email protected]>

* ci: read permission to ci

Signed-off-by: Shubham Gupta <[email protected]>

* ci: try removing cache

Signed-off-by: Shubham Gupta <[email protected]>

* ci: diable ifelse linter for temp

Signed-off-by: Shubham Gupta <[email protected]>

* syle: run gofumpt

Signed-off-by: Shubham Gupta <[email protected]>

* sytle: run gci

Signed-off-by: Shubham Gupta <[email protected]>

* ci: prevent misspell

Signed-off-by: Shubham Gupta <[email protected]>

* ci: run go import

Signed-off-by: Shubham Gupta <[email protected]>

* style: fix style errors

Signed-off-by: Shubham Gupta <[email protected]>

* style: fix trailing lines

Signed-off-by: Shubham Gupta <[email protected]>

* remove unwanted conversion

Signed-off-by: Shubham Gupta <[email protected]>

* remove gci from generated file

Signed-off-by: Shubham Gupta <[email protected]>

* style: remove init check

Signed-off-by: Shubham Gupta <[email protected]>

* fix: type conversion

Signed-off-by: Shubham Gupta <[email protected]>

* fix: remove context

Signed-off-by: Shubham Gupta <[email protected]>

* ci: update configuration file

Signed-off-by: Shubham Gupta <[email protected]>

* ci: skip generated files

Signed-off-by: Shubham Gupta <[email protected]>

* ci: remove disabled lintesr

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: wkd-woo <[email protected]>
wkd-woo pushed a commit to wkd-woo/redis-operator that referenced this pull request Mar 4, 2024
* ci: enable more linters

Signed-off-by: Shubham Gupta <[email protected]>

* ci: diable few checks for temporary

Signed-off-by: Shubham Gupta <[email protected]>

* ci: read permission to ci

Signed-off-by: Shubham Gupta <[email protected]>

* ci: try removing cache

Signed-off-by: Shubham Gupta <[email protected]>

* ci: diable ifelse linter for temp

Signed-off-by: Shubham Gupta <[email protected]>

* syle: run gofumpt

Signed-off-by: Shubham Gupta <[email protected]>

* sytle: run gci

Signed-off-by: Shubham Gupta <[email protected]>

* ci: prevent misspell

Signed-off-by: Shubham Gupta <[email protected]>

* ci: run go import

Signed-off-by: Shubham Gupta <[email protected]>

* style: fix style errors

Signed-off-by: Shubham Gupta <[email protected]>

* style: fix trailing lines

Signed-off-by: Shubham Gupta <[email protected]>

* remove unwanted conversion

Signed-off-by: Shubham Gupta <[email protected]>

* remove gci from generated file

Signed-off-by: Shubham Gupta <[email protected]>

* style: remove init check

Signed-off-by: Shubham Gupta <[email protected]>

* fix: type conversion

Signed-off-by: Shubham Gupta <[email protected]>

* fix: remove context

Signed-off-by: Shubham Gupta <[email protected]>

* ci: update configuration file

Signed-off-by: Shubham Gupta <[email protected]>

* ci: skip generated files

Signed-off-by: Shubham Gupta <[email protected]>

* ci: remove disabled lintesr

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: wkd-woo <[email protected]>
mattrobinsonsre pushed a commit to mattrobinsonsre/redis-operator that referenced this pull request Jul 11, 2024
* ci: enable more linters

Signed-off-by: Shubham Gupta <[email protected]>

* ci: diable few checks for temporary

Signed-off-by: Shubham Gupta <[email protected]>

* ci: read permission to ci

Signed-off-by: Shubham Gupta <[email protected]>

* ci: try removing cache

Signed-off-by: Shubham Gupta <[email protected]>

* ci: diable ifelse linter for temp

Signed-off-by: Shubham Gupta <[email protected]>

* syle: run gofumpt

Signed-off-by: Shubham Gupta <[email protected]>

* sytle: run gci

Signed-off-by: Shubham Gupta <[email protected]>

* ci: prevent misspell

Signed-off-by: Shubham Gupta <[email protected]>

* ci: run go import

Signed-off-by: Shubham Gupta <[email protected]>

* style: fix style errors

Signed-off-by: Shubham Gupta <[email protected]>

* style: fix trailing lines

Signed-off-by: Shubham Gupta <[email protected]>

* remove unwanted conversion

Signed-off-by: Shubham Gupta <[email protected]>

* remove gci from generated file

Signed-off-by: Shubham Gupta <[email protected]>

* style: remove init check

Signed-off-by: Shubham Gupta <[email protected]>

* fix: type conversion

Signed-off-by: Shubham Gupta <[email protected]>

* fix: remove context

Signed-off-by: Shubham Gupta <[email protected]>

* ci: update configuration file

Signed-off-by: Shubham Gupta <[email protected]>

* ci: skip generated files

Signed-off-by: Shubham Gupta <[email protected]>

* ci: remove disabled lintesr

Signed-off-by: Shubham Gupta <[email protected]>

---------

Signed-off-by: Shubham Gupta <[email protected]>
Signed-off-by: Matt Robinson <[email protected]>
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.

[CI] - Harden golang ci linting.
1 participant