feat: add Docker-based evolution testing with precise measurements
- Add docker/evolution-test/Dockerfile with bun, TypeScript - Add docker/evolution-test/docker-compose.yml for parallel workflow testing - Add run-evolution-test.sh and .bat scripts for cross-platform - Update pipeline-judge.md with Docker-first approach: - Millisecond precision timing (date +%s%3N) - 2 decimal places for test pass rate and coverage - Docker container for consistent test environment - Multiple workflow types (feature/bugfix/refactor/security) Enables: - Parallel testing with docker-compose - Consistent environment across machines - Precise fitness measurements (ms, 2 decimals) - Multi-workflow testing in containers
This commit is contained in:
25
docker/evolution-test/Dockerfile
Normal file
25
docker/evolution-test/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
# Evolution Test Container
|
||||
# Used for testing pipeline-judge fitness scoring with precise measurements
|
||||
|
||||
FROM oven/bun:1 AS base
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install TypeScript and testing tools
|
||||
RUN bun add -g typescript @types/node
|
||||
|
||||
# Copy project files
|
||||
COPY . /app/
|
||||
|
||||
# Install dependencies
|
||||
RUN bun install
|
||||
|
||||
# Create logs directory
|
||||
RUN mkdir -p .kilo/logs
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s \
|
||||
CMD bun test --reporter=json || exit 1
|
||||
|
||||
# Default command - run tests with precise timing
|
||||
CMD ["bun", "test", "--reporter=json"]
|
||||
Reference in New Issue
Block a user