Skip to content

ci(hooks): stop rerunning precommit before push - #279

Merged
bougyman merged 4 commits into
mainfrom
fix/stderr-capture-race
Sep 22, 2026
Merged

bougyman merged 4 commits into
mainfrom
fix/stderr-capture-race

Conversation

@bougyman

Copy link
Copy Markdown
Member
  • fix(test): eliminate async stderr capture race
  • chore: updates vulnerable dependencies
  • ci(hooks): stop rerunning precommit before push

Copilot AI lite review requested due to automatic review settings September 21, 2026 20:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

The pre-push regression test does not fully verify that mix precommit is not invoked.

Review effort: Lite
Findings: None

What changed in this PR

This PR stops redundant pre-push checks, isolates async stderr capture, updates dependencies, and revises related documentation.

Changes:

  • Removes the duplicate mix precommit invocation.
  • Adds injectable stderr handling for async tests.
  • Updates dependencies and quality-gate guidance.

Review note: strengthen the pre-push regression test with a fake mix command and marker assertion.

File Summary
test/​git_hooks_test.exs Updates pre-push coverage.
lib/​mix/​tasks/​precommit.ex Updates task documentation.
lib/​mix/​tasks/​git_hooks.ex Updates hook documentation.
git-hooks/​pre-push Removes redundant precommit execution.
documents/​quality-gates-decision.adoc Documents revised gate responsibilities.
app/​usage-rules.md Updates local hook guidance.
app/​test/​support/​issue_commands_helpers.ex Adds isolated stderr capture.
app/​test/​linear_cli/​cli/​commands/​issues/​relations_test.exs Migrates async stderr assertions.
app/​test/​linear_cli/​cli/​commands/​issues/​mutations_test.exs Migrates async stderr assertions.
app/​test/​linear_cli/​cli/​commands/​issues/​move_test.exs Migrates async stderr assertions.
app/​test/​linear_cli/​cli/​commands/​issues/​graph_test.exs Migrates async stderr assertions.
app/​test/​linear_cli/​cli/​commands/​issues/​create_test.exs Migrates async stderr assertions.
app/​mix.lock Updates dependency versions.
app/​lib/​linear_cli/​cli/​commands/​issues/​relations.ex Routes relation errors to injected stderr.
app/​lib/​linear_cli/​cli.ex Supports configurable stderr handling.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bougyman
bougyman merged commit 3f0575a into main Sep 22, 2026
3 checks passed
@bougyman
bougyman deleted the fix/stderr-capture-race branch September 22, 2026 18:39
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.

2 participants