Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,4 +182,5 @@ cython_debug/
.DS_Store
.vscode/
src/assetopsbench/sample_data/bulk_docs.json
benchmark/cods_track1/.env.local
benchmark/cods_track1/.env.local

Empty file modified benchmark/entrypoint.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/assetopsbench/core/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from typing import List, Iterator, Dict, Any
from pydantic import ValidationError

from scenarios import Scenario
from assetopsbench.core.scenarios import Scenario

def read_json_file(file_path: pathlib.Path) -> List[Dict[str, Any]]:
"""Read and parse JSON file, handling both arrays and single objects."""
Expand Down
26 changes: 26 additions & 0 deletions tests/Dockerfile.minimal
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Minimal Dockerfile for running AssetOpsBench tests
FROM python:3.12-slim

# Set working directory
WORKDIR /app

# Install minimal system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*

# Copy and install minimal test requirements
COPY tests/test_requirements.txt /tmp/test_requirements.txt
RUN pip install --no-cache-dir -r /tmp/test_requirements.txt

# Copy the entire project
COPY . /app/

# Set Python path to include src directory
ENV PYTHONPATH=/app/src:$PYTHONPATH

# Make test scripts executable
RUN chmod +x tests/run_tests.py tests/run_all_tests.py

# Default command: run all tests
CMD ["python", "tests/run_all_tests.py"]
25 changes: 25 additions & 0 deletions tests/Dockerfile.simple
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Simple Dockerfile for running AssetOpsBench tests
FROM python:3.12-slim

# Set working directory
WORKDIR /app

# Install minimal system dependencies
RUN apt-get update && apt-get install -y \
git \
&& rm -rf /var/lib/apt/lists/*

# Install only the essential Python dependencies for testing
RUN pip install --no-cache-dir pydantic pathlib

# Copy the entire project
COPY . /app/

# Set Python path to include src directory
ENV PYTHONPATH=/app/src:$PYTHONPATH

# Make test scripts executable
RUN chmod +x tests/run_tests.py tests/run_all_tests.py

# Default command: run all tests
CMD ["python", "tests/run_all_tests.py"]
32 changes: 32 additions & 0 deletions tests/Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Dockerfile for running AssetOpsBench tests
FROM python:3.12-slim

# Set working directory
WORKDIR /app

# Install system dependencies including build tools
RUN apt-get update && apt-get install -y \
git \
curl \
build-essential \
g++ \
gcc \
make \
python3-dev \
&& rm -rf /var/lib/apt/lists/*

# Copy requirements and install Python dependencies
COPY benchmark/basic_requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

# Copy the entire project
COPY . /app/

# Set Python path to include src directory
ENV PYTHONPATH=/app/src:$PYTHONPATH

# Make test scripts executable
RUN chmod +x tests/run_tests.py tests/run_all_tests.py

# Default command: run all tests
CMD ["python", "tests/run_all_tests.py"]
Loading