Skip to content

Update rel-scripts to use pre-prod artifacts for file-size calculations [DI-794]#76

Open
JackPGreen wants to merge 2 commits into
hazelcast:masterfrom
JackPGreen:DI-794
Open

Update rel-scripts to use pre-prod artifacts for file-size calculations [DI-794]#76
JackPGreen wants to merge 2 commits into
hazelcast:masterfrom
JackPGreen:DI-794

Conversation

@JackPGreen

@JackPGreen JackPGreen commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

When running package.yml, we create a staged PR which includes links to the downloads and their sizes.

This is a problem, as the final downloads shouldn't exist until the promote stage. Hence we need to resolve the sizes based on the pre-prod location, but publish references to the live URL.

Added pre-prod awareness, now queries both sources when trying to determine the download size.

An example execution is here, but I'm unable to properly test as there are no artefacts in the preprod repos(s) to test against. But you can see it querying the preprod repo for the right file (...if it existed...).

Fixes: DI-794

@JackPGreen JackPGreen self-assigned this Jun 23, 2026
@nishaatr

Copy link
Copy Markdown
Contributor

failed btw https://github.com/JackPGreen/rel-scripts/actions/runs/28024048931/job/82947277976

I'm unable to properly test as there are no artefacts in the preprod repos(s) to test against.

simply build it and check preprod urls are ok?

@JackPGreen

Copy link
Copy Markdown
Contributor Author

failed btw https://github.com/JackPGreen/rel-scripts/actions/runs/28024048931/job/82947277976

I know it failed - because there are no preprod artifacts.

I'm unable to properly test as there are no artefacts in the preprod repos(s) to test against.

simply build it and check preprod urls are ok?

2 hours later...

Sandbox execution, resultant PR.

assert downloads.slim_zip.url == "https://example.com/foo-slim.zip"
assert downloads.full_tar.url == "https://example.com/foo.tar.gz"
assert downloads.slim_tar.url == "https://example.com/foo-slim.tar.gz"
assert downloads.full_zip.live_url == "https://example.com/foo.zip"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

live_url - confusing as we have live or sandbox (preprod could be from either)
may be target_url or just url

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good point. public_url?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@JackPGreen JackPGreen requested a review from nishaatr June 25, 2026 08:51
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