Reuse Blender 5.2.0 dependencies across ARM64 patch builds - #8
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The changes align with the stated goal (reuse 5.2.0 deps for 5.2.x ARM64 builds) and include targeted tests, with only a minor documentation formatting issue noted.
Pull request overview
This PR ensures Linux ARM64 builds for Blender 5.2.x reuse the immutable Blender 5.2.0 dependency bundle (release + cache identity), preventing patch releases (e.g., 5.2.1) from triggering expensive native rebuilds while still validating the wheel against the exact requested Blender version.
Changes:
- Added a semantic-version–validated dependency bundle selector that maps Blender
5.2.xto dependency version5.2.0. - Updated Linux ARM64 build logic and workflow caching/publishing rules to reuse the
5.2.0bundle across 5.2 patch builds while keeping native fallback behavior. - Expanded tests to cover bundle selection rules, rejection of non-semver inputs, and end-to-end patch reuse behavior.
File summaries
| File | Description |
|---|---|
tests/test_arm64_deps_bundle.py |
Adds unit + integration coverage for 5.2.x → 5.2.0 bundle selection, semver validation, and patch build reuse behavior. |
src/buildbpy/main.py |
Switches ARM64 bundle resolution to the selector and verifies bundle provenance against the correct Blender tag commit. |
src/buildbpy/arm64_deps.py |
Introduces BundleSpec.for_blender_version() to enforce semver input and map 5.2 patch releases to 5.2.0 dependencies. |
README.md |
Documents 5.2.x reuse and immutability behavior for ARM64 dependency bundles. |
.github/workflows/build_linux_arm64.yml |
Uses the selected dependency version for cache/release identity, and prevents patch builds from publishing or saving base caches/bundles. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+79
to
+82
| exact requested Blender patch version. A successful ARM64 CI build packages and | ||
| publishes a dependency tree only when the selected immutable bundle does not | ||
| already exist and only after the generated wheel installs and passes `import | ||
| bpy`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Regression evidence
The failed v5.2.1 run requested
deps-blender-5.2.1-linux-arm64-v1, received 404, rebuilt dependencies for six hours, and timed out. This change makes it requestdeps-blender-5.2.0-linux-arm64-v1.Verification