Fix flaky static analysis tests with retry mechanisms and improved CI configuration #698
+110
−11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The static analysis workflow was experiencing intermittent failures due to various CI environment issues including network timeouts, Gradle daemon conflicts, and resource contention. This PR implements comprehensive improvements to make the static analysis more reliable.
Changes Made
1. Retry Mechanisms
Added retry logic to handle transient failures:
dnf clean allbetween retriesmake cleanbetween retries2. Gradle CI Configuration
Improved Gradle configuration for CI environments:
libcobj/gradle.propertieswithorg.gradle.daemon=falseto prevent daemon conflicts--no-daemon --console=plainflags to all Gradle commandsgradle-wrapper.properties3. Timeout Protection
Added timeouts to prevent hanging processes:
4. Better Error Handling
Example of Improvements
Before:
After:
These changes address the root causes of flakiness: network issues, daemon conflicts, and resource contention that are common in containerized CI environments.
Fixes #697.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/opensourcecobol/opensourcecobol4j/actions/runs/17214494555/attempts/1/logscurl -s REDACTED -H Accept: application/vnd.github.v3+json(http block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.