Skip to content

Conversation

@andersson1234
Copy link
Contributor

No description provided.

post_tests
STATUS=$?
fi
check_no_apt_errors
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to call this after every do-release-upgrade, in case we have more than one. So let's add it to do_upgrade_and_maybe_reboot(), after do_normal_upgrade().

@andersson1234
Copy link
Contributor Author

amended and ready for re-review

@andersson1234
Copy link
Contributor Author

Added a kernel check, not sure if implementation is okay, requires review

@andersson1234
Copy link
Contributor Author

I'm testing this PR now.

This commit adds a check post upgrade. It's quite simple, it just runs:
apt-get check

Which, if exits non-zero, causes the upgrade job to fail. We don't want
to consider an upgrade "all good" if it leaves apt in a broken state!
@andersson1234
Copy link
Contributor Author

This is now amended, tested, and ready for review. Please see example run (with extra debug logging) here:
https://platform-qa-jenkins.ps5.ubuntu.com/view/upgrade/job/upgrade_ubuntu-jammy-noble-desktop-amd64_qemu/148/consoleFull

Copy link

@julian-klode julian-klode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick

…l booted post-upgrade

This check looks to catch errors, such as the ones we saw with
jammy->noble upgrades:
https://discourse.canonical.com/t/retrospective-on-jammy-noble-kernel-header-upgrade-issue/4263

Prior to upgrade, the upgrade script now stores the output of:
dpkg -l linux-*-$kernel

where $kernel=$(uname -r).

Then, post upgrade, we check the output of the dpkg -l... command again.

If it is the same - happy! If not, fail :'(

This should mean that we spot upgrade issues related to kernels and
kernel headers much quicker in the future.
@andersson1234
Copy link
Contributor Author

implemented Julian's nit, I will merge

@andersson1234 andersson1234 merged commit 51182d5 into canonical:main Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants