Tools read the pinned Minecraft version from research-lock.json
lab.VERSION, lab.GAME (.local/minecraft/<version>) and lab.RESOURCES (.local/horizon-client/<version>) come from the lock, and lab.version_info() reads the pinned client jar's version.json. Every harness, generator and tool that named 26.3 (resource folders, jar and source paths, result records, the vanilla client's --version and asset index, the bare login client's protocol, the benchmark's options.txt data version, the packet id table's header) uses them, so a candidate worktree pinned to another version runs them unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -43,7 +43,7 @@ def main():
|
||||
root.mkdir(parents=True, exist_ok=True)
|
||||
report = root / 'startup-smoke.json'
|
||||
report.unlink(missing_ok=True)
|
||||
resources = resource_fingerprint(root / '26.3')
|
||||
resources = resource_fingerprint(root / lab.VERSION)
|
||||
sources = [lab.ROOT / 'Cargo.toml', lab.ROOT / 'Cargo.lock', Path(__file__).resolve(),
|
||||
lab.ROOT / 'crates/horizon-client/Cargo.toml', lab.ROOT / 'crates/horizon-assets/Cargo.toml',
|
||||
*sorted((lab.ROOT / 'crates/horizon-client/src').rglob('*')),
|
||||
@@ -91,7 +91,7 @@ def main():
|
||||
'-d', str(classes), str(oracle), str(helper), str(heightmap)], cwd=lab.ROOT, check=True,
|
||||
stdout=log, stderr=subprocess.STDOUT, timeout=3600)
|
||||
subprocess.run(['java', '-Xmx512M', '-cp', str(classes)+os.pathsep+dependencies,
|
||||
'dev.horizonlab.parity.VanillaGallerySelectionOracle', str(report), str(native), str(root/'26.3')],
|
||||
'dev.horizonlab.parity.VanillaGallerySelectionOracle', str(report), str(native), str(root / lab.VERSION)],
|
||||
cwd=lab.ROOT, check=True, stdout=log, stderr=subprocess.STDOUT, timeout=3600)
|
||||
native_result = json.loads(native.read_text())
|
||||
selections = native_result['gallery']
|
||||
@@ -103,12 +103,12 @@ def main():
|
||||
'client_jar_sha256': lab.digest(jars['client'], 'sha256'),
|
||||
'output_sha256': lab.digest(native, 'sha256'),
|
||||
'scope': 'Actual native registry states, blockstate dispatch, tagged root baking and legacy collection using state.getSeed(position). All 16 featured placements match model names/transforms. An independently constructed native scene also matches total occupied blocks and visible/culled model faces using native parent resolution, rotated culling directions and Block.shouldRenderFace. No shader/pixel parity claim.'}
|
||||
if resource_fingerprint(root / '26.3') != resources:
|
||||
if resource_fingerprint(root / lab.VERSION) != resources:
|
||||
raise RuntimeError('Resources changed during native client verification')
|
||||
result['resource_files'] = resources
|
||||
result['executable_sha256'] = lab.digest(executable, 'sha256')
|
||||
result['resource_manifest_sha256'] = lab.digest(
|
||||
root / '26.3/horizon-resources.json', 'sha256')
|
||||
root / lab.VERSION / 'horizon-resources.json', 'sha256')
|
||||
actual_sources = {str(path.relative_to(lab.ROOT)): lab.digest(path, 'sha256') for path in sources if path.is_file()}
|
||||
if actual_sources != tested_sources:
|
||||
raise RuntimeError('Sources changed during native client verification')
|
||||
|
||||
Reference in New Issue
Block a user