fix: ensure the LXC template does not have obsolete APT #102

Merged
earl-warren merged 2 commits from earl-warren/act:wip-apt-old into main 2025-01-29 10:02:37 +00:00
Contributor
Includes an upgrade to https://code.forgejo.org/forgejo/lxc-helpers/src/tag/v1.0.3 which contains the foundations of this fix https://code.forgejo.org/forgejo/lxc-helpers/pulls/31/files The test verifying it actually works is at https://code.forgejo.org/forgejo/end-to-end/src/branch/main/actions/example-lxc
Contributor

cascading-pr updated at forgejo/runner#466

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/466
viceice left a comment
Owner

otherwise LGTM

otherwise LGTM
@ -8,3 +8,3 @@
LXC_CONTAINER_CONFIG_ALL="unprivileged lxc libvirt docker k8s"
LXC_CONTAINER_CONFIG_DEFAULT="lxc libvirt docker"
LXC_IPV6_PREFIX_DEFAULT="fc15"
LXC_IPV6_PREFIX_DEFAULT="fd15"

why this? 🤔

why this? 🤔
Author
Contributor

forgejo/lxc-helpers#29

because I incorrectly thought fc was not a unique local address 🤔 My bad.

https://code.forgejo.org/forgejo/lxc-helpers/pulls/29 because I incorrectly thought fc was not a unique local address 🤔 My bad.
Author
Contributor
https://code.forgejo.org/forgejo/act/compare/5430b01366f6786583d31936c43da9e7b880fc8c..86fb21a205fa0dae47dea7656c2f92c2988697cb
- #103
earl-warren marked this conversation as resolved
viceice approved these changes 2025-01-29 07:03:12 +00:00
Dismissed
viceice left a comment
Owner

why not simply call apt update when outdated?

why not simply call `apt update` when outdated?
Author
Contributor

That was my first idea. But there may be more to keeping a template up to date than just apt. The motivation is apt being obsolete: it has caused actual breakage in the past. This solution also covers potential updates in other areas. I don't know if there are any and I'm happy not figuring that out.

In short this is a more general solution where APT is a sign of a template not being up to date and the solution is to re-create.

Does that sound sensible?

That was my first idea. But there may be more to keeping a template up to date than just apt. The motivation is apt being obsolete: it has caused actual breakage in the past. This solution also covers potential updates in other areas. I don't know if there are any and I'm happy not figuring that out. In short this is a more general solution where APT is a sign of a template not being up to date and the solution is to re-create. Does that sound sensible?
earl-warren force-pushed wip-apt-old from 5430b01366
All checks were successful
checks / unit (pull_request) Successful in 1m16s
checks / integration (pull_request) Successful in 28s
/ cascade (pull_request_target) Successful in 32m4s
to 86fb21a205
All checks were successful
checks / unit (pull_request) Successful in 1m2s
checks / integration (pull_request) Successful in 42s
/ cascade (pull_request_target) Successful in 38m5s
2025-01-29 07:44:01 +00:00
Compare
earl-warren dismissed viceice's review 2025-01-29 07:44:01 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Contributor

cascading-pr updated at forgejo/runner#466

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/466
viceice approved these changes 2025-01-29 07:46:35 +00:00
Dismissed
viceice left a comment
Owner

makes sense.

you dropped the ipv6 change here?

makes sense. you dropped the ipv6 change here?
Author
Contributor

@viceice wrote in #102 (comment):

makes sense.

you dropped the ipv6 change here?

Yes. And in lxc-helpers too, reverted.

@viceice wrote in https://code.forgejo.org/forgejo/act/pulls/102#issuecomment-31461: > makes sense. > > you dropped the ipv6 change here? Yes. And in lxc-helpers too, reverted.
viceice dismissed viceice's review 2025-01-29 08:29:17 +00:00
Reason:

Should not be merged as is

earl-warren changed title from fix: ensure the LXC template does not have obsolete APT to WIP: fix: ensure the LXC template does not have obsolete APT 2025-01-29 08:38:09 +00:00
earl-warren force-pushed wip-apt-old from 86fb21a205
All checks were successful
checks / unit (pull_request) Successful in 1m2s
checks / integration (pull_request) Successful in 42s
/ cascade (pull_request_target) Successful in 38m5s
to 4b0aa114c6
Some checks failed
checks / unit (pull_request) Successful in 1m3s
checks / integration (pull_request) Successful in 31s
/ cascade (pull_request_target) Failing after 22s
2025-01-29 09:30:19 +00:00
Compare
Contributor

cascading-pr updated at forgejo/runner#466

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/466
Author
Contributor

86fb21a205..4b0aa114c6

switch back to using fd*

https://code.forgejo.org/forgejo/act/compare/86fb21a205fa0dae47dea7656c2f92c2988697cb..4b0aa114c685aed31d0038c110fc02a78bf02205 switch back to using fd*
earl-warren changed title from WIP: fix: ensure the LXC template does not have obsolete APT to fix: ensure the LXC template does not have obsolete APT 2025-01-29 09:32:44 +00:00
viceice approved these changes 2025-01-29 09:36:30 +00:00
earl-warren scheduled this pull request to auto merge when all checks succeed 2025-01-29 09:50:19 +00:00
earl-warren deleted branch wip-apt-old 2025-01-29 10:02:37 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/act!102
No description provided.