test(tailscale): let apt reuse downloaded packages in the default scenario #440
Open
Claude
wants to merge 1 commits from
test/tailscale-reuse-debs into main
pull from: test/tailscale-reuse-debs
merge into: Mortis:main
Mortis:main
Mortis:ci/molecule-shared-config
Mortis:ci/molecule-pipelining
Mortis:feat/traefik-release-url
Mortis:feat/apt-cache-valid-time
Mortis:feat/cloudflared-lookup-delay
Mortis:renovate/git.rkdr.net-mortis-molecule-ubuntu2404-0.x
Mortis:feat/400-skip-upgrade-during-vzdump
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Needs Triage
Maintainer needs to evaluate this issue
Status
Ready for Agent
Fully specified, ready for an AFK agent
Status
Ready for Human
Requires human implementation
Wayfinder
Grilling
Decision ticket resolved in conversation with the maintainer
Wayfinder
Map
Wayfinder map: index of a planning effort and its decision tickets
Wayfinder
Prototype
Decision ticket resolved by reacting to a rough concrete artifact
Wayfinder
Research
Decision ticket resolved by reading outside sources
Wayfinder
Task
Manual work that must happen before a decision can be made
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Kamino#440
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
Closes #427
The tailscale
defaultscenario installs tailscale from pkgs.tailscale.com in converge, then downgrades, updates and reinstalls it in verify. The Ubuntu base image of both molecule images ships/etc/apt/apt.conf.d/docker-clean, which deletes every downloaded.debafter each install. So each of those steps downloads the package again. A newprepare.ymlremoves that file so apt reuses the cached.debs. The real install from the repository stays, because verify asserts the package comes from there. apt still checks a cached.debagainst the repository's hashes before installing it. Estimated effect: about 5 tailscale downloads per host drop to 2 (the candidate and the older version). This is an estimate, not a measurement.Verified
test_sequencealready includesprepare.docker-cleanis present in the root layer of both pinned base images (ubuntu:24.04 and ubuntu:26.04), and neither molecule Dockerfile removes it.ansible-playbook --syntax-checkpasses on the scenario's prepare, converge and verify playbooks.pre-commit run --files roles/tailscale/molecule/default/prepare.ymlpasses (yamllint, ansible-lint, REUSE, gitleaks);ansible-test sanity(pre-push) passed.python3 -m unittest discover -s tests/scripts: 273 tests OK.apt-cache policyreads the lists and dpkg status, notarchives/); the role's install, downgrade, update and removal paths still run; the persistedpkgcache.binis rebuilt by apt whenever lists or sources change.Not verified
NOTICEandREUSE.toml, or there is none.Assisted-by: Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.