snapcraft:feature/kernel-plugin

Last commit made on 2023-04-24
Get this branch:
git clone -b feature/kernel-plugin https://git.launchpad.net/snapcraft

Branch merges

Branch information

Name:
feature/kernel-plugin
Repository:
lp:snapcraft

Recent commits

ef105fa... by Claudio Matsuoka

plugins: kernel plugin fixes and spread tests (#4104)

Install the software-properties-common package, address shell script
issues when running on base core22, and create spread tests for v2 and
craft-parts kernel plugins.

Package installation code from PR #4064 by dbruno74.

Spread tests are set to manual and will run periodically.

Signed-off-by: Claudio Matsuoka <email address hidden>

9c87a82... by Callahan Kovacs

cli: add option to enable experimental plugins for snapcraft_legacy (#4093)

Signed-off-by: Callahan Kovacs <email address hidden>

21d1551... by Claudio Matsuoka

cli: better checking for experimental plugins (#4092)

Global arguments in craft-cli are not passed to command handlers, so
verify if experimental plugins are enabled using command-specific
arguments.

Future improvements may include global argument refactoring in
craft-cli and experimental plugin support in craft-parts.

Signed-off-by: Claudio Matsuoka <email address hidden>

c1dcd8b... by Claudio Matsuoka

cli: add option to enable experimental plugins (#4085)

Experimental plugins are registered only if the environment variable
`SNAPCRAFT_ENABLE_EXPERIMENTAL_PLUGINS` is set to a non-empty value or
if the `--enable-experimental-plugins` global argument is used.

Currently the kernel plugin is an experiemental plugin.

Signed-off-by: Claudio Matsuoka <email address hidden>

24ba14d... by Ondrej Kubik

kernel plugins: more code consolidation (#4081)

- kernel: use textwrap for complex texts
- plugins: kernel: relocate make_initrd_cmd() to common implementation
- plugins: kernel: relocate add_snappy_ppa() to common implementation
- plugins: kernel: relocate get_post_install_cmd() to common implementation
- plugins: kernel: relocate get_install_command() to common implementation
- plugins: kernel: relocate get_build_commands() to common implementation
- tests: fix test for kernel perf tools directly from kernel tree
- plugins,tests: kernel: start using textwrap.dedent for readability
- plugin: address linter warnings in kernel plugin tests

---------

Signed-off-by: Ondrej Kubik <email address hidden>
Signed-off-by: Isaac True <email address hidden>
Signed-off-by: Claudio Matsuoka <email address hidden>
Co-authored-by: Isaac True <email address hidden>
Co-authored-by: Claudio Matsuoka <email address hidden>

e2f033f... by Claudio Matsuoka

Revert "setup: pin codespell to version 2.2.2"

This reverts commit d42a2a8b28d90748862c8e77cd931f811b9bfc33.

cfc1316... by Claudio Matsuoka

setup: pin codespell to version 2.2.2

Signed-off-by: Claudio Matsuoka <email address hidden>

0ea2df3... by Claudio Matsuoka

plugins: minor kernel plugin refactoring

Replace a few instances of the `" ".join()` pattern with the expanded
string.

Signed-off-by: Claudio Matsuoka <email address hidden>

590fae3... by Claudio Matsuoka

plugins: refactor kernel plugin initrd builder function

Pass parameters to _make_initrd_cmd() instead of using instance
attributes directly in both kernel plugins, preparing it to be
switched to a common function.

Signed-off-by: Claudio Matsuoka <email address hidden>

550b0c7... by Claudio Matsuoka

plugins: extract common code from kernel plugins

Normalize and extract functions from the legacy v2 kernel plugin and
the craft-parts kernel plugin to create a simpler, more maintenable
code base.

Further changes are required: refactor constructs to allow easier
extraction of common code, normalize patterns, adjust styling, and
fix typos.

Signed-off-by: Claudio Matsuoka <email address hidden>