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

DEVPROD-13189: connect Evergreen test selection route to test selection service #8710

Merged

Conversation

Kimchelly
Copy link
Contributor

@Kimchelly Kimchelly commented Feb 12, 2025

DEVPROD-13189

Description

The test selection service is up and running now, so Evergreen can now proxy the request and send it to the test selection service.

  • Add evergreen-ci/test-selection-client to dependencies. Since it's an internal repo, had to add some extra configuration so that go modules can download it.
  • Add logic to test selection proxy route handler to use the actual test selection service.

Testing

Tested in staging that making a request to /rest/v2/select/tests successfully sent the request to the test selection service.

Documentation

Will update internal dev guide to mention that you have to set GOPRIVATE if you don't use the makefile.

@Kimchelly Kimchelly requested review from a team, rongodb and namazgurbanovmdb February 12, 2025 21:52
@@ -23,21 +25,21 @@ type selectTestsHandler struct {
// this information directly to the test selector.
type SelectTestsRequest struct {
// Project is the project identifier.
Project string `json:"project" bson:"project"`
Project string `json:"project"`
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can unexport the request struct

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 believe swaggo needs response type to be exported so that it can generate the REST API docs. This struct is for both the request and response.

@Kimchelly Kimchelly merged commit f6af7b9 into evergreen-ci:main Feb 18, 2025
6 of 9 checks passed
@Kimchelly Kimchelly deleted the DEVPROD-13189_connect_tss_route branch February 18, 2025 19:34
Kimchelly added a commit that referenced this pull request Feb 18, 2025
@Kimchelly Kimchelly restored the DEVPROD-13189_connect_tss_route branch February 18, 2025 20:46
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.

2 participants