Keep K3 suite selection and report-schema scoring in bash, merge K3/vision dataset_args into dpv4 yamls, and pin EvalScope at 735d920ee911 with local patches. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
601 B
Python
17 lines
601 B
Python
"""Tests for content-hashed Docker image helpers."""
|
|
|
|
from pathlib import Path
|
|
|
|
from evalscope.api.sandbox import hash_build_context
|
|
|
|
|
|
def test_hash_build_context_changes_for_source_and_cache_key(tmp_path: Path):
|
|
source = tmp_path / 'runtime.py'
|
|
source.write_text('VERSION = 1\n')
|
|
initial_hash = hash_build_context(str(tmp_path), cache_key_parts=['runtime=v1'])
|
|
|
|
source.write_text('VERSION = 2\n')
|
|
|
|
assert hash_build_context(str(tmp_path), cache_key_parts=['runtime=v1']) != initial_hash
|
|
assert hash_build_context(str(tmp_path), cache_key_parts=['runtime=v2']) != initial_hash
|