Merge ppa-dev-tools:fix-lp2038651-bionic-not-included into ppa-dev-tools:main

Proposed by Bryce Harrington
Status: Merged
Merged at revision: 3ce7aaf4b8b5a457ca4b228a7758a1b2ec4216c7
Proposed branch: ppa-dev-tools:fix-lp2038651-bionic-not-included
Merge into: ppa-dev-tools:main
Diff against target: 84 lines (+38/-3)
2 files modified
scripts/ppa (+1/-0)
tests/test_scripts_ppa.py (+37/-3)
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
Andreas Hasenack (community) Approve
PpaDevTools Developers Pending
Canonical Server Reporter Pending
Review via email: mp+453478@code.staging.launchpad.net

Description of the change

Simple fix for issue discovered and reported by Sebastien Bacher, that the trigger list misses packages targeting ESM releases.

I included with this change an expansion of the relevant test case to cover this issue. Running 'make check' without the fix applied will result in a test failure, and with it applied it then passes.

Admittedly, the test case has some bitrot potential in that eventually even ESM releases will become EOL, so eventually this test case will start failing when 'bionic' hits that point. But this isn't the only test case with such an issue. (Eventually these will need fixed by mocking distro-info to allow hardcoding the releases, however that's a larger scope cleanup than this bugfix.)

To post a comment you must log in.
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

supported_esm() currently also includes trusty and xenial. Should we test for those as well, or are you worried about the test becoming wrong once those become unsupported via esm?

Revision history for this message
Bryce Harrington (bryce) wrote :

> supported_esm() currently also includes trusty and xenial. Should we test for
> those as well, or are you worried about the test becoming wrong once those
> become unsupported via esm?

Exactly, this is destined to bitrot but by ignoring those two I'm hoping to put that day off a few years. :-)

For purposes of the code, checking just one of them is going to be sufficient, and bionic will be around the longest of the three.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks, +1

review: Approve
Revision history for this message
Sebastien Bacher (seb128) wrote :

seems also fine to me thanks!

review: Approve
Revision history for this message
Bryce Harrington (bryce) wrote :

Thanks, landed:

Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To git+ssh://git.launchpad.net/ppa-dev-tools
   a2a04a8..3ce7aaf main -> main

There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: