feat(monitor-ci): extend polling coverage to ~33 min#110
Merged
Conversation
Add a 4th backoff step (180s) and raise the circuit breaker threshold from 5 to 13 no-progress polls so CI monitoring can cover ~30-minute runs. With delays of 60/90/120/180s and 13 no-progress polls, total coverage is ~33.5 min (90 + 120 + 180*10 = 2010s), giving headroom for 30-minute CI runs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
|
View your CI Pipeline Execution ↗ for commit 4135739
☁️ Nx Cloud last updated this comment at |
nartc
approved these changes
Apr 5, 2026
Contributor
There was a problem hiding this comment.
✅ The fix from Nx Cloud was applied
We updated the circuit breaker test to align with the intentional threshold change from 5 to 13 consecutive no-progress polls introduced in this PR. The test was passing --no-progress-count 4 (incrementing to 5), which no longer triggers the circuit breaker at the new threshold, causing the assertion to fail. Updating the input to 12 (incrementing to 13) correctly validates the new behavior.
Tip
✅ We verified this fix by re-running @org/source:test.
Suggested Fix changes
diff --git a/tests/monitor-ci/ci-poll-decide.test.mjs b/tests/monitor-ci/ci-poll-decide.test.mjs
index 0519355..c51c479 100644
--- a/tests/monitor-ci/ci-poll-decide.test.mjs
+++ b/tests/monitor-ci/ci-poll-decide.test.mjs
@@ -105,13 +105,13 @@ describe('guards', () => {
expect(result.action).toBe('done');
});
- it('circuit_breaker when noProgressCount >= 5', async () => {
+ it('circuit_breaker when noProgressCount >= 13', async () => {
// noProgressCount starts at inputNoProgressCount+1 when no state change
const result = await runScript(ci(), 0, 'medium', [
'--no-progress-count',
- '4',
+ '12',
]);
- // 4+1=5 >= 5
+ // 12+1=13 >= 13
expect(result.code).toBe('circuit_breaker');
expect(result.action).toBe('done');
});
🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.
View interactive diff ↗➡️ This fix was applied by Victor Savkin
🎓 Learn more about Self-Healing CI on nx.dev
Co-authored-by: polygraph-app[bot] <polygraph-app[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Extends the
monitor-ciskill's polling loop so it can cover CI executions that run up to ~30 minutes.Changes
backoff()delays now[60, 90, 120, 180](adds a 4th step at 180s)SKILL.mddocumentationMath
With the new max backoff of 180s and 13 no-progress polls, total coverage is:
That gives comfortable headroom for 30-minute CI runs (previously only ~7.5 min of coverage was possible).
Files touched
artifacts/skills/monitor-ci/scripts/ci-poll-decide.mjs(source)artifacts/skills/monitor-ci/SKILL.md(source)skills/,generated/.agents/,generated/.github/,generated/.opencode/,generated/.gemini/vianpx nx sync-artifactsNotes
The polygraph
await-polygraph-ciskill also mentions "5 consecutive polls" in its own polling loop — left unchanged as it's a separate skill with different semantics.View session information on Nx Cloud ↗
Related PRs: None yet