Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.
中文简介正在准备中。当前显示原文说明。
Review failing CI checks on pull requests, diagnose root causes, and fix issues. Covers common failures: tests, linting, type checks, security scans, and builds.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Undeveloped: CI failures unclear; don't know how to fix.
Target: Read CI logs, identify root cause, apply fix.
Optimized: Automated CI fixes, pattern detection, preventive changes.
CI failures are clues, not blockers. Understanding CI output and common error patterns enables quick diagnosis and fixes.
Identify the CI system:
| System | Log Location | Re-run |
|---|---|---|
| GitHub Actions | Actions tab on PR | "Re-run jobs" |
| GitLab CI | CI/CD → Pipelines | Re-run button |
| Jenkins | Build console | "Build Again" |
| CircleCI | Checks tab | Rerun workflow |
Locate and analyze logs:
❌ FAILED: Run tests
→ Look for: error message, stack trace, failed test name
→ Key info: Where exactly did it fail?
Example output:
FAIL tests/calculator.test.js
● Calculator › should add numbers correctly
Expected: 5
Received: NaN
at test (tests/calculator.test.js:12:5)
Common CI failures:
| Type | Example | Fix |
|---|---|---|
| Test Failure | "Expected: 5, Received: NaN" | Fix code to match expectation |
| Linting Error | "Unexpected token ';'" | Run linter locally, fix issues |
| Type Error | "Cannot find property 'x' on type 'any'" | Add type annotations |
| Build Error | "Module not found: 'react'" | Install missing dependencies |
| Security Scan | "High severity: SQL injection" | Fix vulnerability |
Common test issues:
## Test Failure: "Expected 5, Received NaN"
### Root Cause Analysis
**Step 1**: Identify test file location
- File: tests/calculator.test.js, Line 12
**Step 2**: Review test code
```javascript
test('should add numbers correctly', () => {
const result = add(2, 3);
expect(result).toBe(5); // Line 12 failing here
});
Step 3: Review implementation
function add(a, b) {
return a + b; // Currently returns NaN
}
Step 4: Identify issue
return Number(a) + Number(b);Step 5: Fix and verify locally
npm test tests/calculator.test.js
# ✓ Test passes
# Push fix
### Step 5: Linting Error Fixes
**Common linting issues:**
```markdown
## Linting Error: "Unexpected token ';'"
### Common Causes
- Extra semicolon: Remove
- Missing semicolon: Add
- Quote mismatch: Use consistent quotes
- Unused variable: Remove or use variable
### Auto-fix
```bash
npm run lint -- --fix
# Automatically fixes 80% of errors
### Step 6: Type Check Errors
**TypeScript/Flow issues:**
```markdown
## Type Error: "Cannot find property 'x' on type 'any'"
### Root Cause
- Variable typed as 'any' but property not guaranteed
- Solution: Add proper type annotation
### Fix
```typescript
// Before
const user: any = getUser();
console.log(user.email); // TS error
// After
interface User {
id: number;
email: string;
}
const user: User = getUser();
console.log(user.email); // TS OK
### Step 7: Build/Dependency Errors
**Module not found errors:**
```markdown
## Build Error: "Module not found: 'react'"
### Causes
- Package not installed
- Wrong import path
- Version conflict
### Fix
```bash
# Check if package is installed
npm list react
# If not, install it
npm install react
# If installed but not found, try clean install
rm package-lock.json node_modules/
npm install
# If import path wrong:
# Change: import React from 'react-dom' ❌
# To: import React from 'react' ✓
### Step 8: Security Scan Failures
**Fix security vulnerabilities:**
```markdown
## Security: "SQL injection vulnerability"
### Scan Output
CRITICAL: SQL injection in queries.js:12
const query = SELECT * FROM users WHERE id = ${userId}
^^^^^^
Risk: User input directly in SQL
### Fix
```javascript
// Before (vulnerable)
const query = `SELECT * FROM users WHERE id = ${userId}`;
db.run(query);
// After (safe)
const query = 'SELECT * FROM users WHERE id = ?';
db.run(query, [userId]); // Parameterized query
### Step 9: Check If PR Needs Changes
**Once logs are analyzed, determine next step:**
```markdown
## CI Fix Decision Tree
1. **Is the error in my code?**
- Yes → Fix it
- No → Check dependencies
2. **Did I add a new dependency?**
- Yes → Verify package-lock.json is committed
- No → Proceed
3. **Is the test failing?**
- Yes → Review test logic
- No → Check environment setup
4. **Can I reproduce locally?**
- Yes → Fix locally, push
- No → Might be environment issue; check CI config
Deliver:
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Automate 21risk tasks via Rube MCP (Composio). Always search tools first for current schemas.
中文简介正在准备中。当前显示原文说明。
Automate 2chat tasks via Rube MCP (Composio). Always search tools first for current schemas.
中文简介正在准备中。当前显示原文说明。
Automate Ably tasks via Rube MCP (Composio). Always search tools first for current schemas.
中文简介正在准备中。当前显示原文说明。
Automate Abstract tasks via Rube MCP (Composio). Always search tools first for current schemas.
中文简介正在准备中。当前显示原文说明。
Automate Abuselpdb tasks via Rube MCP (Composio). Always search tools first for current schemas.
中文简介正在准备中。当前显示原文说明。
Automate Abyssale tasks via Rube MCP (Composio). Always search tools first for current schemas.
中文简介正在准备中。当前显示原文说明。