Merge ~xnox/launchpad:snap-request-builds-mimick-auto into launchpad:master
Status: | Needs review |
---|---|
Proposed branch: | ~xnox/launchpad:snap-request-builds-mimick-auto |
Merge into: | launchpad:master |
Diff against target: |
74 lines (+43/-2) 2 files modified
lib/lp/snappy/browser/snap.py (+4/-2) lib/lp/snappy/browser/tests/test_snap.py (+39/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson | Pending | ||
Launchpad code reviewers | Pending | ||
Review via email: mp+447665@code.launchpad.net |
Commit message
snappy: Make requestbuild use auto-build archive and pocket defaults
Make request snap builds page for a snap, reuse auto-build archive & pocket, if set on the snap.
Rationale:
* Currently many snap builds are only correct, or successful if they use a predetermined set of snap recipe configuration. For example - beta channel recipe, uses beta PPA archive to pull in relevant beta .deb dependencies. Or for example use special forked dependencies from a given private archive (for pre-release or edge builds). Especially when such archives cannot be encoded in the snapcraft.yaml (as they are either private, or need to be dynamically updated to one of multiple valid options, depending on upload target).
* Auto-builds are able to correctly set desired auto-build archive, and it is correctly used
* When triggering a manual build, currently the default auto-build settings are not used. Meaning one has to carefully inspect snap recipe auto-build settings and lookup matching build archive and set it on the request snap build page to ensure the manual triggered build is done the same way as the automatically triggered one
* Fix this UI/UX issue by pre-populating manually triggered build, with the same defaults that automaticly triggered builds use. Such that for example the same build archive is used.
QAStaging test case:
* Create snap recipe
* Set it to autobuild
* Set a PPA archive for autobuilds
* Click Requests Builds
* The UI page of requests builds should have the same autobuild PPA prepulated and selected
LP: #2028687
Unmerged commits
- 49f5a4b... by Dimitri John Ledkov
-
docs:0 (build) lint:0 (build) mypy:0 (build) 1 → 3 of 3 results First • Previous • Next • Last
ping