Skip to content

Elixir 1.15 sometimes fails during mix release due to missing module #12777

@AndrewDryga

Description

@AndrewDryga

Elixir and Erlang/OTP versions

elixir 1.15.2-otp-26
erlang 26.0.2

Operating system

Ubuntu 22.04.2

Current behavior

We started to have issues with mix release that fails once in a while. Restarting the CI job most usually fixes the issue, so it's most likely some sort of race condition during compilation.

For crash errors see:

https://github.com/firezone/firezone/actions/runs/5491388141/jobs/10007864417#step:4:1638
https://github.com/firezone/firezone/actions/runs/5510881208/jobs/10045788818#step:9:1009

25.18 == Compilation error in file lib/web/mailer/auth_email.ex ==
25.18 ** (UndefinedFunctionError) function Web.Mailer.module_info/1 is undefined (module Web.Mailer is not available)
25.18     Web.Mailer.module_info(:exports)
25.18     (elixir 1.15.2) src/elixir_import.erl:143: :elixir_import.get_functions/1
25.18     (elixir 1.15.2) src/elixir_import.erl:106: :elixir_import.calculate/6
25.18     (elixir 1.15.2) src/elixir_import.erl:28: :elixir_import.import/4

you can see other builds that were successful at the same branch without any code changes, eg.:

https://github.com/firezone/firezone/actions/runs/5491969244/jobs/10009045418#step:4:2783 (the latter failed job was triggered on the same codebase by GitHub merge queue checks).

Expected behavior

Consistently compile the module as it was pre-1.15.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions