Skip to content

Conversation

finestructure
Copy link
Member

Fixes #3840

@cla-bot cla-bot bot added the cla-signed label Jul 22, 2025
} else {
struct Response: Content { var message: String }
return try .tooManyRequests(jsonEncode: Response(message: "Too many pipelines created in the last minute. Try again later."))
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There was a logical race here where I'd properly locked the triggerCount value but the lock didn't span the whole of the operation that needed to be guarded. It could happen that all 32 tasks were run and saw a value < 5, because the increment happened on a later, separate lock than the check.

@finestructure finestructure merged commit 7c17020 into main Jul 22, 2025
6 checks passed
@finestructure finestructure deleted the issue-3840-test-failure branch July 22, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Intermittent test failure in TriggerBuilds_triggerBuilds_error
2 participants