-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Re-add truffleruby-head to CI #1737
Conversation
A single failure:
That will most likely be fixed by oracle/truffleruby#2155 |
Do you have an ETA for that truffleruby PR? Are you sure all other specs suites being run pass on truffleruby? Unlike Travis, GitHub Actions does not allow for marking that a specific matrix instance can fail, so we shouldn't include truffleruby until it can pass the entire suite. |
I think it should be merged the coming week. |
I know little about GitHub Actions, but from what I've read, |
Looks like there is still issues beyond the core spec failure. So if you want to do this, you should probably add a separate yaml file for truffleruby that uses |
Looks like it's 2 failures, but maybe there are more in test suites running after. I'll make a PR for the first 2 commits so we can already merge those separately: #1742 |
I tried Will try If that doesn't work, probably the best would be to look at those failures and/or exclude them. |
You have to look at the spec output. There is a failure in the model spec, which means the plugin, SQLite, PostgreSQL, and MySQL specs didn't even run. |
b53a6fa
to
f82106d
Compare
With I'll try that on this PR. |
f82106d
to
942bb87
Compare
@jeremyevans While trying to debug this, I noticed something a bit odd. sequel/spec/model/associations_spec.rb Line 4727 in 21ab4ce
is {:b=>#<Album::B @values={:id=>1, :x=>1}>} .But as far as I could see, there is never a x column or attribute for Album::B , is that a bug?
Executing the failing spec examples individually on TruffleRuby actually passes, so it sounds like there is some global state that's not cleaned in that spec. |
* continue-on-error is confusing on PRs and it looks like CI failed even though it was an expected failure. See https://github.com/actions/toolkit/issues/399#issuecomment-738700569
I've used the step-level continue-on-error due to several issues with job-level continue-on-error, and posted feedback to GitHub about it in actions/runner#2347. I tried to investigate the failures but I couldn't figure out what was the issue, and the failing tests seem rather confusing to me so I'm not sure what's the expected behavior (notably is it OK to have So I suggest to merge this, now the CI should appear green, and I'll figure out a way to find out if the specs actually passed or not. |
I think this works fine. Are you going to be monitoring the output of the truffleruby-head job until it passes?
Yes, that is OK and fairly normal. The spec works fine on both CRuby and JRuby, so seems unlikely to be a bug in the spec. The model spec database defaults to That model spec doesn't use
That seems reasonable. Thank you for working on this. |
Yes, I'll keep an eye on it with https://github.com/eregon/truffleruby-gem-tracker To actually solve the failing specs it would be super helpful to have your help so I can understand better what it's testing. |
The spec you link to (line 4727) is testing that One failing spec is: Album::B.dataset = Album::B.dataset.with_fetch(:album_id=>1, :id=>2)
@o.b.must_equal Album::B.load(:id=>2, :album_id=>1)
# TruffleRuby returns Album::B.load(:id=>1, :x=>1) This shows that TruffleRuby is not picking up the overridden fetch results for The other is: b = Album::B.load(:id=>2, :album_id=>nil)
b.album = @o
@o.associations[:b].must_be_nil
@o = @o.dup
b = Album::B.load(:id=>2, :album_id=>nil)
b.album = @o
@o.associations[:b].must_equal Album::B.load(:id=>2, :album_id=>1)
# TruffleRuby returns nil instead of Album::B instance This shows TruffleRuby is not setting the reciprocal association in |
Same as jeremyevans/roda#200 but for Sequel.
I guess truffleruby was removed unintentionally in c11fbeb