Skip to content

ci: restore push/pull_request triggers accidentally removed by #718 - #1766

Merged
Sinity merged 1 commit into
masterfrom
feature/ci/restore-test-triggers
Jun 5, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/ci/restore-test-triggers

Conversation

@Sinity

@Sinity Sinity commented May 31, 2026 •

Copy link
Copy Markdown
Owner

Summary

Restores the push / pull_request CI triggers that were accidentally removed by #718, re-enabling automatic test/lint/nix gating on master and PRs.

Problem

#718 (refactor(cli): remove foreground resource policy) — a PR whose scope was entirely CLI resource policy, with no mention of CI — silently reverted the trigger blocks on four workflows, leaving each with only workflow_dispatch: (manual-only):

Workflow Before #718 After #718
ci.yml (lint + test ×3 Python) push + pull_request dispatch only
nix.yml (nix build + flake check) push + pull_request dispatch only
actionlint.yml pull_request dispatch only
dep-audit.yml push + pull_request + weekly schedule dispatch only

Consequence: the CI test gate has not run automatically since 2026-05-02 (the last ci.yml/nix.yml runs are on 9029a37a). Across the ~20 commits merged since, ~61 unit-test failures accumulated undetected — see #1765. This is the root cause of the test debt.

(pr-policy.yml and proof-comment.yml were also gutted by #718, but those stay deleted — that was the intentional ceremonial-verification cleanup in #1737, not collateral. codeql.yml retains a working trigger and is unaffected.)

Solution

Restore the exact pre-#718 on: blocks (verified against git show 8b2b0fae~1:.github/workflows/<f>.yml):

  • ci.yml / nix.yml: push: [master] + pull_request: [master] (opened/reopened/synchronize/ready_for_review)
  • actionlint.yml: pull_request: [master] (paths: .github/workflows/**, .github/actions/**)
  • dep-audit.yml: push/pull_request (paths: pyproject.toml, uv.lock, the workflow) + weekly cron: 0 6 * * 1

Verification

python3 -c "import yaml; ..."  # all four on: blocks parse with push/pull_request restored

⚠️ Expected: re-enabling CI surfaces the pre-existing failures

Once merged, ci.yml will run on master and PRs and will be red until the inherited test failures are cleared. That is the intended signal, not a regression introduced here. The known failures are partly fixed in #1765 (collection error, keyset, config, stale tests) and partly still open (a handful of real-bug candidates triaged in #1765's body). Recommended order: merge #1765, work the remaining real failures, then this fix's CI will go green. Merging this first is also fine — it just makes the existing red state visible.

Summary by CodeRabbit

  • Chores
    • Enhanced workflow triggers to automatically run validation checks on pull requests and commits targeting the master branch, improving consistency of continuous integration checks.

#718 (refactor(cli): remove foreground resource policy) — a PR with no CI
scope — silently reverted the trigger blocks on ci.yml, nix.yml,
actionlint.yml, and dep-audit.yml, leaving only `workflow_dispatch:`. As a
result the CI test/lint/nix gate has not run automatically on master or PRs
since 2026-05-02, and ~61 test failures accumulated undetected.

Restores the exact pre-#718 triggers (verified via `git show 8b2b0fa~1`):
- ci.yml / nix.yml: push[master] + pull_request[master, types]
- actionlint.yml: pull_request[master, paths: workflows/actions]
- dep-audit.yml: push/pull_request[master, paths] + weekly schedule

(pr-policy.yml and proof-comment.yml stay deleted — that was the intentional
#1737 ceremonial-verification cleanup, not collateral.)
@coderabbitai

coderabbitai Bot commented May 31, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: e1992b8a-24ce-4218-b4bd-5e8972e6ffc8

📥 Commits

Reviewing files that changed from the base of the PR and between 9f037ae and 07eb634.

📒 Files selected for processing (4)
  • .github/workflows/actionlint.yml
  • .github/workflows/ci.yml
  • .github/workflows/dep-audit.yml
  • .github/workflows/nix.yml

📝 Walkthrough

Walkthrough

Four GitHub Actions workflow files (actionlint, CI, dependency audit, Nix) are updated to trigger automatically on push to the master branch and pull request events, replacing manual-only execution via workflow_dispatch. Path filters are added to dependency audit and actionlint workflows to limit runs to relevant file changes.

Changes

GitHub Actions Workflow Triggers

Layer / File(s) Summary
Automatic workflow triggers for CI pipelines
.github/workflows/actionlint.yml, .github/workflows/ci.yml, .github/workflows/dep-audit.yml, .github/workflows/nix.yml
Four CI workflows now trigger automatically on push to master and pull_request events targeting master. The actionlint and dependency audit workflows use path filters (pyproject.toml, uv.lock, .github/workflows/**, .github/actions/**) to reduce unnecessary runs. PR triggers specify event types (opened, reopened, synchronize, ready_for_review) to skip redundant checks. Manual workflow_dispatch remains available.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Four workflows spring to life,
No more dispatch strife!
Push and PR now ignite the run,
Filtered paths keep it lean and fun.
Automation hops along,
Master branch stays strong! 🚀

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: restoring CI triggers that were accidentally removed. It is specific, relevant to the changeset, and helps understand the primary purpose of the PR.
Description check ✅ Passed The description is comprehensive and follows the template structure. It includes a clear summary, detailed problem statement with context, solution with specific file changes, verification details, and acknowledgment of expected impacts. All required sections are present and well-filled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/ci/restore-test-triggers

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity

Sinity commented May 31, 2026

Copy link
Copy Markdown
Owner Author

Holding this PR (do not merge yet) — GitHub Actions minutes.

The trigger restoration here is correct (it reverts the accidental #718 clobber), but re-enabling push/pull_request on ci.yml/nix.yml is only useful if Actions minutes are available. With minutes constrained, merging this would queue/fail a test×3-Python + nix run on every push and PR — pure noise. The local devtools verify + pre-push hook remain the effective gate in the meantime.

Options when minutes allow:

  • merge as-is (full matrix on push + PR), or
  • a cheaper variant: PR-only (drop the push: trigger), single Python version, or lint-only on PR with the full matrix on a weekly schedule:.

Leaving open so the fix is ready; the trigger config is the bug-free version regardless of when it's enabled.

Sinity added a commit that referenced this pull request May 31, 2026
…ns (#1767)

## Summary

Continues clearing the inherited test failures (after #1765). Fixes one
real search bug, one real #1737 docs-cleanup gap, and three stale
surface pins.

## Problem & Solution

Failures that accumulated while CI was off (#1766):

1. **`escape_fts5_query` bug** (`fts_escape_in_insights`): bare-asterisk
queries like `* * *` passed through unquoted and SQLite rejected them
(`unknown special query: *`). The prefix logic treated any
`*`-at-word-boundary as valid `word*` syntax. Now only word-suffixed `*`
is preserved; bare asterisks are quoted (safe literal). Updated the
`test*` security case to the preserved-prefix form (still
MATCH-compiles).
2. **Dangling verification docs** (`render_docs_surface`): #1737 deleted
`docs/verification-catalog.md` and `docs/verification-lab.md` but left
their entries in `devtools/docs_surface.py`; the renderer skipped the
missing files so the README dropped them and the pin failed. Removed the
dead entries + test assertion; regenerated the docs README.
3. **Stale surface pins**: `perf_rescue_1314` (v22 moved per-role counts
to `conversation_stats`, eliminating the messages scan — dropped the
stale assertion); `click_app` (registered 6 new commands);
`message_render_envelope` (added `paste_boundary_state`, #1655).

## Verification

```
pytest tests/unit/storage/test_fts_escape_in_insights.py tests/unit/storage/test_query_security.py  # 46 passed
pytest <perf_rescue, click_app, envelope, render_docs_surface>  # all pass
devtools verify --quick  # push gate green
```

## Remaining (tracked for follow-up)

Still-open inherited failures, triaged in #1765's body — needing
per-case judgment: the `ASSURANCE_REGISTRY` real gap (6 new commands
need output contracts), `exercise_catalog`/`config source_roots`
(ambiguous), and the slower real candidates `test_source_laws` (zip "not
seekable" — likely a real regression), `test_resilience` (source_name),
`test_acquisition_encoding` (BOM).
@Sinity
Sinity merged commit 10d8212 into master Jun 5, 2026
8 of 15 checks passed
@Sinity
Sinity deleted the feature/ci/restore-test-triggers branch June 5, 2026 08:25
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