-
Notifications
You must be signed in to change notification settings - Fork 446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel plugin: properly generate Ubuntu kernel .config #4210
Conversation
@arighi thank you! this looks good. |
e293475
to
cbf73b6
Compare
9af8d8d
to
c96d021
Compare
Working on it. I've just updated my pull request, the last one should fix all the kernel test cases. @kubiko about the support for older kernels, yes, it will work with any kernel back to focal (and even before focal), the target |
@xnox |
@sergiusens Can you help move this PR along? |
c623900
to
9d4846b
Compare
@arighi workflows were re-run, but there are now failing tests again, and rebase needed. |
I'm trying to setup a dev environment to verify all these tests locally. I'm wondering if there's some documentation on how to verify everything without relying on the CI here in github, I've followed all the steps here (https://github.com/snapcore/snapcraft/blob/main/HACKING.md) and I have created a local dev environment correctly, but then the tests are failing even without my patch applied... I'll investigate more, I need to start from a local environment where everything works, then I'll apply my patch, re-run all the tests and if everything is good I'll rebase+push again. |
@xnox this is now rebased, I will run a test build to make sure things are still working |
@arighi I have struggled with this as well, not well documented. Here are my notes
As part of the snapcraft release there are more tests, those can be run with |
9d4846b
to
f8b46de
Compare
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #4210 +/- ##
==========================================
- Coverage 89.11% 88.97% -0.14%
==========================================
Files 300 295 -5
Lines 20623 20171 -452
==========================================
- Hits 18378 17948 -430
+ Misses 2245 2223 -22
... and 16 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@kubiko it looks like the tests are finally passing now. Is there anything special to do or do I just need to wait for a review/approval? Thanks. |
@arighi that should be all. you just need snapcraft team review now |
I am not sure how kernel team can maintain this, without powers to run CI or merge changes. |
@xnox if we are open to improving Ubuntu upstream kernel packaging, I'd propose allowing running |
@xnox moving this repo to the canonical org is probably long overdue, that should allow running tests without this churn. In any case, until that happens, please give me a list of folks so I can add as contributors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
It seems the merge was done using @gmail.com address, instead of your @canonical.com address which is now tripping up the cla check. I don't know if you can rewrite that merge commit with |
Hm... not sure why it used my gmail address, my default email in github is already the one |
Recent Ubuntu kernels (>= Jammy) are now using a new format to store their .config, called annotations [1]. The kernel plugin is trying to assemble a .config using the old config chunks stored in `debian.<kernel>/config/*` that are not available anymore in the kernels that are using this new annotations model. Instead of trying to manually assemble the config we should rely on `debian/rules genconfigs` that is more portable across different Ubuntu kernels and releases. [ Thanks to Guo-Rong for fixing all the test case failures. ] [1] https://lists.ubuntu.com/archives/kernel-team/2023-June/140230.html Signed-off-by: Andrea Righi <[email protected]>
5685218
to
989b49d
Compare
@sergiusens kernel team approves of this PR. please approve & merge this on our behalf due to lack of ACLs on this. |
Recent Ubuntu kernels (>= Jammy) are now using a new format to store their .config, called annotations [1]. The kernel plugin is trying to assemble a .config using the old config chunks stored in `debian.<kernel>/config/*` that are not available anymore in the kernels that are using this new annotations model. Instead of trying to manually assemble the config we should rely on `debian/rules genconfigs` that is more portable across different Ubuntu kernels and releases. [1] https://lists.ubuntu.com/archives/kernel-team/2023-June/140230.html Signed-off-by: Andrea Righi <[email protected]>
Recent Ubuntu kernels (>= Jammy) are now using a new format to store their .config, called annotations [1].
The kernel plugin is trying to assemble a .config using the old config chunks stored in
debian.<kernel>/config/*
that are not available anymore in the kernels that are using this new annotations model.Instead of trying to manually assemble the config we should rely on
debian/rules genconfigs
that is more portable across different Ubuntu kernels and releases.[1] https://lists.ubuntu.com/archives/kernel-team/2023-June/140230.html
make lint
?pytest tests/unit
?