Skip to content

Conversation

ianbotsf
Copy link
Contributor

Issue #

(none)

Description of changes

The service check build CI job occasionally fails when checking the status of the CodeBuild job too rapidly after starting it. This change moves the 10 second sleep to the start of the polling loop to ensure that the CodeBuild job is fully initialized before the first polling check.

This change also removes filtering on job identifiers starting with JOB. Batch identifiers no longer begin with JOB but are either a service name (e.g., SAGEMAKER) or a numbered batch (e.g., BATCH13). This led to finding zero jobs in every polling check, yielding the following output line:

Build is still in progress (failed=0; in_progress=0; succeeded=0; total=0), waiting...

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ianbotsf ianbotsf added the no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly. label May 26, 2023
@ianbotsf ianbotsf requested a review from a team as a code owner May 26, 2023 20:20
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ianbotsf
Copy link
Contributor Author

Now seeing correct output from the polling loop:

Build is still in progress (failed=0; in_progress=18; succeeded=5; total=23), waiting...

@ianbotsf ianbotsf merged commit 2ad704c into main May 26, 2023
@ianbotsf ianbotsf deleted the fix-svc-check-progress-reporting branch May 26, 2023 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Indicates that a changelog entry isn't required for a pull request. Use sparingly.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants