Skip to content
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

Pin packages #219

Merged
merged 8 commits into from
Jan 3, 2024
Merged

Pin packages #219

merged 8 commits into from
Jan 3, 2024

Conversation

Kixunil
Copy link
Collaborator

@Kixunil Kixunil commented Dec 17, 2023

Verifying signatures is not that great because when the keys expire the build is broken. We instead pin the packages while still being able to verify when the pin is updated. This already has some keys expired so the pins are added here.

@Kixunil Kixunil force-pushed the pin-packages branch 28 times, most recently from 6da62d2 to 5d46846 Compare December 18, 2023 21:22
The previous version of Debcrafter didn't catch these mistakes. Now they
were discovered and fixed.
Verifying signatures is not that great because when the keys expire the
build is broken. We instead pin the packages while still being able to
verify when the pin is updated. This already has some keys expired so
the pins are added here.
The tests were previously running even when build failed which was
useless and wasteful. This switches it to run only on success.
CI was building packages one after another in a single VM. This is slow,
has the risk of one package affecting another and makes it harder to
figure out which job failed. This change adds a preparation job which
builds the image and gets the list of packages and changes build job
into matrix depending on the prepare job.
When a service fails to start the maintainerscript would only print a
help, not full log. This is annoying when testing in CI as there's no
way to do that and even in case of local tests it's just one more step.

This change adds a check that would print the log for service packages.
Although it won't show anything if the failure happened before starting,
this is OK, it's just debug info.
@Kixunil Kixunil force-pushed the pin-packages branch 4 times, most recently from 66b9552 to 4d2cc76 Compare January 3, 2024 15:25
Previously imported files had to specified twice - in `build_rules` and
in `sps` files. This uses the new debcrafter feature to avoid it and
prepares for heavier CI caching.
`lnd-genmacaroon` doesn't use these, it's probably some copy-paste
mistake.
@Kixunil Kixunil force-pushed the pin-packages branch 2 times, most recently from 25636dc to c3ddace Compare January 3, 2024 16:46
Previously caching was only implemented for container image building but
not for packages which still took a huge time to rebuild. This
implements caching so that packages that didn't change aren't rebuilt.
@Kixunil
Copy link
Collaborator Author

Kixunil commented Jan 3, 2024

Screw it, it works in every other testing environment. Probably something to do with containers...

@Kixunil Kixunil merged commit f34ff6f into master Jan 3, 2024
58 of 62 checks passed
@Kixunil Kixunil deleted the pin-packages branch January 3, 2024 18:40
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.

1 participant