← 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 via merged PR #4353 (commit 2eddbfe6c, CRAFT-1974), adding SNAPCRAFT_REMOTE_BUILD_STRATEGY handling for disable-fallback/force-fallback; legacy builder later removed in #4724 (Snapcraft 9.0).

Resolution: closed resolved

Reason: PR #4353 was merged and closed the issue; commit 2eddbfe6c added the envvar control logic selecting new vs legacy remote-build code, documented in the 8.2.0 release notes. The legacy path was later dropped in commit 9905f2831 (#4724) when the legacy builder was removed.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Implemented via merged PR #4353 (commit 2eddbfe6c, CRAFT-1974), adding SNAPCRAFT_REMOTE_BUILD_STRATEGY handling for disable-fallback/force-fallback; legacy builder later removed in #4724 (Snapcraft 9.0).
stealth/space-bunny-alpha — closed resolved Closed as done: SNAPCRAFT_REMOTE_BUILD_STRATEGY control logic for choosing new vs legacy remote-build was merged in PR #4353 (commit 2eddbfe6c), shipping in Snapcraft 8.0.0; the envvar was later removed in 9.0.0.
stealth/space-bunny-alpha — closed resolved Added SNAPCRAFT_REMOTE_BUILD_STRATEGY selection between new and legacy remote-build code in merged PR #4353 (commit 2eddbfe6c).
stealth/space-bunny-alpha — closed resolved Added SNAPCRAFT_REMOTE_BUILD_STRATEGY control logic to choose new vs legacy remote-build code; merged in PR #4353 (commit 2eddbfe6c). Legacy path later removed by PR #4724 in Snapcraft 9.0.
stealth/space-bunny-alpha — closed resolved Added SNAPCRAFT_REMOTE_BUILD_STRATEGY selection between new and legacy remote-build code via merged PR #4353 (commit 2eddbfe6c).
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.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#4353 (confidence 97%)

    Merged PR adding the SNAPCRAFT_REMOTE_BUILD_STRATEGY control logic, closing #4319

  • Superseded By: canonical/snapcraft#4724 (confidence 90%)

    Commit 9905f2831 made craft-application remote build the only path for core22 and removed the fallback controlled by this envvar

Related issues

Issue Project State Summary Similarity
#4353 feat(remote-build): check SNAPCRAFT_REMOTE_BUILD_STRATEGY envvar snapcraft merged Merged PR #4353 (commit 2eddbfe6c) added handling of SNAPCRAFT_REMOTE_BUILD_STRATEGY (disable-fallback/force-fallback) for core22-and-older bases, closing issue #4319 (CRAFT-1974).
86%
#4318 remote-build: add control logic for snap base snapcraft closed Base-aware remote-build routing was merged in PR #4343 (commit 128e0acb2), using legacy code for core20/core22 and the new path for devel/core24 and newer.
76%
#5676 remote build: remove legacy remote builder snapcraft closed Fixed in merged PR #5994 (commit b08f1a66e) for Snapcraft 9.0 by removing the legacy remote builder, selection logic, strategy env var, and legacy credential support.
72%