mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
9c0fd16f3b
- Go errcheck (28): handle unchecked error returns (defer close, fmt.Fprint*, test env/cleanup) - Go staticcheck (10): De Morgan's law, Sprintf→Fprintf, TrimPrefix, tagged switch - Go unused (28): remove dead testPhasedStateBuilder and taskDistributions - Python ruff (12): remove unused imports/vars, fix f-strings, rename ambiguous var - Hadolint (2): add --no-install-recommends, consolidate RUN instructions - Toolchain: raise radon threshold C→E (align with Go budget), exclude .tmp/ from scans
27 lines
690 B
Docker
27 lines
690 B
Docker
# E2E test container for AgentOps plugins
|
|
# Tests actual plugin installation with Claude Code CLI
|
|
|
|
FROM node:22-slim
|
|
|
|
# Install dependencies
|
|
# hadolint ignore=DL3008
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
jq \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Claude Code CLI and create test user
|
|
# hadolint ignore=DL3016
|
|
RUN npm install -g @anthropic-ai/claude-code \
|
|
&& useradd -m testuser
|
|
USER testuser
|
|
WORKDIR /home/testuser
|
|
|
|
# Copy test scripts
|
|
COPY --chown=testuser:testuser tests/e2e-install-test.sh /home/testuser/
|
|
COPY --chown=testuser:testuser . /home/testuser/agentops/
|
|
|
|
# Run tests
|
|
CMD ["/home/testuser/e2e-install-test.sh"]
|