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

feat(BUX-420): go version and workflows update and config fix for k8s #390

Merged
merged 9 commits into from
Jan 4, 2024

Conversation

kuba-4chain
Copy link
Contributor

Pull Request Checklist

  • πŸ“– I created my PR using provided : CODE_STANDARDS
  • πŸ“– I have read the short Code of Conduct: CODE_OF_CONDUCT
  • 🏠 I tested my changes locally.
  • βœ… I have provided tests for my changes.
  • πŸ“ I have used conventional commits.
  • πŸ“— I have updated any related documentation.
  • πŸ’Ύ PR was issued based on the Github or Jira issue.

@kuba-4chain kuba-4chain requested a review from a team as a code owner January 3, 2024 15:07
Copy link
Contributor

mergify bot commented Jan 3, 2024

Welcome to our open-source project @kuba-4chain! πŸ’˜

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (e240dff) 39.16% compared to head (daec619) 39.36%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #390      +/-   ##
==========================================
+ Coverage   39.16%   39.36%   +0.19%     
==========================================
  Files          44       44              
  Lines        1560     1570      +10     
==========================================
+ Hits          611      618       +7     
- Misses        917      918       +1     
- Partials       32       34       +2     
Flag Coverage Ξ”
unittests 39.36% <66.66%> (+0.19%) ⬆️

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

Files Coverage Ξ”
config/config.go 100.00% <ΓΈ> (ΓΈ)
config/defaults.go 100.00% <100.00%> (ΓΈ)
config/validate_server.go 70.00% <100.00%> (+5.29%) ⬆️
server/server.go 6.17% <0.00%> (ΓΈ)
config/load.go 67.69% <57.14%> (-1.28%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update e240dff...daec619. Read the comment docs.

Copy link
Contributor

@dorzepowski dorzepowski left a comment

Choose a reason for hiding this comment

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

I can live with that, but I just want to mention that it isn't best practice to mix bumping go version and changes in config in one PR.

config/config.go Show resolved Hide resolved
Comment on lines +44 to +49
cfg, err := json.MarshalIndent(appConfig, "", " ")
if err != nil {
logger.Error().Msg("Unable to decode App Config to json")
} else {
fmt.Printf("loaded config: %s", cfg)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

  1. as we have a struct with config, why don't you just use Printf("loaded config: %v", appConfig)?
  2. Why you're doing fmt.Printf instead of using a logger?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  1. Because it will print it in one-liner.
  2. Because it will print it in one-liner πŸ˜„

Doing it this way, we print it as a formatted json which makes it MUCH easier to look at quickly and seeing if everything is okay. This is also shown only when when debug flag is selected. That's why I decided to make an exception here and use the standard fmt.Printf function.

config/validate_server.go Outdated Show resolved Hide resolved
@kuba-4chain kuba-4chain force-pushed the bux-420-go-version-update branch from 812a35e to daec619 Compare January 4, 2024 13:20
@kuba-4chain kuba-4chain merged commit 20cc392 into master Jan 4, 2024
10 checks passed
@kuba-4chain kuba-4chain deleted the bux-420-go-version-update branch January 4, 2024 13:39
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.

3 participants