← Back to issue list

remote-build: add control logic for envvar `SNAPCRAFT_REMOTE_BUILD_STRATEGY`

View original Github issue

Metadata

Project
snapcraft
Number
#4319
Type
issue
State
closed
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

Implemented control logic for SNAPCRAFT_REMOTE_BUILD_STRATEGY to toggle between new and legacy remote-build execution. The feature was merged and the issue closed as completed.

Suggested action:

No scores available.

Issue body

### What needs to get done This adds control logic to determine whether to execute the new or legacy remote-build code. There are four possibilities with `SNAPCRAFT_REMOTE_BUILD_STRATEGY`: - `disable-fallback` - use new remote-build code - `force-fallback` - use legacy remote-build code - unset - continue on to next control logic step - unknown - raise an error ![image](https://github.com/snapcore/snapcraft/assets/60674096/298ea1f2-96b2-4337-b2cc-3d3c3e2848b8) ### Why it needs to get done remote-build needs to be migrated because it does not leverage the new craft libraries, has issues with building core22 snaps, and has issues related to how the local project is bundled.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Implemented control logic for SNAPCRAFT_REMOTE_BUILD_STRATEGY to toggle between new and legacy remote-build execution. The feature was merged and the issue closed as completed.
qwen/qwen3.6-35b-a3b Merged to implement control logic for the SNAPCRAFT_REMOTE_BUILD_STRATEGY environment variable, enabling switching between new and legacy remote-build code to resolve migration and core22 compatibility issues.
qwen/qwen3.6-35b-a3b Implemented control logic for the SNAPCRAFT_REMOTE_BUILD_STRATEGY environment variable. The update enables switching between new and legacy remote-build paths, resolving core22 compatibility issues and completing the craft library migration.
qwen3.6-35b-a3b-mtp-q6 Implemented and merged. Added control logic for the SNAPCRAFT_REMOTE_BUILD_STRATEGY environment variable to toggle between new and legacy remote-build execution, resolving core22 compatibility and bundling issues.
qwen3.6-35b-a3b-mtp-q6 Implemented and merged. Added control logic for the SNAPCRAFT_REMOTE_BUILD_STRATEGY environment variable to toggle between new and legacy remote-build code, addressing core22 compatibility and bundling issues.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#4353 feat(remote-build): check SNAPCRAFT_REMOTE_BUILD_STRATEGY envvar snapcraft merged Merged implementation of SNAPCRAFT_REMOTE_BUILD_STRATEGY environment variable to control remote build fallback for core22 and older bases. Approved by two reviewers, passed CI, and achieved 100% diff coverage. Resolves #4319.
81%
#4318 remote-build: add control logic for snap base snapcraft closed Closed without implementation. The request to add base-specific control logic for remote-build was abandoned due to lack of activity.
75%
#4324 remote-build: new command logic snapcraft closed The remote-build command logic update was closed without implementation. No linked pull request or resolution details exist, indicating the feature was abandoned.
71%
#4321 remote-build: add control logic when the project is in a git repo snapcraft closed Closed without implementation. The proposed control logic to switch remote-build execution based on git repository presence was abandoned.
71%