Skip to content

Fix release workflow: download native lib before tests#1236

Merged
Ethan (stuqdog) merged 2 commits into
viamrobotics:mainfrom
stuqdog:fix-release-tests
Jun 30, 2026
Merged

Fix release workflow: download native lib before tests#1236
Ethan (stuqdog) merged 2 commits into
viamrobotics:mainfrom
stuqdog:fix-release-tests

Conversation

@stuqdog

Copy link
Copy Markdown
Member

The release workflow ran uv sync + tests but never downloaded libviam_rust_utils, which uv sync does not fetch (only make install / etc/postinstall.sh does). The new spatialmath FFI tests load the native lib at runtime, so the release job failed with OSError (exit code 2). Add a postinstall step to download the lib, matching test.yml.

The release workflow ran `uv sync` + tests but never downloaded
libviam_rust_utils, which uv sync does not fetch (only make install /
etc/postinstall.sh does). The new spatialmath FFI tests load the native
lib at runtime, so the release job failed with OSError (exit code 2).
Add a postinstall step to download the lib, matching test.yml.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@HipsterBrown

Copy link
Copy Markdown
Member

Thanks for fixing that! I'm surprised it didn't get caught in the PR that introduced the spatialmath utils.

@stuqdog

Copy link
Copy Markdown
Member Author

Thanks for fixing that! I'm surprised it didn't get caught in the PR that introduced the spatialmath utils.

Yeah, turns out the test workflow for a PR was different from the test workflow for a release in that the release workflow previously wasn't downloading rust utils. Never was an issue until we needed rust utils for unit tests!

@stuqdog Ethan (stuqdog) requested a review from a team as a code owner June 30, 2026 14:44
@stuqdog Ethan (stuqdog) merged commit b5565e1 into viamrobotics:main Jun 30, 2026
13 checks passed
@stuqdog Ethan (stuqdog) deleted the fix-release-tests branch June 30, 2026 14:47
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.

3 participants