~sespiros/ubuntu-qa-tools:fix-lpl-common

Last commit made on 2022-09-23
Get this branch:
git clone -b fix-lpl-common https://git.launchpad.net/~sespiros/ubuntu-qa-tools
Only Spyros Seimenis can upload to this branch. If you are Spyros Seimenis please log in for upload directions.

Branch merges

Branch information

Name:
fix-lpl-common
Repository:
lp:~sespiros/ubuntu-qa-tools

Recent commits

cdbb4f8... by Spyros Seimenis

Convert affected tools to python3

c73eddf... by Spyros Seimenis

Replace deprecated getheader() with get()

3763002... by Alex Murray

Merge branch 'unembargo-warn-security-updates-on-fridays'

https://code.launchpad.net/~alexmurray/ubuntu-qa-tools/+git/ubuntu-qa-tools/+merge/427704

Signed-off-by: Alex Murray <email address hidden>

a8d5dc1... by Alex Murray

unembargo: Do Friday check for ESM PPAs as well as the security pocket

Signed-off-by: Alex Murray <email address hidden>

297753d... by Alex Murray

unembargo: Warn if trying to publish security updates on Fridays

Signed-off-by: Alex Murray <email address hidden>

f520beb... by Steve Beattie

unembargo: separate out milestone lookup into function

The recent change

  0c2430a ("unembargo: Check and warn for any pending milestones")

ended up re-assigning to the same `series` variable, breaking package
publications for multiple source packges:

  $UQT/security-tools/unembargo -n --ppa=ubuntu-security-proposed/ppa openjdk-8 openjdk-lts openjdk-17 openjdk-18
  Loading Ubuntu Distribution ...
  Loading Ubuntu Archive ...
  Loading ubuntu-security-proposed 'ppa' PPA ...
  Locating openjdk-8 ...
  WARNING: jammy is approaching milestone ubuntu-22.04.1 (due 2022-08-04)
  NOTE: Please coordinate with the #ubuntu-release team before releasing.
  NOTE: To override this check and publish anyway please use the --force.
  NOTE: unembargo for jammy will be skipped.
          Want to publish openjdk-8 8u342-b07-0ubuntu1~20.04 to ubuntu/primary focal (Security)...
          Want to publish openjdk-8 8u342-b07-0ubuntu1~18.04 to ubuntu/primary bionic (Security)...
  Locating openjdk-lts ...
  Traceback (most recent call last):
    File "/home/steve/git/ubuntu-qa-tools/security-tools/unembargo", line 146, in <module>
      if len(series) > 0:
  TypeError: object of type 'Entry' has no len()

Fix this by moving the lookup of milestones to a separate function, so
that any variables set there won't pollute the global namespace. Also it
makes it easier to isolate the milestone lookup for future improvements.

v2: rename milestone discovery function to `pending_milestone()`

Signed-off-by: Steve Beattie <email address hidden>
MR: https://code.launchpad.net/~sbeattie/ubuntu-qa-tools/+git/ubuntu-qa-tools-1/+merge/427845

950c3f3... by Alex Murray

unembargo: Add grace period to milestone date and assume UTC

Milestone dates are in UTC so make sure we use UTC for the local time as
well when comparing, plus since the release is due *on* that date, check
for the day *after* that to make sure we don't release whilst it is still
being prepared.

Signed-off-by: Alex Murray <email address hidden>

4ec6109... by Alex Murray

Merge branch 'jammy-soft-freeze-check'

Signed-off-by: Alex Murray <email address hidden>

0c2430a... by Alex Murray

unembargo: Check and warn for any pending milestones

Rather than use a hard-coded check for the pending jammy point release,
lookup milestones via LP and warn if 7 days or less until one is due. This
does not appear to have any noticeable performance impact during the
unembargo.

Signed-off-by: Alex Murray <email address hidden>

a2de50b... by Alex Murray

unembargo: Add check for jammy since is now in soft-freeze for 22.04.1

Signed-off-by: Alex Murray <email address hidden>