Skip to content

Conversation

@zachary-bailey
Copy link
Contributor

What type of PR is this?

/kind feat

What this PR does / why we need it:

This PR adds logic to dynamically determine the proper storage account to initially upload blobs to, in addition to some general cleanup to prevent code duplication.

Which issue(s) this PR fixes:

Failing pipelines when prefetch optimization is not enabled.

Requirements:

  • uses conventional commit messages
  • includes documentation
  • adds unit tests
  • tested upgrade from previous version
  • commits are GPG signed and Github marks them as verified

capture_benchmark "${SCRIPT_NAME}_create_sig_image_version"

if [ "${ENVIRONMENT,,}" = "tme" ] || [ "${GENERATE_PUBLISHING_INFO,,}" = "false" ]; then
if [ "${ENVIRONMENT,,}" = "tme" ] && [ "${GENERATE_PUBLISHING_INFO,,}" = "false" ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

so this is to ensure that we always remove the blob from staging assuming we aren't publishing AND we're in TME?
I'm just wondering why we're changing the OR to an AND here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because if it was OR, then just by being in TME we would erase the blob, which doesn't work for us since its now copied in a later pipeline step. So copying the blob to immutable storage would always fail

Copy link
Contributor Author

@zachary-bailey zachary-bailey Jan 12, 2026

Choose a reason for hiding this comment

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

but if were in TME AND GENERATE_PUBLISHING _INFO is false, then we know we can safely delete, because that later pipeline step will never run

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but come to think of it, this should probably only evaluate the value of GENERATE_PUBLISHING_INFO now

Copy link
Contributor

Choose a reason for hiding this comment

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

agreed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@zachary-bailey zachary-bailey merged commit 45f709e into main Jan 14, 2026
64 of 66 checks passed
@zachary-bailey zachary-bailey deleted the zb/withoutPrefetch branch January 14, 2026 15:42
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