diff options
author | Thays Grazia <thaystg@gmail.com> | 2022-08-12 19:28:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 19:28:46 +0300 |
commit | 3db2ebfcfa2b5c7074a7e513a56a39f07f6ce6c0 (patch) | |
tree | 6ab4e2de781eb3fd8531cd983148c0ce311ee34a /eng | |
parent | 21dc0040b5d6cd52501d9c502fb3ddbc23db97d7 (diff) |
[debugger] First draft of managed debugger on wasi (#67272)
* first version of debug wasi
* remove comment
* fixing readme
* Fix compilation error
* fix compilation error
* fix compilation
* addressing steve comment
* Stepping working
* fix debugging aspnetcore app
* wrong merge
* addressing @viniciusjarina comment
* addressing steve comments
* work for remote debugging
* make it work on windows
* Update mini-wasi-debugger.c
fix indentation
* Update mini-wasi-debugger.c
* Update mini-wasi-debugger.c
* Trying to fix compilation
* Update src/mono/mono/component/mini-wasi-debugger.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/mono/component/mini-wasi-debugger.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/mono/component/mini-wasi-debugger.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/mono/component/debugger-agent.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/mono/component/debugger-agent.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/mono/mini/interp/interp.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/mono/mini/interp/interp.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/wasi/Makefile
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/wasi/mono-wasi-driver/driver.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Update src/mono/mono/component/debugger-agent.c
Co-authored-by: Ankit Jain <radical@gmail.com>
* Addressing @radical comments
* fix compilation errors
* fixing readme
* debugger working again
* addressing @BrzVlad comments
* Addressing @radical comments
* Fix merge
* Fix merge
* Update diagnostics_server.c
* Treat root directory as always existing, even if WASI isn't granting filesystem access. Needed for ASP.NET Core.
* Update sample build config
* Stop trying to use JS (browser) APIs for crypto, as there is no JS in wasi
* Revert unneeded change
* Apply suggestions from code review
Co-authored-by: Ankit Jain <radical@gmail.com>
* Addressing @radical comments
* Addressing @radical comments
* fixing debugger behavior and addressing @radical comments
* Addressing @ SteveSandersonMS comments
* Apply suggestions from code review
Co-authored-by: Ankit Jain <radical@gmail.com>
* Addressing radical comments
* [wasi] Provision wasmtime as needed
* [wasi] build, and run wasi sample on CI
* [wasi] don't install wasmtime by default, but do that for CI
* [wasi] Show a useful error if wasmtime is not found
* [wasi] provision ninja
* Fix path
* Fix warnings to make CI green
* debug
* Move building wasi into a separate yml step, so it gets built after the whole wasm build is complete
* fix yml
* Enable wasi build on libtests job
* Fix yml again
Co-authored-by: Ankit Jain <radical@gmail.com>
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Diffstat (limited to 'eng')
-rw-r--r-- | eng/pipelines/common/templates/additional-steps-then-helix.yml | 40 | ||||
-rw-r--r-- | eng/pipelines/common/templates/wasm-library-tests.yml | 11 | ||||
-rw-r--r-- | eng/pipelines/runtime.yml | 1 |
3 files changed, 51 insertions, 1 deletions
diff --git a/eng/pipelines/common/templates/additional-steps-then-helix.yml b/eng/pipelines/common/templates/additional-steps-then-helix.yml new file mode 100644 index 00000000000..af5c335b6d8 --- /dev/null +++ b/eng/pipelines/common/templates/additional-steps-then-helix.yml @@ -0,0 +1,40 @@ +parameters: + archType: '' + buildConfig: '' + condition: always() + creator: '' + extraHelixArguments: '' + helixQueues: '' + interpreter: '' + osGroup: '' + additionalSteps: [] + runTests: true + runtimeFlavor: '' + shouldContinueOnError: false + targetRid: '' + testRunNamePrefixSuffix: '' + testScope: 'innerloop' # innerloop | outerloop | all + scenarios: ['normal'] + +steps: + - ${{ if ne(parameters.additionalSteps, '') }}: + - ${{ each additionalStep in parameters.additionalSteps }}: + - ${{ additionalStep }} + + - ${{ if eq(parameters.runTests, true) }}: + - template: /eng/pipelines/libraries/helix.yml + parameters: + runtimeFlavor: ${{ parameters.runtimeFlavor }} + archType: ${{ parameters.archType }} + buildConfig: ${{ parameters.buildConfig }} + helixQueues: ${{ parameters.helixQueues }} + osGroup: ${{ parameters.osGroup }} + targetRid: ${{ parameters.targetRid }} + testRunNamePrefixSuffix: ${{ parameters.testRunNamePrefixSuffix }} + testScope: ${{ parameters.testScope }} + interpreter: ${{ parameters.interpreter }} + condition: ${{ parameters.condition }} + shouldContinueOnError: ${{ parameters.shouldContinueOnError }} + extraHelixArguments: ${{ parameters.extraHelixArguments }} /p:BrowserHost=$(_hostedOs) + creator: dotnet-bot + scenarios: ${{ parameters.scenarios }} diff --git a/eng/pipelines/common/templates/wasm-library-tests.yml b/eng/pipelines/common/templates/wasm-library-tests.yml index ada2484fedc..a1f28093bfc 100644 --- a/eng/pipelines/common/templates/wasm-library-tests.yml +++ b/eng/pipelines/common/templates/wasm-library-tests.yml @@ -1,5 +1,6 @@ parameters: alwaysRun: false + buildAndRunWasi: false extraBuildArgs: '' extraHelixArgs: '' isExtraPlatformsBuild: false @@ -49,8 +50,16 @@ jobs: eq(dependencies.evaluate_paths.outputs['SetPathVars_allwasm.containsChange'], true), eq(dependencies.evaluate_paths.outputs['SetPathVars_mono.containsChange'], true)) # extra steps, run tests - extraStepsTemplate: /eng/pipelines/libraries/helix.yml + extraStepsTemplate: /eng/pipelines/common/templates/additional-steps-then-helix.yml extraStepsParameters: + additionalSteps: + - ${{ if eq(parameters.buildAndRunWasi, true) }}: + - script: >- + make -C src/mono/wasi provision-deps all && + make -C src/mono/wasi/sample/console run + name: build_wasi + displayName: Build Wasi, and run a sample + creator: dotnet-bot testRunNamePrefixSuffix: Mono_$(_BuildConfig) extraHelixArguments: /p:BrowserHost=$(_hostedOs) ${{ parameters.runSmokeOnlyArg }} ${{ parameters.extraHelixArgs }} diff --git a/eng/pipelines/runtime.yml b/eng/pipelines/runtime.yml index 1fa8399501b..dddba18e3d1 100644 --- a/eng/pipelines/runtime.yml +++ b/eng/pipelines/runtime.yml @@ -360,6 +360,7 @@ jobs: parameters: platforms: - Browser_wasm + buildAndRunWasi: true alwaysRun: ${{ variables.isRollingBuild }} scenarios: - normal |