-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Test fails on OTP 26, Elixir 1.15.0 #12677
Comments
@josevalim Unfortunately even with OTP built with docs the same test fail happens on MacOS 12.6.6 with the same OTP 26 and Elixir 1.15.0 |
An example from macOS 12.6.6:
Unsure what that means since I explicitly set ELIXIR_ASSERT_TIMEOUT=80000 |
I fixed the failing test 2. I missed the first one but I tried it right now and it consistently passes. The timeout is rather because the release we are testing is not booting, we would need to find the root cause why or provide a way to consistently reproduce it. :( |
I have the same problem for the first mentioned failing test; in the log in which it's waiting for a message there is only the following:
This build was a fresh pull from master. I'll try to figure out why it can't find it but @josevalim will probably be faster than I ;) |
This is where the flag is used: https://github.com/elixir-lang/elixir/blob/main/bin/iex#L33 but I can’t see how it would be handled as a file. Can you folks boot IEx as usual? Do you have any env vars that configure Erlang or Elixir which could affect this behavior? Perhaps you are using a different shell? |
Hmm I have a relatively vanilla Arch install, no specific EnvVars for Elixir/Erlang running bash:
Experimenting with the release script from the test, the following options work:
|
I have the same issue. |
@josevalim (I see you've changed some of this code, but maybe it'll also help with that problem?) It seems that we're running into a problem with the startup script for The first part is that in the Line 236 in 7303e58
In some shells however it seems that echo "-e" triggers an option in echo to interpret escaped characters and returns an empty string (as there is no other input) effectively deleting the -e option and leaving us with ":elixir.start_iex()" . This is interpreted as a file in parse_args() as a fall-through. This is where the No file named :elixir.start_iex() comes from.
A general fix for this would be to have the filter function use |
@cjschneider2 great find. A PR for using |
Yea, I'll prepare one :) |
Fixes: elixir-lang#12677 using printf here prevents an error when outputting the filtered flag `-e` as doing with with `echo "-e"` doesn't output anything (deleting the option we wanted to filter). This is explained here better than I ever could: https://unix.stackexchange.com/a/65819
Closing in favor of the PR. |
Fixes #12677. Using printf here prevents an error when outputting the filtered flag `-e` as doing with with `echo "-e"` doesn't output anything (deleting the option we wanted to filter). More info: https://unix.stackexchange.com/a/65819
Fixes #12677. Using printf here prevents an error when outputting the filtered flag `-e` as doing with with `echo "-e"` doesn't output anything (deleting the option we wanted to filter). More info: https://unix.stackexchange.com/a/65819
Elixir and Erlang/OTP versions
Elixir 1.15.0
OTP 26.0
Operating system
FreeBSD 13.1
Current behavior
The failing test #1:
The failing test #2:
Also, I think there's a typo (detected by Grammarly):
"prunning" => "pruning" :)
Expected behavior
On Elixir 1.14.5 the "make -j6 test" went just fine with the same OTP version.
The text was updated successfully, but these errors were encountered: