Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Switch Elixir tests back to pipes #170

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

halostatue
Copy link
Member

@halostatue halostatue commented Jan 3, 2025

As part of elixir-lang/elixir#14136, I learned about MIX_QUIET, to suppress Mix.shell() output. Using this would not have worked with the generator, but the generator was using Mix.shell.info/1 to output the JSON suite data. Changing that to IO.write(:stdio, …) means that we can use MIX_QUIET=1 for our tests.

Running this manually with Elixir 1.18.0 will still fail unless MIX_QUIET=1 is specified, but Elixir 1.18.1 or later will have this fixed because the lock warnings are written to stderr instead of stdout.

@halostatue halostatue enabled auto-merge (rebase) January 3, 2025 00:16
As part of elixir-lang/elixir#14136, I learned about MIX_QUIET, to
suppress `Mix.shell()` output. Using this would not have worked with the
generator, but the generator was using `Mix.shell.info/1` to output the
JSON suite data. Changing that to `IO.write(:stdio, …)` means that we
can use `MIX_QUIET=1` for our tests.

Running this manually with Elixir 1.18.0 will still fail unless
`MIX_QUIET=1` is specified, but Elixir 1.18.1 or later will have this
fixed because the lock warnings are written to stderr instead of stdout.

Signed-off-by: Austin Ziegler <[email protected]>
@halostatue halostatue force-pushed the restore-elixir-pipe-tests branch from f7d6cd1 to 4134b6e Compare January 3, 2025 00:29
@halostatue halostatue merged commit 765272c into main Jan 3, 2025
46 of 50 checks passed
@halostatue halostatue deleted the restore-elixir-pipe-tests branch January 3, 2025 00:32
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