Skip to content

ci(0.5): classify transient failures and remove false changelog gates without masking regressions #67

Closed

Description

@agustin18

Status update (2026-11-20): the deterministic docs-only Towncrier false gate is fixed by merged #71. The remaining scope is post-0.4.0 flake evidence and an end-to-end documentation-only PR, not a 300-run historical analysis. CI regressions that fail on changed commits are real failures, not flakes.

Goal

An authoritative, repeatable CI that is green on stable and fails only when there is a real policy/build/test failure. No continue-on-error escape hatches or automatic green-on-retry.

Evidence audited

  • Run 44671925030: Towncrier failed on a documentation-only PR whose sole diff was docs/releases/RELEASE_STATUS_0.4.0.md ("No new newsfragments found"); adding skip-changelog later made it pass. This is deterministic false friction, not a flaky test.
  • Run 44607604072: tests errored with ModuleNotFoundError: uvicorn during a PR changing requirements: genuine regression, not flaky.
  • Run 44598336950: auth/privacy and datetime assertions failed on an intermediate code HEAD: real development failures, not evidence of random behavior.
  • Run 44653445383: research Redis resolver test asserted a mismatched metadata marker form; corrected in later research HEAD.
  • Stable CI run 44672202319: passing on 3cb95e0. Do not claim an established flaky suite without same-SHA repeat/failure evidence.

Proposed PRs

  1. Automatically recognize Markdown-only PR diffs as documentation changes in the Towncrier gate while requiring fragments for *.py, Poetry metadata, workflows, tests, examples and executable scripts. Keep explicit skip-changelog as audited escape hatch for exceptional cases.
  2. Scope investigation to runs from the 0.4.0 release onward, or a specifically cited earlier repeated error. Group by same SHA + job + environment and failure signature; examine reruns only when there is evidence of a possible flake. Do not require cataloging 100–300 historical runs or mistake failures on successive development commits for nondeterminism.
  3. Add bounded deterministic timing/TTL/Redis race tests only where a reproducible failure signature exists, prioritizing test-time clocks/expiry and concurrency. Keep pinned tools and current required CI profiles; no speculative large-scale flake cleanup.
  4. Separate required release CI from opt-in exhaustive research jobs; prohibit masked pytest failures and record full job result summaries, including wheel/sdist pip check.
  5. Review runner/toolchain deprecations (GitHub Actions Node 20 warnings are not current test failures).

Exit criteria

  • PR #71 is MERGED (squash commit f9b12aa87ba4e818b483c15c52c0b08e3cf83a95, 31/31 checks passed). A docs-only PR must now pass Towncrier end to end without a manual label; mixed source PRs without fragments must still fail.
  • Stable/release checks remain required; a simulated failing job is still red.
  • All genuine flakes have a reproduction, root cause/fix or explicit tracked disposition; no made-up zero-flake metric.

Activity

  1. agustin18 commented on Nov 20, 2026

    @agustin18
    OwnerAuthor

    First scoped fix prepared: PR #71, HEAD 106a6ed66ead31cf3a25cac2137adf62bb155247, 31/31 checks PASS, marked ready for review. This resolves the deterministic docs-only Towncrier false gate at the unit/classifier and workflow-logic level; an actual second docs-only PR should still be used after merge to verify end-to-end skipping. Other historical errors (ModuleNotFoundError: uvicorn, intermediate auth/privacy failures, earlier Redis marker mismatches) were real different-HEAD regressions, not proven same-SHA flakes. The remaining CI repeatability/root-cause inventory stays open in this issue; do not claim it is fully solved by PR #71.

  2. added
    ci
    on Nov 20, 2026
  3. added a commit that references this issue on Nov 20, 2026
  4. agustin18 commented on Nov 20, 2026

    @agustin18
    OwnerAuthor

    E2E verification completed: a true documentation-only PR #72 changed only ROADMAP.md, with no newsfragment and no skip-changelog label. Towncrier passed; all 31/31 checks passed on HEAD aabcf42fe8dd76f62b14c49d09502d2f8d37e29e. PR #72 was squash-merged as 2276a6c6dcfa037fa96ae6c223c3e1ad1d297577. Thus the docs-only false positive fixed in #71 has both unit and actual PR integration evidence. #67 remains open only for post-0.4.0 evidenced nondeterminism / required CI quality. Do not retroactively call old different-commit failures flaky.

  5. agustin18 commented on Nov 20, 2026

    @agustin18
    OwnerAuthor

    End-to-end docs-only gate verification completed on 2026-11-20; no test changes merged.

    • Positive: PR docs: e2e docs-only gate test #76 changed only docs/releases/README.md, no fragment and no skip-changelog label. Changelog run 44796656503 passed; log: Markdown/RST-only: True. PR closed unmerged and branch deleted.
    • Negative: PR test: e2e mixed-change gate test #77 changed README.md plus tests/test_changelog_scope.py without a fragment. Changelog run 44796806752 failed as required; log: Markdown/RST-only: False and 'No new newsfragments found'. PR closed unmerged and branch deleted.
    • stable was not changed by either test. This validates the GitHub Actions checkout/base/output path, not only the unit classifier.
  6. added a commit that references this issue on Nov 21, 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

    ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions