-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[wasi] CI: Add AOT library tests job #95146
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
22d7399
[wasm] Move LocalBuild, and aot targets to wasm/shared
radical 472328f
Runner scripts: honor $PREPEND_PATH
radical bc86434
Add support for AOT projects on helix, for wasi
radical a1d0866
CI: Add wasi aot smoke test projects
radical fc5d467
misc fixes
radical df63c04
Add WasiRunnerAOTTemplate.sh
radical 02a3c14
CI: Add jobs for wasi aot/smoke tests
radical f7280cb
CI: Add wasi/aot jobs on runtime-wasm
radical 23d0d05
CI: fix wasi tests list
radical cd483cf
Fix wasi/windows builds where WasmAssemblyFileName contains the path …
radical 01be514
Remove failing tests
radical e08e7cb
[wasm] WBT: Set RID explicitly only for library tests
radical e3c033e
[wasi] Add --engine-arg=--max-wasm-stack=134217728 for library tests,…
radical 9dca004
[wasi] CI: Use shouldContinueOnError=true for aot library tests
radical File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
#!/usr/bin/env bash | ||
|
||
# SetCommands defined in eng\testing\tests.wasm.targets | ||
[[SetCommands]] | ||
[[SetCommandsEcho]] | ||
|
||
EXECUTION_DIR=$(dirname $0) | ||
if [[ -n "$3" ]]; then | ||
SCENARIO=$3 | ||
fi | ||
|
||
export PATH=$PREPEND_PATH:$PATH | ||
|
||
if [[ -z "$HELIX_WORKITEM_UPLOAD_ROOT" ]]; then | ||
XHARNESS_OUT="$EXECUTION_DIR/xharness-output" | ||
else | ||
XHARNESS_OUT="$HELIX_WORKITEM_UPLOAD_ROOT/xharness-output" | ||
fi | ||
|
||
if [[ -n "$XHARNESS_CLI_PATH" ]]; then | ||
# When running in CI, we only have the .NET runtime available | ||
# We need to call the XHarness CLI DLL directly via dotnet exec | ||
HARNESS_RUNNER="dotnet exec $XHARNESS_CLI_PATH" | ||
else | ||
HARNESS_RUNNER="dotnet xharness" | ||
fi | ||
|
||
if [[ -z "$XHARNESS_COMMAND" ]]; then | ||
XHARNESS_COMMAND="test" | ||
fi | ||
|
||
echo PATH=$PATH | ||
echo EXECUTION_DIR=$EXECUTION_DIR | ||
echo SCENARIO=$SCENARIO | ||
echo XHARNESS_OUT=$XHARNESS_OUT | ||
echo XHARNESS_CLI_PATH=$XHARNESS_CLI_PATH | ||
echo HARNESS_RUNNER=$HARNESS_RUNNER | ||
echo XHARNESS_COMMAND=$XHARNESS_COMMAND | ||
echo XHARNESS_ARGS=$XHARNESS_ARGS | ||
|
||
function _buildAOTFunc() | ||
{ | ||
local projectFile=$1 | ||
local binLog=$2 | ||
shift 2 | ||
|
||
time dotnet msbuild $projectFile /bl:$binLog $* | ||
local buildExitCode=$? | ||
|
||
echo "\n** Performance summary for the build **\n" | ||
dotnet msbuild $binLog -clp:PerformanceSummary -v:q -nologo | ||
if [[ "$(uname -s)" == "Linux" && $buildExitCode -ne 0 ]]; then | ||
echo "\nLast few messages from dmesg:\n" | ||
local lastLines=`dmesg | tail -n 20` | ||
echo $lastLines | ||
|
||
if [[ "$lastLines" =~ "oom-kill" ]]; then | ||
return 9200 # OOM | ||
fi | ||
fi | ||
|
||
echo | ||
echo | ||
|
||
if [[ $buildExitCode -ne 0 ]]; then | ||
return 9100 # aot build failure | ||
fi | ||
|
||
return 0 | ||
} | ||
|
||
pushd $EXECUTION_DIR | ||
|
||
# ========================= BEGIN Test Execution ============================= | ||
echo ----- start $(date) =============== To repro directly: ===================================================== | ||
echo pushd $EXECUTION_DIR | ||
# RunCommands defined in eng\testing\tests.wasm.targets | ||
[[RunCommandsEcho]] | ||
echo popd | ||
echo =========================================================================================================== | ||
pushd $EXECUTION_DIR | ||
# RunCommands defined in eng\testing\tests.wasm.targets | ||
[[RunCommands]] | ||
_exitCode=$? | ||
popd | ||
echo ----- end $(date) ----- exit code $_exitCode ---------------------------------------------------------- | ||
|
||
echo "XHarness artifacts: $XHARNESS_OUT" | ||
|
||
exit $_exitCode |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.