Skip to content

Classify CI failures and retry flaky checks once #145

Open

Description

@datacas

Problem

The check-wait loop in cc-implement-issue and the CI gate of the rereview only distinguish in-scope from out-of-scope failures. It never retries a flaky check and cannot tell a broken base branch from infrastructure.

Proposal

Extend that step with a failure classification, citing log evidence:

change_related | flaky | base_branch_failure | infrastructure | unknown

  • change_related: fix, push, wait again (existing 2-round bound).
  • flaky (timeout, network blip, evidence of transient cause, no link to the diff): one automatic rerun of the failed checks, then reclassify. No further reruns.
  • base_branch_failure: do not fix; report which check and why, and that the same check fails on the base.
  • infrastructure / unknown: stop and report as today (BLOCKED / PARTIALLY_RESOLVED).

Add the classification to the checks.items structured result. Keep cc-implement-issue and cc-rereview in sync, or extract the shared text into a reference file.

Updated for #182/#228 and clarified by #231: under strict, classify failures and apply the bounded retry wherever the remote CI wait remains (implementation, resolution and review/rereview gate). Under parallel, classification and the single retry belong to the deterministic CI gate in run_cycle.py for the exact reviewed SHA, and nowhere else. Never retry the same SHA/check twice across waits and gate.

Acceptance criteria

  • cc-implement-issue and cc-rereview describe the same taxonomy and the single flaky retry.
  • No force-push, no merge, no unbounded loop.
  • checks in the structured result carries each failure's classification.
  • Existing tests/docs that assert the old statuses are updated.
  • No new cc-* skill.

Idea source: pr-ci in victor-falcon/skills (concept only; no declared license).

Planificación aprobada de CodeCycleToolkit 2.0

Implementación coordinada con #231, sin cierre ni fusión administrativa de ninguna issue.

  • strict: aplicar la clasificación donde permanece la espera remota: implementación, resolución y gate de review/rereview.
  • parallel: la clasificación y el único retry pertenecen al gate determinista de CI del HEAD revisado en run_cycle.py; no se duplican en las etapas.
  • Como máximo un retry por el mismo SHA/check a través de esperas y gates, conservando causa y evidencia.
  • Coordinar Behavioral verification: CI recipe, retention and evidence reader #159 para no duplicar la confirmación de un fallo behavioral.
  • Conservar taxonomía, estados y límites originales; cubrir ambas políticas y la reanudación.

Referencia estratégica: docs/ROADMAP_V2.md (versión aprobada; la ruta canónica se conserva en el índice del repositorio).

Activity

  1. added
    enhancement
    on Oct 2, 2026
  2. added
    P1
    on Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions