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-11928 remove legacy task planner #8745

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ablack12
Copy link
Contributor

@ablack12 ablack12 commented Feb 25, 2025

DEVPROD-11928

Description

Remove the legacy task planner. Similarly to how we removed legacy dispatcher versions, not fully removing the list structure or anything, since we could presumably add new versions one day.

All distros in prod are explicitly using tunable. Before merging, will update distros in staging.

evergreen-ci/ui#654

Testing

Ensured existing tests pass.

Documentation

Updated docs.

@@ -214,8 +214,6 @@ func (r *plannerSettingsResolver) Version(ctx context.Context, obj *model.APIPla
}

switch utility.FromStringPtr(obj.Version) {
case evergreen.PlannerVersionLegacy:
Copy link
Contributor

@SupaJoon SupaJoon Feb 26, 2025

Choose a reason for hiding this comment

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

The E2E tests are failing because the default case is triggered after removing this case statement. This can probably be fixed by adjusting the testdata and verified locally by running Spruce and Cypress.

Copy link
Contributor

@Kimchelly Kimchelly left a comment

Choose a reason for hiding this comment

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

LGTM mod nits.

@@ -1,8 +1,7 @@
package model

type CompareTasksRequest struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can delete this file since the compare tasks route is removed.

@@ -729,6 +732,7 @@ func (s *DistroPatchByIDSuite) TestRunProviderSettingsList() {
resp := s.rm.Run(ctx)
s.NotNil(resp.Data())
s.Equal(http.StatusOK, resp.Status())
fmt.Println(resp.Data())
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove stray print

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