Skip to content

fix: cleanup azcopy jobs after job complete#2394

Merged
andyzhangx merged 1 commit intomasterfrom
clean-azcopy-jobs
Feb 27, 2025
Merged

fix: cleanup azcopy jobs after job complete#2394
andyzhangx merged 1 commit intomasterfrom
clean-azcopy-jobs

Conversation

@andyzhangx
Copy link
Copy Markdown
Member

What type of PR is this?
/kind bug

What this PR does / why we need it:
fix: cleanup azcopy jobs after job complete
this could reduce .azopy/plans folder files

Which issue(s) this PR fixes:

Fixes #2387

Requirements:

Special notes for your reviewer:

Release note:

fix: cleanup azcopy jobs after job complete

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 20, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andyzhangx

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 20, 2025
@andyzhangx
Copy link
Copy Markdown
Member Author

/retest

pkg/util/util.go Outdated
func (ac *Azcopy) TestListJobs(accountName, storageEndpointSuffix string, authAzcopyEnv []string) (string, error) {
cmdStr := fmt.Sprintf("azcopy list %s", fmt.Sprintf("https://%s.file.%s", accountName, storageEndpointSuffix))
func (ac *Azcopy) CleanJobs() (string, error) {
cmdStr := "azcopy jobs clean --with-status=completed"
Copy link
Copy Markdown

@mayankagg9722 mayankagg9722 Feb 21, 2025

Choose a reason for hiding this comment

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

Andy, do we need some kind of eventual cleanups of other completion/failed/cancelled azcopy jobs as well so that over time these were not accumulated?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

then I think we just use the default value(All), for other status, we should clean them all.

@andyzhangx
Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@andyzhangx
Copy link
Copy Markdown
Member Author

/retest

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@andyzhangx: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-azurefile-csi-driver-e2e-migration-windows 0a59245 link true /test pull-azurefile-csi-driver-e2e-migration-windows

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@andyzhangx andyzhangx merged commit 7b7c4cd into master Feb 27, 2025
27 of 29 checks passed
@andyzhangx
Copy link
Copy Markdown
Member Author

/cherrypick release-1.31

@andyzhangx
Copy link
Copy Markdown
Member Author

/cherrypick release-1.30

@k8s-infra-cherrypick-robot
Copy link
Copy Markdown

@andyzhangx: new pull request created: #2396

Details

In response to this:

/cherrypick release-1.31

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-infra-cherrypick-robot
Copy link
Copy Markdown

@andyzhangx: new pull request created: #2397

Details

In response to this:

/cherrypick release-1.30

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove plan and log files when azcopy jobs are complete

4 participants