Skip to content

Conversation

@moskyb
Copy link
Contributor

@moskyb moskyb commented Dec 8, 2025

Description

In #3607, we partially fixed an issue where artifacts uploaded to a customer-managed artifacts bucket would be prefixed with an extra /, leading to the artifacts not being downloadable.

However, in that PR, there was a case that we missed. This PR adds code to cover the missed case, as well as adding an end-to-end test to verify that the behaviour is working as intended, preventing the issue from recurring.

Context

PS-1470
The original PR
Some infra PRs to create the infra the E2E tests need:

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 .)

Disclosures / Credits

As with the original PR, i used Amp as a tool to investigate the original issue, as well as several testing issues i encountered along the way. In some cases it was useful, and in others it led me on wild goose chases.

@moskyb moskyb force-pushed the more-custom-artifact-bucket-fixes branch 15 times, most recently from 6e08c36 to dabe156 Compare December 9, 2025 04:56
Copy link
Contributor

@zhming0 zhming0 left a comment

Choose a reason for hiding this comment

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

I see this PR is in draft. But looks good, left some comments

@moskyb moskyb force-pushed the more-custom-artifact-bucket-fixes branch from dabe156 to 6b9acb0 Compare December 10, 2025 00:57
@moskyb moskyb force-pushed the more-custom-artifact-bucket-fixes branch from 6b9acb0 to a1cc922 Compare December 10, 2025 00:59
@moskyb moskyb marked this pull request as ready for review December 10, 2025 03:16
Comment on lines 10 to 12
&& rm -rf awscliv2.zip aws \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
Copy link
Contributor

Choose a reason for hiding this comment

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

These cleanups don't seem like much of a win, because the image is only used once...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm, good point!

Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

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

LGTM

@moskyb moskyb force-pushed the more-custom-artifact-bucket-fixes branch from a1cc922 to a40297e Compare December 10, 2025 04:51
@moskyb moskyb merged commit bb41037 into main Dec 10, 2025
2 checks passed
@moskyb moskyb deleted the more-custom-artifact-bucket-fixes branch December 10, 2025 05:13
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.

4 participants