#783 closed defect (bug) (fixed)
Some commits miss their ticket
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Component: | Trac | Keywords: | |
| Cc: |
Description
A commit with a message which contains Fixes #123 or See #123 means Trac adds a comment to the corresponding ticket. This gets missed occasionally.
Recent examples: [WP30908], [WP30846], [WP30795], [WP30300], [WP30696], [WP30658], [WP30648].
Any idea why this is happening?
Change History (3)
Note: See
TracTickets for help on using
tickets.

FIXED !!!
As I always suspected, this was a race condition. There were two things at play here:
If that second point beats the post-commit hook to the bunch, then the comment isn't posted.
Historically, this didn't affect us when we were on Trac 0.11, as it used an old pseudo-official python script that had its own problems. (We'd often get stuff posted as 'automattor', the fallback account for when something went wrong.) When Trac was updated to 0.12, we switched to the new CommitTicketUpdater (point 1),
repository_sync_per_requestwasn't added. It wasn't me, but I probably would have missed it too.Apparently, there's a way to avoid this sync in point 2, by setting
[trac] repository_sync_per_requestto nothing. I found this when reading the changelog for Trac 1.0.3 and noticed they added a log warning for when you use explicit syncing (with the post-commit hook) and don't haverepository_sync_per_requestset to nothing (it defaults to on for legacy reasons).