diff --git a/todo.md b/todo.md index 0ae6d31..f0e08a7 100644 --- a/todo.md +++ b/todo.md @@ -22,3 +22,12 @@ exitcode '1': failure - [ ] We should drop the "notes" column from the sleep_session table - [ ] Switch over to oh-my-opencode and try it out - [ ] Adda footer at the bottom of the app that shows the version (aka git tag) of the app +- [ ] Fix race condition of gitea workflows + +If both workflows run at the same time, a race condition occurs: +1. Collision: Both workflows will query the latest tag (e.g., v1.0.5) and calculate the same next version (v1.0.6). +2. The Winner: The first workflow to finish its push will successfully create the v1.0.6 tag on the remote. +3. The Loser: The second workflow will attempt to push v1.0.6, but the remote will reject it because that tag already exists, causing the workflow to fail. +This happens because both workflows share the same global tag namespace (v1.0.x). To fix this, you should differentiate them by using unique prefixes, such as backend-v1.0.x and frontend-v1.0.x. + +- [ ] remove the lint form the gitea workflows added by the agent. makes no sense there