Add paired main/full content requirements for 530 frozen tasks (#6)
Browse files- Add paired main/full content requirements for 530 frozen tasks (9ddbdad2f6fd90921e31ba2db4902cbdd96772ec)
- Preserve v2.2.0 metadata and validate annotation cohorts separately (5f15e1e4cf6477b81395fee89ffeecb01fd5cdfb)
- Bind annotation publication to its uploaded source revision (0bb8b410a3836c605f5cf3828e0a30faa41a006c)
- fix: integrate v2.2.0 and remove duplicate annotation viewer (048b9962c11ee8518374133203275c306bedb888)
- fix: bind scope annotations to merged Webstone and register publication inputs (289f9011155d322adc68676e94839ac21448e530)
- fix: publish selectable paired content scope annotations (3feb3ff7d8cc8695edbd0a62979dd09e2231469f)
- docs: explain the frozen input default content scope (6ae0fc167a4f3c6228703e7ab75c574bd1accb34)
- Restore original suite order and link merged Webstone PR #268 (5bf15bc6200990c7ea852b54ee22ead190b9ab9f)
- README.md +21 -0
- definitions.tar.gz +2 -2
- definitions/evaluation/content-scopes-530/annotation-provenance.json +0 -0
- definitions/evaluation/content-scopes-530/dataset-catalog.json +0 -0
- definitions/evaluation/content-scopes-530/source-inputs.json +13 -0
- definitions/evaluation/content-scopes-530/tasks.json +0 -0
- definitions/registry.json +20 -0
- manifest.json +30 -9
- tools/rebuild_publication.py +16 -0
- tools/test_content_scopes.py +26 -0
- tools/test_rebuild_publication.py +20 -0
- tools/test_review_scope.py +6 -1
|
@@ -346,3 +346,24 @@ Cite Webstone and record the exact dataset revision used in your experiment. The
|
|
| 346 |
url = {https://github.com/lexmount/webstone}
|
| 347 |
}
|
| 348 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 346 |
url = {https://github.com/lexmount/webstone}
|
| 347 |
}
|
| 348 |
```
|
| 349 |
+
|
| 350 |
+
## Main and full content annotations
|
| 351 |
+
|
| 352 |
+
`content-scopes-530` adds paired `main` and `full` acceptance profiles for the
|
| 353 |
+
existing 530-task `primary-content-20261103` population. It is a separate suite
|
| 354 |
+
selection; the released default population remains 550 tasks with its original
|
| 355 |
+
requirements. Existing tasks, viewer configurations and reference inputs are retained.
|
| 356 |
+
|
| 357 |
+
The cohort is scored by Webstone [`1287fdf8`](https://github.com/lexmount/webstone/commit/1287fdf859aaac56129933024abdf1246afbcfb7),
|
| 358 |
+
merged from [Webstone PR #268](https://github.com/lexmount/webstone/pull/268).
|
| 359 |
+
Export it with `lexbench-webfetch export --suite content-scopes-530 --source
|
| 360 |
+
<approved-input-directory> --output <new-directory>`. The approved input directory
|
| 361 |
+
must contain the frozen `dataset.json` bound by this suite's `source-inputs.json`.
|
| 362 |
+
Public reference hashes do not replace those inputs.
|
| 363 |
+
|
| 364 |
+
Use `webstone validate --dataset <exported-dataset.json>
|
| 365 |
+
--content-scope main` or `--content-scope full` before a run. Each run selects one
|
| 366 |
+
scope. The approved input bound by this cohort declares `main` as its default.
|
| 367 |
+
An explicit option overrides a saved scope; annotated tasks without a saved scope
|
| 368 |
+
fall back to `full`. Older suites keep their original rules. The existing manifest tooling pin still describes the
|
| 369 |
+
released edition; the cohort's `implementation` field identifies its scoring code.
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:62e18ebeec769624fabe696d6d571746a66278657f67de64a03fbecdc6fb2a19
|
| 3 |
+
size 6909656
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"catalog": "dataset-catalog.json",
|
| 3 |
+
"catalog_sha256": "f3874d8508e4c2d0986c04bc631e17ffd53c1d9385dad1d8b4765e510410644b",
|
| 4 |
+
"dataset": "dataset.json",
|
| 5 |
+
"dataset_sha256": "d92958eb95352e72c3774e02df638c52b15b8f325d4713aa1a1eab2072b0e298",
|
| 6 |
+
"files": {
|
| 7 |
+
"dataset.json": "d92958eb95352e72c3774e02df638c52b15b8f325d4713aa1a1eab2072b0e298"
|
| 8 |
+
},
|
| 9 |
+
"id": "webfetch-content-scopes-530-d92958eb9535",
|
| 10 |
+
"kind": "frozen_reference_inputs",
|
| 11 |
+
"schema_version": 2,
|
| 12 |
+
"trees": {}
|
| 13 |
+
}
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -55,6 +55,26 @@
|
|
| 55 |
"dataset-catalog.json": "8e413e683c309674abf3d297df3f378e76d65ead1e2aa343828e4b0e1d90764a",
|
| 56 |
"source-inputs.json": "0d9c729f14dae8abb3323a2cf4734736c4733957c9d74d5484033d204642b91b"
|
| 57 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
}
|
| 59 |
]
|
| 60 |
}
|
|
|
|
| 55 |
"dataset-catalog.json": "8e413e683c309674abf3d297df3f378e76d65ead1e2aa343828e4b0e1d90764a",
|
| 56 |
"source-inputs.json": "0d9c729f14dae8abb3323a2cf4734736c4733957c9d74d5484033d204642b91b"
|
| 57 |
}
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"id": "content-scopes-530",
|
| 61 |
+
"dataset_id": "webfetch-content-scopes-530",
|
| 62 |
+
"case_count": 530,
|
| 63 |
+
"directory": "evaluation/content-scopes-530",
|
| 64 |
+
"files": {
|
| 65 |
+
"annotation-provenance.json": "1d414d610700e737f492cf192b2202a1d9f5eeffc17904007e0aac0c644b3a20",
|
| 66 |
+
"dataset-catalog.json": "f3874d8508e4c2d0986c04bc631e17ffd53c1d9385dad1d8b4765e510410644b",
|
| 67 |
+
"source-inputs.json": "c76b829b994e8f9cc15cbc1a05018f2cb5135dee6e6f9144e5e3b014434fdbbc",
|
| 68 |
+
"tasks.json": "6ae76832f1594e410ab36371c7841a5bd6b4fa65dab39bd6496a8f07c5b22b85"
|
| 69 |
+
},
|
| 70 |
+
"kind": "annotation_cohort",
|
| 71 |
+
"source_population": "primary-content-20261103",
|
| 72 |
+
"implementation": {
|
| 73 |
+
"pull_request": 268,
|
| 74 |
+
"repository": "https://github.com/lexmount/webstone",
|
| 75 |
+
"revision": "1287fdf859aaac56129933024abdf1246afbcfb7",
|
| 76 |
+
"state": "merged"
|
| 77 |
+
}
|
| 78 |
}
|
| 79 |
]
|
| 80 |
}
|
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"archive": {
|
| 3 |
"path": "definitions.tar.gz",
|
| 4 |
-
"sha256": "
|
| 5 |
-
"size":
|
| 6 |
},
|
| 7 |
"datasets": {
|
| 8 |
"access-restrictions": {
|
|
@@ -15,6 +15,11 @@
|
|
| 15 |
"path": "evaluation/articles/tasks.json",
|
| 16 |
"sha256": "171241ea0bf3cb3f9482de14a7201885733fa717af56d7ea2b28d86a4516a3bb"
|
| 17 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
"dynamic-content": {
|
| 19 |
"count": 100,
|
| 20 |
"path": "evaluation/dynamic-content-100-moli-webfetch/tasks.json",
|
|
@@ -90,12 +95,12 @@
|
|
| 90 |
"size": 43
|
| 91 |
},
|
| 92 |
"THIRD_PARTY.md": {
|
| 93 |
-
"sha256": "
|
| 94 |
-
"size":
|
| 95 |
},
|
| 96 |
"VERSIONING.md": {
|
| 97 |
-
"sha256": "
|
| 98 |
-
"size":
|
| 99 |
},
|
| 100 |
"data/access-restrictions.jsonl": {
|
| 101 |
"sha256": "fc4e0a67760198b3001e85ef8c47062e97243a7072c69a6fd34f96063fd2fca3",
|
|
@@ -193,6 +198,22 @@
|
|
| 193 |
"sha256": "171241ea0bf3cb3f9482de14a7201885733fa717af56d7ea2b28d86a4516a3bb",
|
| 194 |
"size": 1079224
|
| 195 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
"definitions/evaluation/dataset-catalog.json": {
|
| 197 |
"sha256": "994fa53f7fc7c3170692a7bb493ebc5af9ad8ffb5b576c022fa123e6e6fb3838",
|
| 198 |
"size": 100357
|
|
@@ -362,13 +383,13 @@
|
|
| 362 |
"size": 50741
|
| 363 |
},
|
| 364 |
"definitions/registry.json": {
|
| 365 |
-
"sha256": "
|
| 366 |
-
"size":
|
| 367 |
}
|
| 368 |
},
|
| 369 |
"schema": "browser-eval-dataset-release/1",
|
| 370 |
"source_repository": "https://huggingface.co/datasets/Lexmount/LexBench-Web-Fetch",
|
| 371 |
-
"source_revision": "
|
| 372 |
"track": "webfetch",
|
| 373 |
"viewer": {
|
| 374 |
"configurations": [
|
|
|
|
| 1 |
{
|
| 2 |
"archive": {
|
| 3 |
"path": "definitions.tar.gz",
|
| 4 |
+
"sha256": "62e18ebeec769624fabe696d6d571746a66278657f67de64a03fbecdc6fb2a19",
|
| 5 |
+
"size": 6909656
|
| 6 |
},
|
| 7 |
"datasets": {
|
| 8 |
"access-restrictions": {
|
|
|
|
| 15 |
"path": "evaluation/articles/tasks.json",
|
| 16 |
"sha256": "171241ea0bf3cb3f9482de14a7201885733fa717af56d7ea2b28d86a4516a3bb"
|
| 17 |
},
|
| 18 |
+
"content-scopes-530": {
|
| 19 |
+
"count": 530,
|
| 20 |
+
"path": "evaluation/content-scopes-530/tasks.json",
|
| 21 |
+
"sha256": "6ae76832f1594e410ab36371c7841a5bd6b4fa65dab39bd6496a8f07c5b22b85"
|
| 22 |
+
},
|
| 23 |
"dynamic-content": {
|
| 24 |
"count": 100,
|
| 25 |
"path": "evaluation/dynamic-content-100-moli-webfetch/tasks.json",
|
|
|
|
| 95 |
"size": 43
|
| 96 |
},
|
| 97 |
"THIRD_PARTY.md": {
|
| 98 |
+
"sha256": "128f9a608d95e540b0d2d13b3e4bb07af6b67422902bb82355156c2a6c66c3a5",
|
| 99 |
+
"size": 2084
|
| 100 |
},
|
| 101 |
"VERSIONING.md": {
|
| 102 |
+
"sha256": "6d17c2869b68ce7d433272ffa6cbcfeba5b8f56a1c358c4eef53cc4a74e4b121",
|
| 103 |
+
"size": 4913
|
| 104 |
},
|
| 105 |
"data/access-restrictions.jsonl": {
|
| 106 |
"sha256": "fc4e0a67760198b3001e85ef8c47062e97243a7072c69a6fd34f96063fd2fca3",
|
|
|
|
| 198 |
"sha256": "171241ea0bf3cb3f9482de14a7201885733fa717af56d7ea2b28d86a4516a3bb",
|
| 199 |
"size": 1079224
|
| 200 |
},
|
| 201 |
+
"definitions/evaluation/content-scopes-530/annotation-provenance.json": {
|
| 202 |
+
"sha256": "1d414d610700e737f492cf192b2202a1d9f5eeffc17904007e0aac0c644b3a20",
|
| 203 |
+
"size": 527178
|
| 204 |
+
},
|
| 205 |
+
"definitions/evaluation/content-scopes-530/dataset-catalog.json": {
|
| 206 |
+
"sha256": "f3874d8508e4c2d0986c04bc631e17ffd53c1d9385dad1d8b4765e510410644b",
|
| 207 |
+
"size": 419480
|
| 208 |
+
},
|
| 209 |
+
"definitions/evaluation/content-scopes-530/source-inputs.json": {
|
| 210 |
+
"sha256": "c76b829b994e8f9cc15cbc1a05018f2cb5135dee6e6f9144e5e3b014434fdbbc",
|
| 211 |
+
"size": 477
|
| 212 |
+
},
|
| 213 |
+
"definitions/evaluation/content-scopes-530/tasks.json": {
|
| 214 |
+
"sha256": "6ae76832f1594e410ab36371c7841a5bd6b4fa65dab39bd6496a8f07c5b22b85",
|
| 215 |
+
"size": 10045875
|
| 216 |
+
},
|
| 217 |
"definitions/evaluation/dataset-catalog.json": {
|
| 218 |
"sha256": "994fa53f7fc7c3170692a7bb493ebc5af9ad8ffb5b576c022fa123e6e6fb3838",
|
| 219 |
"size": 100357
|
|
|
|
| 383 |
"size": 50741
|
| 384 |
},
|
| 385 |
"definitions/registry.json": {
|
| 386 |
+
"sha256": "da8a56b46c0419134fc954599bdf4bf6762a7459e1c94e24708b4ef1eaaec323",
|
| 387 |
+
"size": 3310
|
| 388 |
}
|
| 389 |
},
|
| 390 |
"schema": "browser-eval-dataset-release/1",
|
| 391 |
"source_repository": "https://huggingface.co/datasets/Lexmount/LexBench-Web-Fetch",
|
| 392 |
+
"source_revision": "6ae0fc167a4f3c6228703e7ab75c574bd1accb34",
|
| 393 |
"track": "webfetch",
|
| 394 |
"viewer": {
|
| 395 |
"configurations": [
|
|
@@ -68,6 +68,19 @@ def publication_files(root):
|
|
| 68 |
return files
|
| 69 |
|
| 70 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
def rebuild(root, source_revision):
|
| 72 |
if not re.fullmatch(r'[0-9a-f]{40}', source_revision):
|
| 73 |
raise ValueError('Use a full uploaded source commit, not a local label')
|
|
@@ -80,6 +93,7 @@ def rebuild(root, source_revision):
|
|
| 80 |
manifest['files'] = {name: {'sha256': sha(raw), 'size': len(raw)}
|
| 81 |
for name, raw in sorted(files.items())}
|
| 82 |
manifest['source_revision'] = source_revision
|
|
|
|
| 83 |
# Restore the exact edition object after rebuilding hashes; never invent a tag.
|
| 84 |
manifest['edition'] = edition
|
| 85 |
buffer = io.BytesIO()
|
|
@@ -112,6 +126,8 @@ def check(root):
|
|
| 112 |
raw = path.read_bytes()
|
| 113 |
if sha(raw) != binding['sha256'] or len(raw) != binding['size']:
|
| 114 |
raise ValueError('Changed publication file: ' + name)
|
|
|
|
|
|
|
| 115 |
raw = (root / 'definitions.tar.gz').read_bytes()
|
| 116 |
if sha(raw) != manifest['archive']['sha256'] or len(raw) != manifest['archive']['size']:
|
| 117 |
raise ValueError('Changed definitions archive')
|
|
|
|
| 68 |
return files
|
| 69 |
|
| 70 |
|
| 71 |
+
|
| 72 |
+
def dataset_bindings(root):
|
| 73 |
+
registry = json.loads((root / 'definitions/registry.json').read_text())
|
| 74 |
+
datasets = {}
|
| 75 |
+
for row in registry['suites']:
|
| 76 |
+
path = (Path(row['directory']) / 'tasks.json').as_posix()
|
| 77 |
+
raw = (root / 'definitions' / path).read_bytes()
|
| 78 |
+
if sha(raw) != row['files']['tasks.json'] or row['id'] in datasets:
|
| 79 |
+
raise ValueError('Invalid registry dataset bindings')
|
| 80 |
+
datasets[row['id']] = {'path': path, 'sha256': sha(raw), 'count': row['case_count']}
|
| 81 |
+
return datasets
|
| 82 |
+
|
| 83 |
+
|
| 84 |
def rebuild(root, source_revision):
|
| 85 |
if not re.fullmatch(r'[0-9a-f]{40}', source_revision):
|
| 86 |
raise ValueError('Use a full uploaded source commit, not a local label')
|
|
|
|
| 93 |
manifest['files'] = {name: {'sha256': sha(raw), 'size': len(raw)}
|
| 94 |
for name, raw in sorted(files.items())}
|
| 95 |
manifest['source_revision'] = source_revision
|
| 96 |
+
manifest['datasets'] = dataset_bindings(root)
|
| 97 |
# Restore the exact edition object after rebuilding hashes; never invent a tag.
|
| 98 |
manifest['edition'] = edition
|
| 99 |
buffer = io.BytesIO()
|
|
|
|
| 126 |
raw = path.read_bytes()
|
| 127 |
if sha(raw) != binding['sha256'] or len(raw) != binding['size']:
|
| 128 |
raise ValueError('Changed publication file: ' + name)
|
| 129 |
+
if manifest.get('datasets') != dataset_bindings(root):
|
| 130 |
+
raise ValueError('Manifest dataset bindings differ from the registry')
|
| 131 |
raw = (root / 'definitions.tar.gz').read_bytes()
|
| 132 |
if sha(raw) != manifest['archive']['sha256'] or len(raw) != manifest['archive']['size']:
|
| 133 |
raise ValueError('Changed definitions archive')
|
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Annotation cohorts add acceptance scopes without changing the released population."""
|
| 2 |
+
from pathlib import Path
|
| 3 |
+
import json
|
| 4 |
+
import unittest
|
| 5 |
+
from test_review_scope import suite_dirs
|
| 6 |
+
|
| 7 |
+
ROOT = Path(__file__).resolve().parents[1]
|
| 8 |
+
|
| 9 |
+
class ContentScopesTests(unittest.TestCase):
|
| 10 |
+
def test_annotations_reuse_population_and_preserve_both_scopes(self):
|
| 11 |
+
tasks = json.loads((ROOT/'definitions/evaluation/content-scopes-530/tasks.json').read_text())['cases']
|
| 12 |
+
population = json.loads((ROOT/'definitions/populations/primary-content-20261103.json').read_text())
|
| 13 |
+
self.assertEqual(len(tasks), 530)
|
| 14 |
+
self.assertEqual({c['id'] for c in tasks}, {c['suite']+'--'+c['id'] for c in population['cases']})
|
| 15 |
+
for task in tasks:
|
| 16 |
+
self.assertEqual(set(task['content_scopes']) - {'version'}, {'main', 'full'})
|
| 17 |
+
self.assertNotIn('content-scopes-530', suite_dirs())
|
| 18 |
+
self.assertEqual(set(suite_dirs()), set(population['frozen_task_bindings']))
|
| 19 |
+
|
| 20 |
+
def test_annotation_registry_does_not_expand_edition(self):
|
| 21 |
+
manifest = json.loads((ROOT/'manifest.json').read_text())
|
| 22 |
+
self.assertEqual(manifest['edition']['task_count'], 550)
|
| 23 |
+
registry = json.loads((ROOT/'definitions/registry.json').read_text())
|
| 24 |
+
entry = next(s for s in registry['suites'] if s['id']=='content-scopes-530')
|
| 25 |
+
self.assertEqual(entry['kind'], 'annotation_cohort')
|
| 26 |
+
self.assertEqual(entry['source_population'], 'primary-content-20261103')
|
|
@@ -14,6 +14,9 @@ class PublicationTests(unittest.TestCase):
|
|
| 14 |
self.root = Path(self.temp.name)
|
| 15 |
(self.root/'definitions').mkdir()
|
| 16 |
(self.root/'definitions/tasks.json').write_text('{}\n')
|
|
|
|
|
|
|
|
|
|
| 17 |
for name in ['LICENSE','NOTICE','THIRD_PARTY.md','VERSIONING.md']:
|
| 18 |
(self.root/name).write_text(name+'\n')
|
| 19 |
(self.root/'data').mkdir()
|
|
@@ -83,3 +86,20 @@ class PublicationTests(unittest.TestCase):
|
|
| 83 |
|
| 84 |
if __name__=='__main__':
|
| 85 |
unittest.main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
self.root = Path(self.temp.name)
|
| 15 |
(self.root/'definitions').mkdir()
|
| 16 |
(self.root/'definitions/tasks.json').write_text('{}\n')
|
| 17 |
+
registry = {'suites': [{'id': 'test', 'directory': '.', 'case_count': 1,
|
| 18 |
+
'files': {'tasks.json': sha(b'{}\n')}}]}
|
| 19 |
+
(self.root/'definitions/registry.json').write_bytes(encoded(registry))
|
| 20 |
for name in ['LICENSE','NOTICE','THIRD_PARTY.md','VERSIONING.md']:
|
| 21 |
(self.root/name).write_text(name+'\n')
|
| 22 |
(self.root/'data').mkdir()
|
|
|
|
| 86 |
|
| 87 |
if __name__=='__main__':
|
| 88 |
unittest.main()
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
class AnnotationManifestTests(unittest.TestCase):
|
| 92 |
+
setUp = PublicationTests.setUp
|
| 93 |
+
def test_registered_annotation_is_selectable_without_expanding_edition(self):
|
| 94 |
+
manifest = rebuild(self.root, 'a' * 40)
|
| 95 |
+
self.assertEqual(manifest['edition']['task_count'], 1)
|
| 96 |
+
self.assertEqual(manifest['datasets'], {'test': {
|
| 97 |
+
'count': 1, 'path': 'tasks.json', 'sha256': sha(b'{}\n')}})
|
| 98 |
+
|
| 99 |
+
def test_stale_dataset_selection_is_rejected(self):
|
| 100 |
+
rebuild(self.root, 'a' * 40)
|
| 101 |
+
manifest = json.loads((self.root/'manifest.json').read_text())
|
| 102 |
+
manifest['datasets'] = {}
|
| 103 |
+
(self.root/'manifest.json').write_bytes(encoded(manifest))
|
| 104 |
+
with self.assertRaisesRegex(ValueError, 'dataset bindings'):
|
| 105 |
+
check(self.root)
|
|
@@ -18,7 +18,12 @@ QUANTA_NAV = {'Physics', 'Mathematics', 'Biology', 'Computer Science', 'Topics',
|
|
| 18 |
|
| 19 |
def suite_dirs():
|
| 20 |
registry = json.loads((ROOT / 'definitions/registry.json').read_text())
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
def cases(path):
|
|
|
|
| 18 |
|
| 19 |
def suite_dirs():
|
| 20 |
registry = json.loads((ROOT / 'definitions/registry.json').read_text())
|
| 21 |
+
population = json.loads((ROOT / 'definitions/populations/primary-content-20261103.json').read_text())
|
| 22 |
+
parents = set(population['frozen_task_bindings'])
|
| 23 |
+
suites = {row['id']: ROOT / 'definitions' / row.get('directory', row['id']) for row in registry['suites']}
|
| 24 |
+
if not parents.issubset(suites):
|
| 25 |
+
raise ValueError('Frozen revision parent suite is missing')
|
| 26 |
+
return {name: suites[name] for name in parents}
|
| 27 |
|
| 28 |
|
| 29 |
def cases(path):
|