Skip to content

Restore zip/unzip in ci-tools image#194

Merged
lex57ukr merged 1 commit into
mainfrom
192-ci-tools-restore-zip-unzip
Jul 6, 2026
Merged

Restore zip/unzip in ci-tools image#194
lex57ukr merged 1 commit into
mainfrom
192-ci-tools-restore-zip-unzip

Conversation

@lex57ukr

@lex57ukr lex57ukr commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

The Lua 5.4 rebuild (#189) dropped zip and unzip from ci-tools:latest, breaking downstream bats suites that assemble and inspect archive-format fixtures (ODT/DOCX/EPUB). This restores both so the image honors its tool contract again.

Related Issues

Fixes #192

Changes

  • Request zip and unzip explicitly in the final-stage apt block. They had only ever been present as transitive deps of luarocks, which Migrate ci-tools to Lua 5.4 and eliminate kernel-header CVEs #189 moved to the throwaway builder stage — so they silently disappeared.
  • Assert both in scripts/ci-tools/verify.sh so a future dependency shuffle fails make verify instead of surfacing downstream as status 127.
  • List both in the README tool inventory.

Further Comments

Verified by inspection against the pre-5.4 Dockerfile, which confirms luarocks/gcc (and their transitive zip/unzip) lived in the final image before #189. The live check runs in publish.yml, which builds the updated image single-platform and runs make verify against it. PR CI's lint/bats jobs run inside the stale published image but don't touch these tools.

The 5.4 rebuild (#189) moved luarocks and gcc to the throwaway builder
stage. zip and unzip had only ever been present as transitive apt deps of
luarocks in the final image, so they silently dropped out.

Both are part of the tool contract downstream bats suites depend on to
assemble and inspect archive-format fixtures (ODT/DOCX/EPUB); their absence
surfaces as `zip: command not found` (status 127). Request them explicitly
so a future dependency shuffle can't drop them again, assert them in
verify.sh, and list them in the README tool inventory.
@lex57ukr lex57ukr added bug Something isn't working docker Docker image changes labels Jul 6, 2026
@lex57ukr lex57ukr enabled auto-merge (squash) July 6, 2026 02:57
@lex57ukr lex57ukr merged commit 059aa69 into main Jul 6, 2026
9 checks passed
@lex57ukr lex57ukr deleted the 192-ci-tools-restore-zip-unzip branch July 6, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working docker Docker image changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci-tools: 5.4 rebuild dropped zip/unzip — bats archive tests fail (127)

1 participant