Skip to content

Silence noisy Elixir make-all task output#24

Merged
frantic-openai merged 1 commit intomainfrom
fix/elixir-quiet-make-all-output
Mar 3, 2026
Merged

Silence noisy Elixir make-all task output#24
frantic-openai merged 1 commit intomainfrom
fix/elixir-quiet-make-all-output

Conversation

@frantic-openai
Copy link
Collaborator

Context

Expected Mix task stderr/stdout and Elixir 1.19 helper-file warnings made make -C elixir all look broken even when it passed.

TL;DR

Silence expected task-test output and ignore helper files so make -C elixir all stays clean.

Summary

  • Capture expected stdout and stderr in Mix task tests instead of leaking them into passing runs.
  • Add a helper for workspace.before_remove tests to assert both streams without noisy console output.
  • Ignore test/support/*.exs in Mix test loading to remove Elixir 1.19 cover warnings.

Alternatives

  • Leave the noisy output in place, but that keeps make -C elixir all looking unhealthy and hides real failures.

Test Plan

  • make -C elixir all
  • cd elixir && mix test test/mix/tasks/pr_body_check_test.exs
  • cd elixir && mix test test/mix/tasks/workspace_before_remove_test.exs

Summary:
- capture expected stderr/stdout in task tests so passing runs stay quiet
- ignore test support helpers in Mix's test loader to avoid cover
  warnings

Rationale:
- keep `make all` output actionable by removing intentional
  failure-path noise from passing tests
- align test discovery with Elixir 1.19, which warns on unmatched
  helper files

Tests:
- `mix test test/mix/tasks/pr_body_check_test.exs`
- `mix test test/mix/tasks/workspace_before_remove_test.exs`
- `mix test --cover`
- `make all`

Co-authored-by: Codex <codex@openai.com>
@frantic-openai frantic-openai merged commit 52d7b81 into main Mar 3, 2026
2 checks passed
@frantic-openai frantic-openai deleted the fix/elixir-quiet-make-all-output branch March 3, 2026 23:58
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