From e602e8364240ff57f157b7847b60fba0b8b32786 Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Thu, 7 May 2026 03:10:48 -0700 Subject: [PATCH] sanitize docker tags --- .gitea/workflows/build-ci-images.yml | 2 +- docs/TODO.md | 32 +++++++++++++++++++++------- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-ci-images.yml b/.gitea/workflows/build-ci-images.yml index 18b0484..9a5af82 100644 --- a/.gitea/workflows/build-ci-images.yml +++ b/.gitea/workflows/build-ci-images.yml @@ -40,7 +40,7 @@ jobs: id: meta run: | # Get Playwright version from package.json - PLAYWRIGHT_VERSION=$(grep -o '"@playwright/test": "[^"]*"' package.json | cut -d'"' -f4) + PLAYWRIGHT_VERSION=$(grep -o '"@playwright/test": "[^"]*"' package.json | cut -d'"' -f4 | sed 's/^\^//') echo "playwright_version=${PLAYWRIGHT_VERSION}" >> $GITHUB_OUTPUT # Get Bun version (latest) diff --git a/docs/TODO.md b/docs/TODO.md index f3cc8b3..9b59a30 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -24,11 +24,11 @@ - [x] Write TODO list to repository file - [x] Auto-create tournament when uploading matches without selecting one -### In Progress 🔄 -- [ ] Update API routes to handle new variant scoring fields -- [ ] Update EditTournamentForm to add variant scoring controls -- [ ] Update MatchEditor to use tournament-specific target score -- [ ] Run tests and verify variant scoring implementation +### Completed ✅ +- [x] Update API routes to handle new variant scoring fields +- [x] Update EditTournamentForm to add variant scoring controls +- [x] Update MatchEditor to use tournament-specific target score +- [x] Run tests and verify variant scoring implementation ### Recently Completed ✅ - [x] Update CI/CD workflows to use Bun (PR, release) @@ -59,11 +59,27 @@ - [x] Create migration to add rating system tables (elo_ratings, glicko2_ratings, open_skill_ratings) - [x] Add tabbed rankings page to display Elo, OpenSkill, and Glicko2 ratings +### Completed ✅ +- [x] Add UI controls for variant scoring in tournament creation/edit +- [x] Test variant tournament functionality end-to-end (e2e/tournament-edit-allowTies.test.ts) +- [x] Add validation for tie scores based on tournament configuration (MatchEditor.tsx) + +### Completed ✅ (CI/DB Infrastructure) +- [x] Fix PostgreSQL database ownership — each env owns its own DB +- [x] Fix role attributes — euchre_camp_dev gets CREATEDB, euchre_camp_ci loses SUPERUSER +- [x] Update .env.development to use euchre_camp_dev user +- [x] Update .env.development.local to use euchre_camp_dev user +- [x] Update CI docker-compose to use euchre_camp_ci user +- [x] Update dev docker-compose to use euchre_camp_dev user +- [x] Recreate dev and CI containers with correct credentials +- [x] Fix Playwright baseURL for CI (https://euchre-ci.notsosm.art) +- [x] Fix Navigation unit tests (RoleSwitcherProvider wrapper) +- [x] Fix secrets vs vars in PR workflow (secrets.CI_DATABASE_URL) + ### Backlog 📋 -- [ ] Add UI controls for variant scoring in tournament creation/edit -- [ ] Test variant tournament functionality end-to-end -- [ ] Add validation for tie scores based on tournament configuration - [ ] Document variant tournament features +- [ ] Update Gitea secret CI_DATABASE_URL to use euchre_camp_ci user +- [ ] Test isolation improvements for parallel CI execution ## Recently Completed (Detailed)