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

Refactoring go version and many fixes for e2e tests #530

Merged
merged 8 commits into from
Mar 1, 2022

Conversation

lucasreed
Copy link
Contributor

@lucasreed lucasreed commented Feb 28, 2022

Checklist

  • I have signed the CLA
  • I have updated/added any relevant documentation

Description

What's the goal of this PR?

To fix most e2e tests for the go rewrite by adding the git repository
management feature and fixing some bugs that were uncovered by these
tests.

Also removed all python testing from the circleci config and temporarily
commented out the release workflow until we are ready to release the go
version.

What changes did you make?

What alternative solution should we consider, if any?

.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
pkg/course/course.go Outdated Show resolved Hide resolved
pkg/course/course.go Show resolved Hide resolved
pkg/course/course.go Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
Co-authored-by: Andrew Suderman <andrew@sudermanjr.com>
Copy link
Contributor Author

@lucasreed lucasreed left a comment

Choose a reason for hiding this comment

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

Things found when reviewing with Andy

cmd/root.go Show resolved Hide resolved
pkg/course/course.go Outdated Show resolved Hide resolved
pkg/course/course.go Outdated Show resolved Hide resolved
pkg/course/course.go Outdated Show resolved Hide resolved
pkg/reckoner/plot.go Outdated Show resolved Hide resolved

"github.com/fairwindsops/reckoner/pkg/course"
"github.com/fatih/color"
"github.com/thoas/go-funk"
)

// Plot actually plots the releases
func (c Client) Plot() error {
func (c *Client) Plot() error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Confirm why this was changed.

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 changed this because c.Continue() uses a pointer to a client object. It doesn't seem to be a syntax error if we change it back to a non-pointer but I'm not really sure the repercussions.

Copy link
Member

Choose a reason for hiding this comment

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

Technically, it only needs to be a pointer if you're going to modify it inside the function. I've seen a general convention to just make a it a pointer though, so it's probably fine?

pkg/reckoner/update.go Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Mar 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@lucasreed lucasreed merged commit 8bda28d into master Mar 1, 2022
@lucasreed lucasreed deleted the test_and_git_fixes branch March 1, 2022 20:13
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.

None yet

2 participants