-
Notifications
You must be signed in to change notification settings - Fork 325
[EXPERIMENTAL] Tiered CI Testing - Improve Reliability & Speed #4865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Add three experimental workflows to test tiered CI approach: 1. Quick Tests (< 2 min) - Runs on every push to test/** branches - Uses -short flag for fast feedback - Workflow: 10-test-quick-EXPERIMENTAL.yaml 2. Standard Suite (< 10 min) - Manual trigger only - All unit tests + 4 core acceptance tests - Workflow: 11-test-standard-EXPERIMENTAL.yaml 3. Full Suite (< 20 min) - Manual trigger only - All 21 acceptance tests - Workflow: 11-test-full-EXPERIMENTAL.yaml These experimental workflows: - Only trigger on test/** branches - Don't interfere with production CI - Allow us to test the tiered approach safely Goal: Improve CI success rate from 50% to 95%+ and reduce feedback time from 7-10 min to < 2 min. Related to issue: CI reliability improvements See: .ai/wip/ci-optimization/ for detailed analysis 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Fixed triggers to implement proper tiered testing: **Tier 1 - Quick Tests** (< 2 min): - Trigger: Every PR push + push to develop/main - Goal: Fast feedback on every commit **Tier 2 - Standard Suite** (< 10 min): - Trigger: PR ready for review + push to develop/main - Goal: Comprehensive validation before merge **Tier 3 - Full Suite** (< 20 min): - Trigger: Push to develop (post-merge) + nightly + label "test:full" - Goal: Complete coverage This matches the original plan: test actual development code with progressive levels of thoroughness as code moves toward release. Previous version incorrectly limited triggers to test/** branches only. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
🔧 Fix Applied: Proper Tiered TriggersJust pushed a fix - the original commit had overly conservative triggers (only ✅ Corrected Trigger StrategyTier 1: Quick Checks -
|
Nightly runs are redundant when running full tests on every merge to develop. Benefits of removing nightly: - Reduces CI resource usage - Simplifies maintenance - Full tests still run on: - Every merge to develop (frequent) - Manual trigger (when needed) - PR with "test:full" label (on-demand) Nightly only makes sense if: - Merges are infrequent (days/weeks apart) - Tests have time-dependent edge cases - External dependencies need regular validation For active development with frequent merges, running full tests on every develop merge provides sufficient coverage. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
🎯 Purpose
This PR introduces experimental tiered CI workflows to address current CI reliability issues. This is a SAFE EXPERIMENT that doesn't affect production CI.
Current CI has critical issues:
💡 Solution: Tiered Testing
Tier 1: Quick Checks (< 2 minutes)
Workflow:
10-test-quick-EXPERIMENTAL.yamlgo test -short)Tier 2: Standard Suite (< 10 minutes)
Workflow:
11-test-standard-EXPERIMENTAL.yamlTier 3: Full Suite (< 20 minutes)
Workflow:
11-test-full-EXPERIMENTAL.yaml🔒 Safety
These workflows are EXPERIMENTAL and SAFE:
test/**branches📊 Expected Outcomes
🧪 Testing Plan
This PR tests Quick Checks
Manual Standard Test
Manual Full Test
Metrics Collection
📝 Files Changed
New Workflows
.github/workflows/10-test-quick-EXPERIMENTAL.yaml- Quick tests.github/workflows/11-test-standard-EXPERIMENTAL.yaml- Standard suite.github/workflows/11-test-full-EXPERIMENTAL.yaml- Full suiteDocumentation
See
.ai/wip/ci-optimization/for:🎬 Next Steps
If this experiment succeeds:
If it doesn't work:
🔍 How to Test
Test Quick Workflow (Automatic)
Just push commits to this PR - quick tests run automatically!
Test Standard Workflow (Manual)
test/ci-tiered-testingTest Full Workflow (Manual)
test/ci-tiered-testing📚 Background
TestEnsureDBInstalled_Concurrent(Add comprehensive passing tests from bug hunting initiative #4864)✅ Success Criteria
🤝 Feedback Welcome!
This is an experiment to improve our CI reliability and developer experience. Please:
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com