-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Fix github actions failures. #3478
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
Fix github actions failures. #3478
Conversation
e527df2 to
a66ac44
Compare
|
Also added an attempted fix for #3433 Basically, we're just doing @zakkak can you verify this is what the |
| ${MX_PATH}/mx --primary-suite-path ${PRIMARY} --J @"-Xmx2g" --java-home=${JAVA_HOME} gate --strict-mode --tags ${GATE} | ||
| fi | ||
| ${MX_PATH}/mx --primary-suite-path ${PRIMARY} --J @"-Xmx2g" --java-home=${JAVA_HOME} gate --strict-mode --tags ${GATE} |
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.
This will build a GraalVM release that contains the /substratevm suite.
After running this,
$(mx --primary-suite-path ${PRIMARY} graalvm-home) contains a working bin/native-image bash-launcher.
i.e. this looks good.
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.
Unfortunately this is not enough to test if things work outside a VCS repo, please see #3478 (comment) for more details.
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.
Unfortunately this is not enough to test if things work outside a VCS repo
Since 6eee91e got merged almost all substrate-related mx commands (like e.g. mx native-image or mx native-image-configure) are just calling artifacts that got built as part of running mx build in the substratevm directory. In other words if mx build (or mx gate --tags build) succeeded you can safely assume that mx native-image --help also works since its just calling the native-image bash launcher that is located at $(mx --primary-suite-path ${PRIMARY} graalvm-home)/bin/native-image after mx build made sure it got created there.
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.
I guess we could also do this:
PRIMARY=vm
DYNAMIC_IMPORTS=/substratevm,/sulong,/tools
NATIVE_IMAGES=polyglot # to save some time
GATE=build
It's not literally building everything, but it would exercise almost every different category of stuff there is to build (e.g. Java projects, native projects, a native-image launcher, ...).
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.
I see, I admit I didn't check the latest state of mx_substratevm.py, my mistake. Thanks for making this clear Paul.
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.
It's not literally building everything, but it would exercise almost every different category of stuff there is to build (e.g. Java projects, native projects, a native-image launcher, ...).
Yup that would give pretty good coverage.
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.
Done, and seems to be working (at least on github, still waiting for the internal gate to finish).
Unfortunately, as stated in #2738 (comment)
|
This is not true anymore. So with my changes on master it is now indeed sufficient for testing if building without VCS works to run |
|
I see, I admit I didn't check the latest state of mx_substratevm.py, my mistake. Thanks for making this clear Paul. |
zakkak
left a 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.
Thanks for the fix @rschatz
Ah, I see, that explains my confusion. Also good to hear that it's not necessary anymore ;) |
a0adce7 to
fc459f5
Compare
|
Thanks @rschatz |
Trying to fix #3423