-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add OpenResty LuaJIT tests. #98
Conversation
Roughly how long do these take to run? |
third_party_tests/run.sh
Outdated
# | ||
# - meta_arith_jit.lua: | ||
# | ||
# thread '<unnamed>' panicked at ykrt/src/compile/jitc_yk/codegen/x64/lsregalloc.rs:815:22: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. We should work out what's causing that, as that really shouldn't happen. Can we try minimising this one down?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. I can look at that today after your PRs are in. It may already be obsolete!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That said, I don't mind getting this PR in (assuming the CI time isn't unreasonable), then fixing this in-tree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, just measuring. Amusingly had to search for which package contains time
to put in the dockerfile :)
Just over 2 minutes on b16. Note that this is yklua, which doesn't see much action anyway. |
Doh. You're right. |
Please force push an update which removes the comment about failing tests and reinstates those tests. When the latest yk PR has merged, I can then try this PR. |
Force pushed a fix. Can merge after ykjit/yk#1516 |
third_party_tests/run.sh
Outdated
tnew_tdup.lua uclo.lua unordered_jit.lua unordered.lua vararg_jit.lua \ | ||
wbarrier_jit.lua wbarrier.lua wbarrier_obar.lua xpcall_jit.lua" | ||
|
||
# Reasons for skipping tests: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please force push a fix which removes this comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! Fixed with force push.
https://github.com/openresty/luajit2-test-suite We run a subset of it. See comment in `run.sh` for which subset.
I wonder if we have to do something manual to increase Lua's stack? |
The test is checking that stack overflows are detected. https://github.com/openresty/luajit2-test-suite/blob/master/test/misc/stackov.lua |
Ah, I see the problem. Fixing. |
(plus some other tidy-ups)