Add 10-second initial wait for workflow runs in watch command#11
Merged
Add 10-second initial wait for workflow runs in watch command#11
Conversation
Phase 1: Extract magic numbers to constants.py - Create centralized constants.py with all configuration values - Replace hardcoded polling intervals, pagination limits, SHA lengths - Replace log parsing thresholds and fallback values Phase 2: Improve URL parsing robustness - Replace fragile split() method with proper urllib.parse - Add comprehensive error handling for malformed URLs - Handle edge cases: empty URLs, missing segments, non-numeric IDs Phase 3: Replace catch-all exception handlers - Replace generic 'except Exception: pass' with specific error types - Add proper handling for ValueError, TypeError, KeyError - Improve timestamp parsing and duration calculation error handling Includes comprehensive tests for all improvements (180 LOC). Maintains backward compatibility with zero functional regressions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Keep todo.md, REGRESSION_PREVENTION.md, and TEST_DATA.md as local-only development files to avoid cluttering the repository with planning docs. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Improve URL parsing to require "actions" before "runs" for more robust parsing - Include exception type in error messages for better debugging - Fix unrealistic test cases to match actual expected behavior - All 86 tests now pass with 86% coverage 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Prevents premature "no workflow runs found" messages by waiting 10 seconds on first poll before reporting no steps. Improves UX when starting watch before CI jobs are registered. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.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
Test plan
🤖 Generated with Claude Code