Skip to content
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

Merged
merged 3 commits into from
Dec 16, 2024
Merged

Add OpenResty LuaJIT tests. #98

merged 3 commits into from
Dec 16, 2024

Conversation

vext01
Copy link
Contributor

@vext01 vext01 commented Dec 16, 2024

(plus some other tidy-ups)

@ltratt
Copy link
Contributor

ltratt commented Dec 16, 2024

Roughly how long do these take to run?

#
# - meta_arith_jit.lua:
#
# thread '<unnamed>' panicked at ykrt/src/compile/jitc_yk/codegen/x64/lsregalloc.rs:815:22:
Copy link
Contributor

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?

Copy link
Contributor Author

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!

Copy link
Contributor

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.

Copy link
Contributor Author

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 :)

@vext01
Copy link
Contributor Author

vext01 commented Dec 16, 2024

Roughly how long do these take to run?

Just over 2 minutes on b16.

Note that this is yklua, which doesn't see much action anyway.

@ltratt
Copy link
Contributor

ltratt commented Dec 16, 2024

Doh. You're right.

@ltratt ltratt added this pull request to the merge queue Dec 16, 2024
@ltratt ltratt removed this pull request from the merge queue due to a manual request Dec 16, 2024
@ltratt
Copy link
Contributor

ltratt commented Dec 16, 2024

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.

@vext01
Copy link
Contributor Author

vext01 commented Dec 16, 2024

Force pushed a fix. Can merge after ykjit/yk#1516

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:
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@ltratt ltratt added this pull request to the merge queue Dec 16, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 16, 2024
@ltratt
Copy link
Contributor

ltratt commented Dec 16, 2024

luajit2-test-suite/test/misc/stackov.lua:3: stack overflow

I wonder if we have to do something manual to increase Lua's stack?

@vext01
Copy link
Contributor Author

vext01 commented Dec 16, 2024

The test is checking that stack overflows are detected.

https://github.com/openresty/luajit2-test-suite/blob/master/test/misc/stackov.lua

@ltratt
Copy link
Contributor

ltratt commented Dec 16, 2024

Ah, I see the problem. Fixing.

@ltratt ltratt added this pull request to the merge queue Dec 16, 2024
Merged via the queue into ykjit:main with commit c27a31d Dec 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants