Spaces:
Running
Running
Sync Space from GitHub 698a7ac548e2c8414525dfb0c58acd8c6755a0bd
Browse filesFiles changed (2)
365 unmodified lines366367368369370371365 unmodified linesassert manifest["concurrency"] == 8@pytest.mark.asyncioasync def test_ensure_ddinter_db_downloads_from_github_release(monkeypatch, tmp_path: Path):checks = iter([False, True])365 unmodified lines366367368369370371372373374375376377378365 unmodified linesassert manifest["concurrency"] == 8def test_git_commit_uses_benchmark_env_when_git_metadata_missing(monkeypatch):monkeypatch.setenv("BENCHMARK_GIT_COMMIT", "e9f24645baf2d64a0504ee5b03c7af9f767b74cb")monkeypatch.setattr(run_benchmark.subprocess, "run", lambda *args, **kwargs: (_ for _ in ()).throw(RuntimeError))assert run_benchmark._git_commit() == "e9f24645baf2d64a0504ee5b03c7af9f767b74cb"@pytest.mark.asyncioasync def test_ensure_ddinter_db_downloads_from_github_release(monkeypatch, tmp_path: Path):checks = iter([False, True])
28 unmodified lines2930313233341 unmodified line36373839404128 unmodified linesassert "INTERACTION_DB_TAG" in workflowassert "INTERACTION_DB_SHA256" in workflowassert "BENCHMARK_FORCE_OS_EXIT=1" in workflowassert 'tr -d "\\r\\n"' in workflowassert 'INTERACTION_DB_REPO="$(printf' in workflowassert 'INTERACTION_DB_TAG="$(printf' in workflow1 unmodified lineassert "hf://buckets/SPerva/pillchecker-experiments" in workflowassert 'bucket = os.environ["BENCHMARK_BUCKET"]' in workflowassert "0 < sample_size <= expected_limit" in workflowassert "len(predictions) == sample_size" in workflowfor artifact in ("manifest.json", "results.json", "predictions.jsonl", "errors.jsonl", "summary.md"):28 unmodified lines293031323334351 unmodified line3738394041424328 unmodified linesassert "INTERACTION_DB_TAG" in workflowassert "INTERACTION_DB_SHA256" in workflowassert "BENCHMARK_FORCE_OS_EXIT=1" in workflowassert "BENCHMARK_GIT_COMMIT=${GITHUB_SHA}" in workflowassert 'tr -d "\\r\\n"' in workflowassert 'INTERACTION_DB_REPO="$(printf' in workflowassert 'INTERACTION_DB_TAG="$(printf' in workflow1 unmodified lineassert "hf://buckets/SPerva/pillchecker-experiments" in workflowassert 'bucket = os.environ["BENCHMARK_BUCKET"]' in workflowassert "0 < sample_size <= expected_limit" in workflowassert 'manifest.get("git_commit") not in ("", "0000000", None)' in workflowassert "len(predictions) == sample_size" in workflowfor artifact in ("manifest.json", "results.json", "predictions.jsonl", "errors.jsonl", "summary.md"):
tests/eval/test_run_benchmark.py+7
tests/test_tier1_benchmark_workflow.py+2