Skip to content

ci(async-audit): enable Phase 2 — soft-fail visibility for async-route audit#232

Merged
pcalnon merged 1 commit intomainfrom
ci/async-route-audit-phase-2-enable
May 6, 2026
Merged

ci(async-audit): enable Phase 2 — soft-fail visibility for async-route audit#232
pcalnon merged 1 commit intomainfrom
ci/async-route-audit-phase-2-enable

Conversation

@pcalnon
Copy link
Copy Markdown
Owner

@pcalnon pcalnon commented May 6, 2026

Summary

Phase 2 enable for juniper-cascor. Second of four Phase 2 PRs.

Same shape as the data PR (data #94):

  • Pre-commit `stages: [manual]` → `[pre-commit, manual]`
  • New CI job `async-route-audit` with `continue-on-error: true`

Effect

After the Phase 1 per-file-ignore on `src/api/service_launcher.py`
(orchestration helper), cascor has zero visible violations
post-Phase-2. The CI lane and pre-commit hook will catch any new
violations introduced by future code changes.

Test plan

  • `pre-commit run ruff-async-audit` (without `--hook-stage manual`)
    runs and passes — hook now fires on regular commits.
  • CI job uses ruff 0.15.6 and `--output-format=github` for
    annotation rendering.

🤖 Generated with Claude Code

…e audit

Flips the Phase 1 manual-stage hook to fire on regular commits and
adds a CI lane scoped to the same ASYNC ruleset, both as soft-fail
(``--exit-zero`` for the hook, ``continue-on-error: true`` for CI).

After Phase 1's per-file-ignore on ``src/api/service_launcher.py``
(orchestration helper, not a route handler), cascor has **zero
visible violations** post-Phase-2. The CI lane and pre-commit hook
will catch any new violations introduced by future code changes.

Phase 4 will drop ``--exit-zero`` (pre-commit) and
``continue-on-error: true`` (CI) so future violations block.

Second of four Phase 2 PRs (data → cascor → canopy → worker).

Plan: juniper-ml notes/ASYNC_ROUTE_AUDIT_HOOK_MIGRATION_PLAN.md §4.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Owner Author

@pcalnon pcalnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@pcalnon pcalnon merged commit 402b1db into main May 6, 2026
25 checks passed
pcalnon added a commit that referenced this pull request May 7, 2026
Drop the soft-fail flags so any new ASYNC* violation hard-fails:
- ``.github/workflows/ci.yml``: remove ``continue-on-error: true`` from
  the ``async-route-audit`` job. Rename to "Async-route audit (BUG-JD-10
  class)" (no more "soft-fail" suffix). The ruff command already lacks
  ``--exit-zero`` (cascor's Phase 2 PR #232 was tightened in fb1b5d4
  before this PR existed).
- ``.pre-commit-config.yaml``: remove ``--exit-zero`` from the
  ``ruff-async-audit`` hook so violations block commits.

Repo has zero visible violations: the only flagged file
(``src/api/service_launcher.py``, orchestration helper) carries a
per-file-ignore in pyproject.toml [tool.ruff.lint.per-file-ignores].
Verified ``ruff check --select ASYNC src/`` exits clean.

Second of four Phase 4 PRs (data → cascor → canopy → worker).

Refs: notes/ASYNC_ROUTE_AUDIT_HOOK_MIGRATION_PLAN.md §4 (in juniper-ml)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant