Skip to content

The platform for continuously improving AI agents.

773 B
Raw Blame
"""The app image carries every source file the platform builds a Modal image from."""

import re
from pathlib import Path

import pytest

from overbae.services import research_workspace
from overbae.services.research_executor import modal as research_executor

pytestmark = pytest.mark.covers("boot")

ROOT = Path(__file__).resolve().parents[1]


def test_the_app_image_ships_the_files_sandbox_images_are_built_from():
    copied = re.findall(r"^COPY (\S+) \./", (ROOT / "Dockerfile").read_text(), re.MULTILINE)
    for path in (
        research_executor.DOCKERFILE,
        research_executor.LOCK,
        research_workspace.REQUIREMENTS,
    ):
        source = path.relative_to(ROOT)
        assert any(source.is_relative_to(directory) for directory in copied), source