~canonical-kernel/+git/kteam-tools:smb/ckt-workaround-launchpad-oops

Last commit made on 2023-07-27
Get this branch:
git clone -b smb/ckt-workaround-launchpad-oops 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:
smb/ckt-workaround-launchpad-oops
Repository:
lp:~canonical-kernel/+git/kteam-tools

Recent commits

a4d61bc... by Stefan Bader

create-kernel-tasks: Work around spin 1 Launchpad bug

When looking up workflow trackers to check for exising ones there is a
difference between spin #1 and later ones. The reason why is somewhat
lost in history. While for later spins the library is called with a set
of all cycle tags, we pass an empty list for the initial spin.

This gets translated by the library into a search for all workflow tasks
which have a "kernel-release-tracking-bug-live" tag. Right now this
seems to return about 4000-5000 entries when done via the web page. The
API call however runs into a timeout and returns a Launchpad Oops.

Right now the simplest solution is to modify create-kernel-tasks to pass
in the cycle tag for spin #1 as well. Which also speeds up the runtime a
lot.

Signed-off-by: Stefan Bader <email address hidden>

ec2d76c... by Ian May

info/kernel-series: update variants for jammy:nvidia hwe kernels

Add an hwe-22.04/hwe-22.04-edge variant

Signed-off-by: Ian May <email address hidden>
Acked-by: Jacob Martin <email address hidden>
Signed-off-by: Ian May <email address hidden>

2e6f977... by Ian May

info/kernel-series: update variants for jammy:nvidia hwe kernels

Add an hwe-22.04/hwe-22.04-edge variant

Signed-off-by: Ian May <email address hidden>

5810127... by Cory Todd

docs: cranky-the-kernel -- update path to main package

Update all example cranking commands to use the new default path for
main packages which is linux-main.

Signed-off-by: Cory Todd <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

41777b5... by Cory Todd

docs: change default package-path in cranky.yaml

Our sample cranky configuration file provides defaults could be
considered dangerous. Additionally, our cranking the kernel doc uses a
different path configuration for examples which is very confusing for
new-starters.

- update config to use a safer (though more costly in storage) defaults
- add note to cranking doc to call out why the paths may differ.

Signed-off-by: Cory Todd <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Signed-off-by: Tim Gardner <email address hidden>

af70a63... by Luke Nowakowski-Krijger

git-tools: Add git-buglink script

Add git-buglink script used in adding buglinks to patches when
processing upstream stable updates.

Ported from Kamal's stable tools.

Signed-off-by: Luke Nowakowski-Krijger <email address hidden>
Acked-by: kamalmostafa <email address hidden>
Signed-off-by: Cory Todd <email address hidden>

73d75c8... by Luke Nowakowski-Krijger

stable-tools: Add intial stable patchset scripts to stable-tools

Add git-stable-extag and stable-check-reverts into a top level directory
where we can put tools for processing stable patchsets and other
stable related tasks.

This would differ from the "stable" directory in that it would be for tools
not related directly to swm and cycle management.

Ported from Kamal's stable tools.

Signed-off-by: Luke Nowakowski-Krijger <email address hidden>
Acked-by: kamalmostafa <email address hidden>
Signed-off-by: Cory Todd <email address hidden>

3ae5d4b... by Agathe Porte

docs: s/linux-DERIVATIVE-restricted-modules/linux-lrm/

After running a `cranky checkout lunar:linux-kvm`, the
`linux-kvm-restricted-modules/` directory is not created but instead
the `linux-lrm/` folder name is used. After asking to the team,
this seems to be the new name in use for restricted modules.
Also, the `-DERIVATIVE` suffix is gone.

Reflect these name changes into the docs.

Note: this change makes the docs inconsistent, as linux-oracle
still seems to use the `linux-restricted-modules` name.

TODO: use something else than linux-oracle for the examples.

Signed-off-by: Agathe Porte <email address hidden>
Acked-by: Tim Gardner <email address hidden>
Acked-by: Roxana Nicolescu <email address hidden>
Signed-off-by: Agathe Porte <email address hidden>

0b35ce3... by Andy Whitcroft

ktl/kernel_series: Fix KernelSeries class definition for Python2

KernelSeries was recently changed to override __new__(). For that to work
correctly the class needs to inherit from object which needs to be
explicitly specified in Python2 (which we still need to support for
automation that runs on wani).

Otherwise we'll get exceptions like:

Traceback (most recent call last):
 File "scripts/cbd", line 358, in
 app.main()
 File "scripts/cbd", line 302, in main
 this_package_bugs[bug.id] = Bugs.bug_info(bug, now, primary_task)
 File "/home/kernel-ppa/shankbot/kteam-tools/web/scripts/ktl/bugs.py", line 129, in bug_info
 (bug_item['series name'], bug_item['series version']) = bug.series
 File "/home/kernel-ppa/shankbot/kteam-tools/web/scripts/ktl/kernel_bug.py", line 516, in series
 (series_name, series_version) = self._find_series_in_tags(self)
 File "/home/kernel-ppa/shankbot/kteam-tools/web/scripts/ktl/kernel_bug.py", line 494, in _find_series_in_tags
 for series in sorted(self.kernel_series.series, key=KernelSeries.key_series_name):
AttributeError: KernelSeries instance has no attribute 'series'

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

1a288da... by Juerg Haefliger

ktl/kernel_series: Fix KernelSeries class definition for Python2

KernelSeries was recently changed to override __new__(). For that to work
correctly the class needs to inherit from object which needs to be
explicitly specified in Python2 (which we still need to support for
automation that runs on wani).

Otherwise we'll get exceptions like:

Traceback (most recent call last):
 File "scripts/cbd", line 358, in
 app.main()
 File "scripts/cbd", line 302, in main
 this_package_bugs[bug.id] = Bugs.bug_info(bug, now, primary_task)
 File "/home/kernel-ppa/shankbot/kteam-tools/web/scripts/ktl/bugs.py", line 129, in bug_info
 (bug_item['series name'], bug_item['series version']) = bug.series
 File "/home/kernel-ppa/shankbot/kteam-tools/web/scripts/ktl/kernel_bug.py", line 516, in series
 (series_name, series_version) = self._find_series_in_tags(self)
 File "/home/kernel-ppa/shankbot/kteam-tools/web/scripts/ktl/kernel_bug.py", line 494, in _find_series_in_tags
 for series in sorted(self.kernel_series.series, key=KernelSeries.key_series_name):
AttributeError: KernelSeries instance has no attribute 'series'

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