Skip to content

Prevent install from running in test env #992

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

unflxw
Copy link
Contributor

@unflxw unflxw commented Mar 19, 2025

In Elixir 1.18, mix test will attempt to re-run the installation Mix task again. As it's running in test mode, the modules it depends on will have been stubbed out by our test config. But the processes for those modules have not been started yet, so the task crashes.

Guard against this when the task starts and bail out if in test env.

WARNING: This is a draft to work around the issue. I have no idea what unintended effects this has -- can the tests for the helper task even run now? Do not merge this without further testing.

In Elixir 1.18, `mix test` will attempt to re-run the installation
Mix task again. As it's running in test mode, the modules it
depends on will have been stubbed out by our test config. But the
processes for those modules have not been started yet, so the task
crashes.

Guard against this when the task starts and bail out if in test env.

WARNING: This is a draft to work around the issue. I have no idea
what unintended effects this has -- can the tests for the helper
task even run now? Do not merge this without further testing.
@backlog-helper
Copy link

backlog-helper bot commented Mar 19, 2025

✔️ All good!

New issue guide | Backlog management | Rules | Feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants