Commit Graph

663 Commits

Author SHA1 Message Date
dnrops f65aa01e50 Update Package.swift 2024-08-27 21:07:47 +08:00
dnrops 591a81532a Update Package.swift 2024-08-27 21:01:44 +08:00
dnrops aefa2fa0e1 Update Package.swift 2024-08-27 20:55:01 +08:00
dnrops 5cac4aa586 Update Package.swift 2024-08-27 20:49:25 +08:00
Yuta Saito 1b2abfd880
Inherit all env-var from host and add `--env` option to `carton-test` (#495)
This change introduces a new feature in the carton-test command, allowing users
to pass environment variables to the test process via a new `--env` option.
Additionally, it ensures that all environment variables from the host system are
inherited by the guest test process.
2024-08-26 21:32:48 +09:00
Alexander Cyon 348d9f471e
Fix some typos (#493) 2024-08-19 17:47:23 +09:00
Yuta Saito d3f1da61fa Bump version to 1.1.2, update CHANGELOG.md 2024-06-24 14:58:51 +09:00
Yuta Saito a18bcb18b9
Percent decode the URI for the static resource requests (#491) 2024-06-24 14:40:20 +09:00
Yuta Saito 3e08f7d793
Put `--dir` wasmtime option before the test file path (#490) 2024-06-21 13:38:16 +09:00
Yuta Saito dca59f36ad Bump version to 1.1.1, update CHANGELOG.md 2024-06-21 02:26:02 +00:00
Yuta Saito 80169bc0c9
Remove the workaround for the linker issue in Swift 6.0 (#488) 2024-06-21 01:55:50 +09:00
Yuta Saito 6a41c96914 Fix `carton bundle` regression
The issue was introduced in faee016aca
2024-06-20 12:21:25 +09:00
Yuta Saito 0aa0cb7a24
Newline after command-line logging output (#487) 2024-06-14 02:18:22 +09:00
Yuta Saito 078b3520a6
Add shared memory support to entrypoint scripts (#486)
* Add shared memory support

* Update wasm-imports-parser to fix buffer source issue
2024-06-14 01:10:48 +09:00
Yuta Saito 1b7daf2c92
Fix Node.js test harness to output stdout/stderr (#485)
* Fix Node.js test harness to output stdout/stderr

Follow-up to 3cb3877d98

Also added test assertion to ensure the XCTest output
is printed to stderr

* Fix test for Swift 5.10
2024-06-13 22:45:06 +09:00
omochimetaru 193722e4fd
Add Swift 6.0 CI for Linux (#482)
* adaptive default toolchain with buidler of carton

* add Linux CI

* --enable-sign-ext

* elseif
2024-06-11 13:58:57 +09:00
omochimetaru 79b686c73d
Apply runtime library workaround for snapshot toolchains on macOS (#484)
* patch mac snapshot

* comment

* set DYLD_LIBRARY_PATH if need

* reset stdin pgrp

* revert wip default toolchain

* fix test

* desudo

* avoid setting nil

* link RegexParser

* swift_StringProcessing

* preopen on wasmtime

* fix bug in test runner option

* apply patch also command mode

* cap hack version
2024-06-11 07:57:10 +09:00
omochimetaru 2f6de6cac3
Add Swift 6.0 CI for building carton for macOS (#483)
* add Swift 6 in CI with special hack

* revert meaningless indent diff
2024-06-10 11:44:02 +09:00
omochimetaru 1dc1649262
Adaptive default toolchain version based on Swift version on builder (#481)
adaptive default toolchain with buidler of carton
2024-06-09 12:46:31 +00:00
omochimetaru 8c7ac43e79
Skip hot-reloading if build fails (#480)
* Send error from plugin

* revert loglevel change
2024-06-08 14:27:32 +09:00
omochimetaru f734c39ed8
Verify if tests communicate with just spawned dev server (#479) 2024-06-06 14:46:43 +00:00
Yuta Saito 5176c6abb4 Bump version to 1.1.0, update CHANGELOG.md 2024-06-06 11:37:16 +00:00
Yuta Saito 984a1ae2db
Update default toolchain version to 5.10.0 (#476)
* Check 5.10 RC toolchain

* Update the default toolchain version to stable wasm-5.10.0-RELEASE
2024-06-06 02:19:24 +09:00
omochimetaru 924e1713cd
Refactor utilities under Foundation.Process and CartonHelpers.Process and share implementations (#477)
* organizer process utilities

* resurrect ProcessResult.checkNonZeroExit

* import Foundation

* use SIGINT

* remove didExit and tweak bundle completion message
2024-06-04 12:39:08 +00:00
Yuta Saito 5eebe1ff5c
Add `-Xwasm-opt` option to `bundle` subcommand (#478)
The `-Xwasm-opt` option allows users to pass extra flags to `wasm-opt`
optimizer. This is especially useful for enabling some future features
like `--enable-threads`
2024-06-04 02:02:19 +09:00
omochimetaru b8048c4830
Add --bind to specify serving address with relaxed default (0.0.0.0) (#475) 2024-06-03 16:07:03 +09:00
omochimetaru 305c204495
Check the output of wasm in dev subcommand test (#473) 2024-05-28 22:08:39 +09:00
omochimetaru f7d0b5640f
Combine the WebDriver setup process into WebDriverService and make it easier to reuse (#474) 2024-05-28 10:12:51 +09:00
omochimetaru 6cc68d3ba8
Show stdout/stderr from Wasm in terminal (#472) 2024-05-25 09:06:24 +09:00
omochimetaru 3cb3877d98
Send stdout/stderr from WasmRunner to dev server without decoding as UTF-8 (#471)
* Enable WasmRunner to handle stdout as raw binary

* catch other errors

* move devDeps

* use browser exception handling

* comment out
2024-05-25 01:33:13 +09:00
omochimetaru 59730f982f
Add granular configuration for retrying wait time in test (#470)
* kick CI

* improve withRetry utility
2024-05-23 14:37:20 +09:00
omochimetaru b26110bfa2
Remove test utility `ls` (#469)
* remove ls

* kick CI
2024-05-23 00:53:38 +09:00
Yuta Saito b62424fc6f
Merge pull request #468 from omochi/reduce-test-utils
Cleanup unnecessary test utilities
2024-05-22 22:34:25 +09:00
omochimetaru a599a50532 remove AbsolutePath.exists 2024-05-22 22:06:55 +09:00
omochimetaru 9c89fe7847 remove AbsolutePath.url 2024-05-22 22:00:52 +09:00
omochimetaru cd9ead1398 Merge remote-tracking branch 'origin/main' into reduce-test-utils 2024-05-22 21:55:37 +09:00
omochimetaru c678563026 remove AbsolutePath.url 2024-05-22 21:55:16 +09:00
Yuta Saito 8f9be7d31e Bump version to 1.0.4, update CHANGELOG.md 2024-05-22 14:53:03 +09:00
Yuta Saito bde6016556
Merge pull request #467 from swiftwasm/katei/revert-b3844c1
Revert "Skips browser testing due to freezing"
2024-05-22 13:13:55 +09:00
Yuta Saito 5959492410 Fix `checkCartonTestFail` to ensure the process terminated with non-zero code 2024-05-22 12:51:51 +09:00
Yuta Saito 44d893c1f2 Remove .dockerignore file because we no longer publish container images 2024-05-22 12:26:21 +09:00
Yuta Saito d5b873145a Revert "Skips browser testing due to freezing"
This reverts commit f6f1712733.
2024-05-22 12:21:30 +09:00
Yuta Saito 506e27dae3
Create note about release workflow 2024-05-22 12:09:40 +09:00
Yuta Saito 026796b47d Make carton npm package private
We don't want to publish the package and set the version to 0.0.0 to
avoid version-bumping operations.
2024-05-22 11:56:06 +09:00
omochimetaru eba0fdb76c
Add unit test for dev server (#466)
* make CartonCore module and move Environment

* refactor DevCommandTests.checkForExpectedContent

* add DevServerTestApp Fixture

* add FrontendDevServerTests
2024-05-22 11:31:19 +09:00
Yuta Saito 078f1edf58
Fix dev server to serve entrypoint file (#465)
The server served `~/.carton/static` directory but we no longer use the
directory. Instead, we now serve the entrypoint from in-memory buffer.
2024-05-21 11:18:23 +09:00
omochimetaru 79d686b7cb
Rename `createWSHandler` -> `createWebSocketTextHandler` (#464)
rename createWSHandler
2024-05-20 15:33:36 +00:00
omochimetaru 2db7b6964a
Fix bugs in `Process.checkRun` of CartonDriver (#463)
fix driver process util
2024-05-21 00:26:26 +09:00
omochimetaru 3ec3d2ce66
TSC.Processの実装内部のdeprecated警告を潰す (#462)
seal deprecated tsc api
2024-05-20 23:53:57 +09:00
omochimetaru 6f4c5302f8
Stream command outputs while capturing them for testing (#461)
* Stream and capture both from swift-run in testcase

* kick ci
2024-05-20 22:55:34 +09:00