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

Migrate to go 1.17 #53

Open
3 tasks
vadasambar opened this issue Aug 17, 2022 · 13 comments
Open
3 tasks

Migrate to go 1.17 #53

vadasambar opened this issue Aug 17, 2022 · 13 comments
Labels
good first issue Good for newcomers upgrade

Comments

@vadasambar
Copy link
Collaborator

vadasambar commented Aug 17, 2022

datadog-service uses go 1.16 in (e.g., in go.mod)

We should update to a newer version of go i.e., go 1.17 . This is so that we can keep up with the latest stable go version (1.19 at the time of writing this issue)

Definition of Done

  • Migrate datadog-service code and integration tests to go 1.17
  • Make sure tests run fine on your local machine (check this comment for how to run the tests)
  • Create a new issue to migrate to go 1.18
@vadasambar vadasambar added bug Something isn't working upgrade good first issue Good for newcomers and removed bug Something isn't working labels Aug 17, 2022
@Mihai22125
Copy link

Hello @vadasambar, Can I help with this?

@vadasambar
Copy link
Collaborator Author

@Mihai22125 I'd love that. Thanks!

  1. README has more info around setting up the service. You can use the kup.sh script to set up your local cluster with Keptn and Datadog. I think the script might have small bugs. If you find one, just create a Github issue for that.
  2. We recently added tests which you can run on a cluster which has Keptn + Datadog installed. I am working on putting it on our CI/CD pipeline so that it runs on every PR but right now you will have to run the tests manually on your local machine. Here's how you do that:

Running tests on your local machine (takes around ~10m)

# port-forward Keptn api so that our tests can create/delete Keptn resources
kubectl port-forward svc/api-gateway-nginx 5000:80 -nkeptn # in a separate terminal window
# from datadog-service repo
export ENABLE_E2E_TEST=true
export KEPTN_ENDPOINT=http://localhost:5000/api
export KEPTN_API_TOKEN=$(kubectl get secret keptn-api-token -n keptn -ojsonpath='{.data.keptn-api-token}' | base64 -d)

# run tests
gotestsum --format standard-verbose -- -timeout=120m  ./test/e2e/...

@vadasambar
Copy link
Collaborator Author

If you face any issues or have any questions you can comment in this issue or reach me out on Keptn slack at @vadasambar.

@vadasambar
Copy link
Collaborator Author

@vadasambar
Copy link
Collaborator Author

@Mihai22125 are you working on this?

@vadasambar
Copy link
Collaborator Author

This issue is up for grabs.

@shivam-Purohit
Copy link

Can I take on this?

@vadasambar
Copy link
Collaborator Author

Sure. Thank you for showing interest @shivam-Purohit ❤️

@vadasambar
Copy link
Collaborator Author

vadasambar commented Nov 3, 2022

The way to proceed with this issue:

  1. Set up keptn with datadog-service on your local machine. Check quickstart for more info.
  2. Make sure you can run the integration tests locally (check this comment on how to run tests)
  3. Change the go version in all the go.mod files to go 1.17 and run the integration tests again
  4. Make sure the integration tests pass

@shivam-Purohit
Copy link

Screenshot (100)

GO I presume is already updated to 1.17 . Do you need to upgrade it to 1.18 or 1.19

@vadasambar
Copy link
Collaborator Author

Eventually yes. 1.17 -> 1.18 -> 1.19 feels safer than going directly to 1.18 or 1.19.

@shivam-Purohit
Copy link

So do we need to wait or just work on it right now?

@vadasambar
Copy link
Collaborator Author

just work on it right now?

We can start migrating to 1.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers upgrade
Projects
None yet
Development

No branches or pull requests

3 participants