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-13969 Remove s3.push and s3.pull #8637

Merged
merged 9 commits into from
Jan 23, 2025

Conversation

ZackarySantana
Copy link
Contributor

@ZackarySantana ZackarySantana commented Jan 15, 2025

DEVPROD-13969

Description

This removes the s3.push and s3.pull commands.

Testing

Existing unit tests.

Spruce PR

#574 has to be merged first.

@ZackarySantana ZackarySantana requested a review from a team January 16, 2025 21:00
@ZackarySantana ZackarySantana marked this pull request as ready for review January 16, 2025 21:00
Copy link
Contributor

@ablack12 ablack12 left a comment

Choose a reason for hiding this comment

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

Great cleanup! Did we re-verify with all-configs or splunk that there isn't usage of these commands anymore?

@@ -70,9 +70,6 @@ type attachResults struct {
func attachResultsFactory() Command { return &attachResults{} }
func (c *attachResults) Name() string { return evergreen.AttachResultsCommandName }

// ParseParams decodes the S3 push command parameters that are
Copy link
Contributor

Choose a reason for hiding this comment

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

could we keep this comment and just reword for attach results?

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 was cleaning up the comments since only these commands document this function. I'm okay with documenting it but do you want me to add it to all the other commands?

Copy link
Contributor

Choose a reason for hiding this comment

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

nah either works, i feel like comments are always helpful so removing them doesn't seem necessary, but you don't need to go do a ton of work here; if you'd rather just keep it removed that's fine too

@@ -100,7 +100,6 @@ type s3Loc struct {
func s3CopyFactory() Command { return &s3copy{} }
func (c *s3copy) Name() string { return "s3Copy.copy" }

// ParseParams decodes the S3 push command parameters
Copy link
Contributor

Choose a reason for hiding this comment

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

same, keep but s3 copy

@@ -35,10 +35,6 @@
"admins": ["annie.black"],
Copy link
Contributor

Choose a reason for hiding this comment

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

didn't know i was in the codebase this much LOL

units/patch_intent.go Show resolved Hide resolved
rest/route/task.go Show resolved Hide resolved
var longErrorValidators = []longValidator{
validateTaskSyncCommands,
}
var longErrorValidators = []longValidator{}
Copy link
Contributor

Choose a reason for hiding this comment

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

We can just get rid of this and the --long flag, since there's nothing in here! (Can do in another PR but might be good to do as a quick-win in the nearterm just to keep things clean)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I wasn't sure if we regularly cycle validators in here. I'll remove it in this PR!

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've removed the long flag from validate command as well. The latest commit has the changes for the long flag/validator

@ZackarySantana ZackarySantana changed the title DEVPROD-13969 Remove s3.push and s3.pull [skip-ci] DEVPROD-13969 Remove s3.push and s3.pull Jan 17, 2025
@@ -1659,7 +1659,7 @@ func (h *createGitHubDynamicAccessToken) Run(ctx context.Context) gimlet.Respond
})
}

// DELETE /rest/v2/task/{task_id}/github_dynamic_access_tokens
// DELETE /rest/v2/task/{task_id}/github_dynamic_access_token
Copy link
Contributor

Choose a reason for hiding this comment

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

whoa good niche find

@ZackarySantana ZackarySantana enabled auto-merge (squash) January 22, 2025 15:53
@ZackarySantana ZackarySantana merged commit 8d83306 into evergreen-ci:main Jan 23, 2025
8 of 10 checks passed
@ZackarySantana ZackarySantana deleted the DEVPROD-13969 branch January 23, 2025 15:29
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