• Mahmoud Aglan's avatar
    fix: creating a tournament without a start time failed against production · fcc74b9f
    Mahmoud Aglan authored
    el3ab_tournaments.starts_at is NOT NULL in the live schema. tournament-admin.php
    allowed it to be null, so every create call that did not supply one was rejected
    by Postgres. The local test schema had the column nullable, so the suite passed
    and the defect only appeared when the rehearsal ran against production.
    
    starts_at now defaults to now() — which also gives auto_start something to act on —
    and tests/schema.sql marks the column NOT NULL so the next one is caught locally.
    
    Adds tests/rehearsal.mjs, the script that found it: four throwaway accounts driven
    through matchmaking, a 33-move game to checkmate and a full Swiss round against the
    live deployment, with teardown in a finally block. Run it after any deploy.
    Co-Authored-By: 's avatarClaude Opus 5 (1M context) <noreply@anthropic.com>
    fcc74b9f
Name
Last commit
Last update
..
README.md Loading commit data...
authstub.php Loading commit data...
engine_shim.php Loading commit data...
gen_fens.mjs Loading commit data...
pgshim.php Loading commit data...
real_games.json Loading commit data...
rehearsal.mjs Loading commit data...
router.php Loading commit data...
run.sh Loading commit data...
schema.sql Loading commit data...
test_auth.php Loading commit data...
test_e2e.mjs Loading commit data...
test_integration.php Loading commit data...
test_replay.php Loading commit data...
test_swiss.php Loading commit data...