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:
Ludovic Marie
2026-10-15 17:49:54 +02:00
parent ef8b045d79
commit ce87bfb8c7
62 changed files with 238 additions and 89 deletions
+6 -1
View File
@@ -10,6 +10,11 @@ import os
from pathlib import Path
import subprocess
try:
from . import lab
except ImportError:
import lab
ROOT = Path(__file__).resolve().parents[1]
@@ -31,7 +36,7 @@ def main():
mode.add_argument('--test', action='store_true', help='run extracted production upload tests')
mode.add_argument('--build-only', action='store_true', help='build without measuring')
parser.add_argument('--label', default='candidate')
parser.add_argument('--resources', type=Path, default=ROOT / '.local/horizon-client/26.3')
parser.add_argument('--resources', type=Path, default=lab.RESOURCES)
args = parser.parse_args()
path = 'crates/horizon-client/src/gfx.rs'
source = (subprocess.check_output(['git', 'show', f'{args.ref}:{path}'], cwd=ROOT, text=True)