-
Notifications
You must be signed in to change notification settings - Fork 696
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
Add CI staging job testing Ubuntu 24.04 (noble) #7360
Conversation
a2ecd5b
to
c2e9876
Compare
3aa19e6
to
31c2fcb
Compare
Remaining staging failures:
|
6e19489
to
6aa21e9
Compare
I've just been pushing stuff here for now as I work through the failures, later we can figure out if we want them to get individual PRs or not. |
6aa21e9
to
98dc6f9
Compare
An interesting quirk of ip6tables on noble; despite IPv6 being disabled the command still works, so on boot you get a wide-open ruleset of:
This is because netfilter-persistent is smart and checks if IPv6 is disabled, and if so, doesn't load rules. So our "drop everything" in |
5425046
to
57188ba
Compare
I fixed the paxtest failure on focal because of unattended-upgrades preventing it from being installed. The output on noble is uh, off. On app-staging, it's reliably:
(the last line doesn't have a result) And then on mon-staging:
(interspersed output, missing two results) |
@zenmonkeykstop I'm curious if you have any ideas on why the paxtest output is different across hosts and how to design a test to address it? |
Not off the top of my head - assuming same kernel and paxctld setup the results should be the same. I'll look into it once we're done with 2025JanPlanfest. |
This is an upstream Ubuntu bug that was fixed, but occurs before packages are updated and SecureDrop is installed, so there's really nothing for us to do until new VM images and installer ISOs are made available Fixes #7385.
Instead of maintaining the same version-specific list of profiles six times, just check against a single list of profiles we care about, namely tor and apache2. The rest are not something under our control and vary based on the Ubuntu version. test_apparmor_ensure_not_disabled was mostly broken, because it was looking for files like `/etc/apparmor.d/disabled/usr.sbin./usr/sbin/tor`, which of course would never exist. Instead just check that there are no disable files installed.
* ip6tables no longer errors if IPv6 is disabled, so limit that test to focal only. * Add a new test that verifies IPv6 is disabled at the kernel level by looking at the relevant /proc file.
Don't let unattended-upgrades interfere with the installation by holding the dpkg lock.
* Remove the unnecessary diffing and templating, just keep what we want to assert against as a plain string. * Avoid shelling out to grep, we can do the filtering in Python. * Add the expected noble output, but disable the test because it currently isn't passing with unclear output.
57188ba
to
504311d
Compare
Ack; I've set the test to be skipped on noble so we can get a green check and land this and fix it incrementally instead of holding the entire staging job back - I've flipped it out of draft mode. The individual commit messages have rationales for all the further changes. |
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.
@legoktm your changes LGTM - I can't merge coz original author, will flag in channel
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.
Per Kev's review
Status
Ready for review
Description of Changes
Fixes #7312
Testing
testinfra
tests.