- Newest
- Most votes
- Most comments
This issue with CodeBuild GitHub runners failing to connect with GitHub Actions jobs does occur occasionally and is a known problem.
Based on the information provided, there are several potential causes for your specific failure:
-
Webhook configuration issues: You mentioned multiple webhooks registered to CodeBuild for the same repository, with some reporting errors like "Project name in label did not match actual project name." This mismatch can cause connection problems between GitHub and CodeBuild.
-
Label configuration problems: When GitHub routes self-hosted jobs, it requires exact label matching. If there's any inconsistency in how your labels are configured, this can cause jobs to hang with the "not acquired by Runner" error you're seeing.
-
Race condition: Your observation about the timing of the completed and queued workflow jobs could indicate a race condition. When one job completes just as another is queued, there might be issues with resource allocation or webhook processing.
Regarding your specific questions:
-
Yes, this type of issue does occur with CodeBuild GitHub runners, particularly when there are multiple jobs or label configuration issues.
-
Failure rates vary by setup, but some users report intermittent failures even after periods of stability. The issue can appear randomly, making it difficult to predict.
-
For debugging:
- Review webhook delivery logs in GitHub to check for specific error messages
- Ensure consistent label configurations across all jobs
- Verify that your CodeBuild project has proper permissions
- Check for any build queue limits in your AWS account
- Examine the GitHub webhook response logs for error messages
The correlation ID you provided (922a9c92-8853-4d13-a7f4-efb3979896ee) would be useful for AWS Support if you need to escalate the issue.
Cleaning up the duplicate webhooks is a good first step. Also, ensure that your runner labels are consistently applied and that you don't have any conflicting configurations between jobs.
Sources
Codebuild as Github Actions Runner - Error when extracting the runner | AWS re:Post
CodeBuild GitHub runners are randomly failing | AWS re:Post
Troubleshoot the webhook - AWS CodeBuild
answered a year ago
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
