Skip to content

fix: remove archiveInfo.ArchivePath after upload#4086

Merged
ss1909 merged 1 commit into
mainfrom
sneha/A-1489
Jul 15, 2026
Merged

fix: remove archiveInfo.ArchivePath after upload#4086
ss1909 merged 1 commit into
mainfrom
sneha/A-1489

Conversation

@ss1909

@ss1909 ss1909 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Description

fixes the bug found during testing where the cache save path did not delete the temporary archive after upload, leaking a temp .zip per save until the OS cleans TMPDIR.

Context

https://linear.app/buildkite/issue/A-1489/clean-up-temp-archive-after-cache-save-upload

Changes

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go tool gofumpt -extra -w .)

Affiliation (optional, external contributors)

Disclosures / Credits

@ss1909 ss1909 requested review from a team as code owners July 15, 2026 01:41
@ss1909 ss1909 added the bug label Jul 15, 2026
@ss1909 ss1909 enabled auto-merge July 15, 2026 01:42

@buildsworth-bk-app buildsworth-bk-app Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I found one cleanup path that still leaks the temp archive when the save fails before the upload succeeds.

Want to dig deeper?

The full session log is attached to this Buildkite build. Download the session file and open a new pi session with it:

Download the buildsworth logs from build 5098, then answer my questions about the findings.

Comment thread internal/cache/save.go Outdated
@buildsworth-bk-app buildsworth-bk-app Bot dismissed their stale review July 15, 2026 01:52

Previous concerns have been addressed.

@ss1909 ss1909 merged commit 964b9a3 into main Jul 15, 2026
4 checks passed
@ss1909 ss1909 deleted the sneha/A-1489 branch July 15, 2026 03:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants