test(dev): make the million test worker count configurable

WORKERS sets the copier workers (default 8). The driver no longer
removes the mount field, which the configuration does not have anymore.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-12-03 22:03:22 +01:00
1 parent 330a3ec12c
commit 82c64f9908
2 files changed
+2 -2

No files matched your search

+1
View File
@@ -19,6 +19,7 @@ services:
environment:
FILES: ${FILES:-1000000}
RUN_LABEL: ${RUN_LABEL:-main}
WORKERS: ${WORKERS:-8}
networks: [lab]
depends_on:
source: {condition: service_healthy}
+1 -2
View File
@@ -190,10 +190,9 @@ def prepare():
roots = {c: volume(c, 'getpath', 'cephfs', name) for c in ('source', 'target')}
state['roots'] = roots
config = json.loads(Path('/lab/migration.example.json').read_text())
config.update(backend='native', workers=8, bandwidth_kib=0)
config.update(backend='native', workers=int(os.environ.get('WORKERS', '8')), bandwidth_kib=0)
for c in ('source', 'target'):
config[c]['subvolume'] = name
config[c].pop('mount', None)
atomic_json(WORK / 'config.json', config)
with FS('source') as fs:
root = roots['source']