Skip to content

Add unzip utility to base sandbox container image #9460

Open

Description

@fullsend-ai-retro

What happened

In workflow run 43378309925 (Code agent on Issue #3), the agent attempted to install Chromium for test execution using npx puppeteer browsers install chrome. The command threw an error: Extraction failed: no zip archiver is available. Install unzip (or tar.exe/Powershell on Windows), or add the optional yauzl dependency. Inspection of the container revealed that tar, gzip, bzip2, and xz were available on PATH, but unzip was missing from images/sandbox/Containerfile. Because the sandbox runs as unprivileged user sandbox (UID 998) with read-only root filesystems, the agent could not run apt-get install unzip. The agent spent multiple tool turns inspecting PATH permissions and writing a custom Python-based CLI polyfill at /sandbox/.venv/bin/unzip implementing -o and -d flags via Python's zipfile module before Chrome could be extracted.

What could go better

Standard archive utilities like unzip are expected in Linux container environments and are required by common Node.js toolchains (such as @puppeteer/browsers on Linux, which exclusively searches for unzip). Missing fundamental utilities forces agents to spend unnecessary reasoning turns diagnosing missing binaries and writing custom polyfills, wasting token budget and risking task failure if the agent fails to polyfill the tool.

Proposed change

In images/sandbox/Containerfile, update the initial package installation step to include unzip alongside jq:

RUN apt-get update \
    && apt-get install -y --no-install-recommends jq unzip \
    && rm -rf /var/lib/apt/lists/*

Validation criteria

Build the sandbox image from images/sandbox/Containerfile and verify that command -v unzip exits with 0. Running npx @puppeteer/browsers install chrome@stable inside the container must successfully unpack the browser archive without raising archiver errors or requiring synthetic polyfills.

Related issues checked

Searched: unzip sandbox Containerfile; zip archiver sandbox; puppeteer chrome sandbox
No overlapping issues found.


Generated by retro agent from ADLC-Day-Of-Learning/linkspector#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions