~canonical-kernel/+git/kteam-tools:apw/update-dkms-versions--resync-master-copy

Last commit made on 2023-11-07
Get this branch:
git clone -b apw/update-dkms-versions--resync-master-copy https://git.launchpad.net/~canonical-kernel/+git/kteam-tools
Members of Canonical Kernel can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
apw/update-dkms-versions--resync-master-copy
Repository:
lp:~canonical-kernel/+git/kteam-tools

Recent commits

bbc8a84... by Andy Whitcroft

update-dkms-versions: use devel over tip if present

We are going to rename tip to devel, pick devel if present.

Signed-off-by: Andy Whitcroft <email address hidden>

380a617... by Andy Whitcroft

update-dkms-versions: add support for <series>:<mainline>:<type> matches

Add support for matching based on series and mainline version so we can
make lrm differ for 6.5.0.

Signed-off-by: Andy Whitcroft <email address hidden>

748bab0... by Thibf

ci: Fix xdg dependency

Acked-by: Sean Feole <email address hidden>
Signed-off-by: Sean Feole <email address hidden>

2c3e0b6... by Juerg Haefliger

juergh/clean-up-crl-config

Cleanup cranky/crl/config.py. No functional changes.

Acked-by: Thibault Ferrante <email address hidden>
Signed-off-by: Juerg Haefliger <email address hidden>

dff12ab... by Juerg Haefliger

cranky: crl/config -- Fix coding style

Let 'black' reformat the file and add it to the pre-commit whitelist.

Signed-off-by: Juerg Haefliger <email address hidden>

5e94b1d... by Juerg Haefliger

cranky: crl/config -- Use xdg module to get config directory

The XDG_CONFIG_HOME env variable is not always set, so use the xdg
module which is more robust.

Signed-off-by: Juerg Haefliger <email address hidden>

5d1d390... by Andy Whitcroft

cranky/docs: Add title format for config changes in a derivative

Signed-off-by: Roxana Nicolescu <email address hidden>
Acked-by: Andrea Righi <email address hidden>
Acked-by: Andy Whitcroft <email address hidden>
Acked-by: Andrea Righi <email address hidden>
Acked-by: Andy Whitcroft <email address hidden>
Signed-off-by: Andy Whitcroft <email address hidden>

5a0d218... by Roxana Nicolescu

cranky/docs: Add title format for config changes in a derivative

Signed-off-by: Roxana Nicolescu <email address hidden>

57d52a9... by Andy Whitcroft

cranky: git-ubuntu-log: use no-cache to retrieve data from launchpad

In mantic git-ubuntu-log seems to fail at retrieving data from
api.launchpad.net with the following error:

  Traceback (most recent call last):
    File "./debian/scripts/misc/git-ubuntu-log", line 126, in <module>
      bug_info = json.loads(data.decode('utf-8'))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
      return _default_decoder.decode(s)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
      raise JSONDecodeError("Expecting value", s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The reason is that the urllib request to api.launchpad.net may return an
empty response.

Commenting out the line that sets `Cache-Control: max-age=0` in the
headers seems to fix the issue, but we still want to avoid using cached
data.

According to [1]:

  max-age=0 is a workaround for no-cache, because many old (HTTP/1.0)
  cache implementations don't support no-cache. Recently browsers are
  still using max-age=0 in "reloading" - for backward compatibility -
  and alternatively using no-cache to cause a "force reloading".

In fact setting no-cache instead of max-age=0 seems to prevent the issue
from happening.

Considering that we don't have to support HTTP/1.0 for our particular
use case we should simply use no-cache.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#max-age

Signed-off-by: Andrea Righi <email address hidden>
Acked-by: Andy Whitcroft <email address hidden>
Signed-off-by: Andy Whitcroft <email address hidden>

1fa4a42... by Andrea Righi

cranky: git-ubuntu-log: use no-cache to retrieve data from launchpad

In mantic git-ubuntu-log seems to fail at retrieving data from
api.launchpad.net with the following error:

  Traceback (most recent call last):
    File "./debian/scripts/misc/git-ubuntu-log", line 126, in <module>
      bug_info = json.loads(data.decode('utf-8'))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/json/__init__.py", line 346, in loads
      return _default_decoder.decode(s)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/json/decoder.py", line 337, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/json/decoder.py", line 355, in raw_decode
      raise JSONDecodeError("Expecting value", s, err.value) from None
  json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The reason is that the urllib request to api.launchpad.net may return an
empty response.

Commenting out the line that sets `Cache-Control: max-age=0` in the
headers seems to fix the issue, but we still want to avoid using cached
data.

According to [1]:

  max-age=0 is a workaround for no-cache, because many old (HTTP/1.0)
  cache implementations don't support no-cache. Recently browsers are
  still using max-age=0 in "reloading" - for backward compatibility -
  and alternatively using no-cache to cause a "force reloading".

In fact setting no-cache instead of max-age=0 seems to prevent the issue
from happening.

Considering that we don't have to support HTTP/1.0 for our particular
use case we should simply use no-cache.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#max-age

Signed-off-by: Andrea Righi <email address hidden>