Skip to content

Conversation

AdamHillier
Copy link
Contributor

@AdamHillier AdamHillier commented Jan 29, 2021

What do these changes do?

The v0.5.0 release action silently failed to generate valid wheel files: specifically, for macOS and Windows the version number was set as v0.0.0 - this can be seen in the logs: https://github.com/larq/compute-engine/actions/runs/520610384.

I manually cancelled the run just before the PyPI upload step - had I not, I think we would have ended up accidentally publishing v0.0.0 wheels for Mac and Windows.

For some reason (and I didn't realise this was possible) this os.getenv call was returning the empty string:

version=os.getenv("LCE_RELEASE_VERSION", "0.5.0"),

This PR makes a small change to the way the version number is calculated, and adds a sanity check that throws if the empty string is returned.

How Has This Been Tested?

Manually generating the package.

Benchmark Results

N/A.

Related issue number

N/A.

@AdamHillier AdamHillier requested a review from a team January 29, 2021 19:41
@AdamHillier AdamHillier added the internal-improvement Internal Improvements and Maintenance label Jan 29, 2021
@AdamHillier
Copy link
Contributor Author

Once this issue is resolved I'll retrigger the v0.5.0 release.

Copy link
Member

@lgeiger lgeiger left a comment

Choose a reason for hiding this comment

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

Thanks for catching this. No idea why this was failing. Great that it is fixed now.

@lgeiger lgeiger merged commit 3a14f24 into master Jan 29, 2021
@lgeiger lgeiger deleted the fix-release-version-number branch January 29, 2021 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal-improvement Internal Improvements and Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants