Merge ~corey.bryant/lpci:main into lpci:main

Proposed by Corey Bryant
Status: Superseded
Proposed branch: ~corey.bryant/lpci:main
Merge into: lpci:main
Diff against target: 10 lines (+1/-0)
1 file modified
lpci/providers/_buildd.py (+1/-0)
Reviewer Review Type Date Requested Status
Launchpad code reviewers Pending
Review via email: mp+443367@code.launchpad.net

This proposal has been superseded by a proposal from 2023-05-23.

To post a comment you must log in.
Revision history for this message
Jürgen Gmach (jugmac00) wrote :

Thanks for your contribution!

Could you please add an entry in the NEWS.rst?

Also, `bases.BuilddBaseAlias.DEVEL` was only introduced in craft-providers 1.8.1, but our `requirements.in` specify 1.8.0 as minimum version. Could you please update the minimum required version and the comment?

I do not think we need to apply `tox -e pip-compile` now, as version 1.8.1 was used in the requirements.txt anyway - but we (Launchapd devs) should update the dependencies soon.

I do feel a bit uneasy about adding code without tests, but that is the way we did before for adding new series/versions.

A very simple test that verifies that the key is present in `SERIES_TO_BUILDD_IMAGE_ALIAS` and that it maps to the correct image looks like it would not help too much, but at least it guarantees that we do not remove a series by mistake.

Do you want to add such a test? Do not worry if not, then I think I will add one for all series.

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Thanks for the review! I have changes but I force pushed them and they're not showing up here so I think I'll resubmit the proposal.

Unmerged commits

ae41a09... by Corey Bryant

Add suport for current development release

The current development release (mantic) is defined as
ubuntu.BuilddBaseAlias.DEVEL in craft-providers.

Succeeded
[SUCCEEDED] test:0 (build)
[SUCCEEDED] build:0 (build)
12 of 2 results

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lpci/providers/_buildd.py b/lpci/providers/_buildd.py
2index 62c5546..88f5e19 100644
3--- a/lpci/providers/_buildd.py
4+++ b/lpci/providers/_buildd.py
5@@ -20,6 +20,7 @@ SERIES_TO_BUILDD_IMAGE_ALIAS = {
6 "jammy": bases.BuilddBaseAlias.JAMMY,
7 "kinetic": bases.BuilddBaseAlias.KINETIC,
8 "lunar": bases.BuilddBaseAlias.LUNAR,
9+ "devel": bases.BuilddBaseAlias.DEVEL,
10 }
11
12

Subscribers

People subscribed via source and target branches