Scale CI multi-simulation to 100 runs, remove per-run progress ticker
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -53,8 +53,8 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run multi-simulation (5 runs)
|
- name: Run multi-simulation (100 runs)
|
||||||
run: pnpm --filter @ai-tycoon/game-simulation multirun -- --runs 5 --parallel 5 --strategy persona --ticks 28800 --no-timeseries
|
run: pnpm --filter @ai-tycoon/game-simulation multirun -- --runs 100 --parallel 10 --strategy persona --ticks 28800 --no-timeseries
|
||||||
|
|
||||||
- name: Interpret results
|
- name: Interpret results
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
@@ -21,8 +21,6 @@ const strategy = strategyName === 'random' ? new RandomStrategy()
|
|||||||
: strategyName === 'persona' ? new PersonaStrategy(seed)
|
: strategyName === 'persona' ? new PersonaStrategy(seed)
|
||||||
: new GreedyStrategy();
|
: new GreedyStrategy();
|
||||||
|
|
||||||
process.stderr.write(`[Run #${runId}] Starting (seed ${seed}, ${totalTicks} ticks, ${strategyName})...\n`);
|
|
||||||
|
|
||||||
const result = runSimulation({
|
const result = runSimulation({
|
||||||
totalTicks,
|
totalTicks,
|
||||||
decisionInterval,
|
decisionInterval,
|
||||||
@@ -30,10 +28,6 @@ const result = runSimulation({
|
|||||||
seed,
|
seed,
|
||||||
verbose: false,
|
verbose: false,
|
||||||
silent: true,
|
silent: true,
|
||||||
onProgress: (tick, total, era) => {
|
|
||||||
const pct = ((tick / total) * 100).toFixed(0);
|
|
||||||
process.stderr.write(`[Run #${runId}] ${pct}% (tick ${tick.toLocaleString()}/${total.toLocaleString()}) — ${era}\n`);
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
const report = generateJsonReport(result, { totalTicks, decisionInterval, strategy, seed });
|
const report = generateJsonReport(result, { totalTicks, decisionInterval, strategy, seed });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user