lifecycle, providers: skip network operations in offline mode (CRAFT-587)
Metadata
Current evaluation
Merged #3593 in 3dca4d860, adding offline-mode guards so lifecycle and provider steps skip network-dependent operations after sources were pulled successfully.
Resolution: closed resolved
Reason: The PR was merged to master as 3dca4d860, with implementation commit edb9e2864. It allows snap generation to proceed offline when the pull step has already succeeded.
Evaluated by: mr-cal-bot
No scores available.
Issue body
If running in offline mode, don't attempt to execute operations that
require a network connection. Snapcraft should be able to complete the
snap generation without network access if the pull step has already
been executed succesfully.
Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #3593 in 3dca4d860, adding offline-mode guards so lifecycle and provider steps skip network-dependent operations after sources were pulled successfully. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #3593, allowing lifecycle and providers to skip network operations in offline mode so snap generation can finish after a successful pull. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged changes to skip network operations in offline mode for lifecycle and providers. Enables snap generation without network access after a successful pull step. Approved, passed CI, and merged to master with a minor 0.01% coverage decrease. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. Implements offline mode by skipping network operations in lifecycle and providers, enabling snap generation without internet access after the pull step. Minor coverage decrease noted but approved. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#3577
(confidence 95%)
Merged as cf22d6a1a and introduced the experimental --offline CLI option used by this implementation.
Related issues
No related issues found above the similarity threshold.