Ci:monitoring

From kagenti/kagenti · View interactive version

Ci:monitoring is an AI agent skill from the GitHub repository kagenti/kagenti. Monitor running CI jobs, wait for completion, create tasks for results

How to use this skill

Skill file

CI Monitoring

Monitor running CI pipelines and report results. Creates task items for each CI check being monitored.

Context-Safe Execution (MANDATORY)

CI log downloads MUST go to files. Status checks (gh pr checks) are small and OK inline.

export LOG_DIR="${LOG_DIR:-${WORKSPACE_DIR:-/tmp}/rossoctl-ci}"
mkdir -p "$LOG_DIR"

# When downloading logs after completion:
gh run view <run-id> --log-failed > $LOG_DIR/ci-run-<run-id>.log 2>&1; echo "EXIT:$?"
# Analyze in subagent: Task(subagent_type='Explore') with Grep

When to Use

Workflow

1. Create Monitoring Tasks

For each pending CI check, create a task:

TaskCreate: "<worktree> | <PR> | CI | Monitor | <check-name>"
  metadata: plan="ad-hoc", runner="main-session"

Example:

#33 [in_progress] mlflow-ci | PR#569 | CI | Monitor | Kind Deploy & Test
#34 [pending]     mlflow-ci | PR#569 | CI | Monitor | HyperShift E2E

2. Check Status Periodically

gh pr checks <PR-number>

3. On Completion

For each check that completes:

TaskUpdate: #33 status=completed
TaskCreate: "<worktree> | <PR> | Kind CI | RCA | <failure summary>"

4. Report Summary

Present final status table:

| # | Check | Status | Action |

|---|-------|--------|--------|

| #33 | Kind Deploy & Test | passed | - |

| #34 | HyperShift E2E | failed | → #35 RCA created |

| #35 | Kind CI | RCA | Agent empty response |

CI Check Types

| Check | Trigger | Duration | Manual? |

|-------|---------|----------|---------|

| CodeQL | Auto on push | ~2 min | No |

| Deploy & Test (Kind) | Auto on push | ~12 min | No |

| E2E HyperShift | /test comment | ~45 min | Yes |

| Build, Lint, Security | Auto on push | ~1 min | No |

HyperShift E2E

HyperShift requires manual trigger:

# Trigger via PR comment (done by user in GitHub UI)
# The workflow responds to issue_comment with "/test"

Monitor:

gh run view <run-id> --json status --jq '.status'
gh run view <run-id> | head -25

Task Tracking

On invocation:

  1. TaskList - find existing CI monitoring tasks for this PR
  2. Update completed checks
  3. Create new monitoring tasks for pending checks
  4. For failures, create RCA tasks linked to rca:ci or rca:hypershift

Naming: <worktree> | <PR> | CI | Monitor | <check-name>

Troubleshooting

HyperShift not starting

CI running on old commit

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.