Skip to content

Conversation

@schneems
Copy link
Collaborator

For some reason yjit tests on ruby/ruby are failing against the current code:

$ time RUBY_YJIT_ENABLE=1 RUBY_TESTOPS="-q --tty=no" make -s check RUN_OPTS=""
# ...
# Fails

While this works without yjit enabled it seems the problem is related to an error happening within the SyntaxError#detailed_message. It also seems that the other part of the equation is autoload with a gem on disk (instead of something in the stdlib).

One immediate fix is to ensure that if there are any internal errors, that the original syntax error always takes precedent. I've tried to reproduce the failure removing dead_end but I'm unable to, so I want to move ahead. If we find dead_end does not work with YJIT in cases in the future then the YJIT team (and I) can investigate.

For some reason yjit tests on ruby/ruby are failing against the current code:

```
$ time RUBY_YJIT_ENABLE=1 RUBY_TESTOPS="-q --tty=no" make -s check RUN_OPTS=""
# ...
# Fails
```

While this works without yjit enabled it seems the problem is related to an error happening within the `SyntaxError#detailed_message`. It also seems that the other part of the equation is `autoload` with a gem on disk (instead of something in the stdlib). 

One immediate fix is to ensure that if there are any internal errors, that the original syntax error always takes precedent. I've tried to reproduce the failure removing dead_end but I'm unable to, so I want to move ahead. If we find dead_end does not work with YJIT in cases in the future then the YJIT team (and I) can investigate.
@schneems schneems marked this pull request as ready for review May 27, 2022 16:31
@schneems schneems merged commit 7f0516a into main May 27, 2022
@schneems schneems deleted the schneems/y-u-no-yjit branch May 27, 2022 16:32
schneems added a commit to schneems/ruby that referenced this pull request May 27, 2022
From ruby/syntax_suggest#144

Fixes error:

```
   F#1438 test_syntax.rb:630: 
       $stderr = STDOUT
       eval("\"\xf0".force_encoding("utf-8"))
    #=> /invalid multibyte char/ expected to be =~
  "bootstraptest.test_syntax.rb_630_1438.rb:3:in `eval': SyntaxError\n\tfrom bootstraptest.test_syntax.rb_630_1438.rb:3:in `<main>'\n"  [ruby-dev:32429]
  FAIL 1/1735 tests failed
  make: *** [uncommon.mk:777: yes-btest-ruby] Error 1
```

From https://github.com/ruby/ruby/runs/6576796660?check_suite_focus=true
schneems added a commit to schneems/ruby that referenced this pull request Jun 4, 2022
From ruby/syntax_suggest#144

Fixes error:

```
   F#1438 test_syntax.rb:630:
       $stderr = STDOUT
       eval("\"\xf0".force_encoding("utf-8"))
    #=> /invalid multibyte char/ expected to be =~
  "bootstraptest.test_syntax.rb_630_1438.rb:3:in `eval': SyntaxError\n\tfrom bootstraptest.test_syntax.rb_630_1438.rb:3:in `<main>'\n"  [ruby-dev:32429]
  FAIL 1/1735 tests failed
  make: *** [uncommon.mk:777: yes-btest-ruby] Error 1
```

From https://github.com/ruby/ruby/runs/6576796660?check_suite_focus=true
schneems added a commit to schneems/ruby that referenced this pull request Jul 26, 2022
From ruby/syntax_suggest#144

Fixes error:

```
   F#1438 test_syntax.rb:630:
       $stderr = STDOUT
       eval("\"\xf0".force_encoding("utf-8"))
    #=> /invalid multibyte char/ expected to be =~
  "bootstraptest.test_syntax.rb_630_1438.rb:3:in `eval': SyntaxError\n\tfrom bootstraptest.test_syntax.rb_630_1438.rb:3:in `<main>'\n"  [ruby-dev:32429]
  FAIL 1/1735 tests failed
  make: *** [uncommon.mk:777: yes-btest-ruby] Error 1
```

From https://github.com/ruby/ruby/runs/6576796660?check_suite_focus=true
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