Commit Graph

298 Commits

Author SHA1 Message Date
Yuta Saito 8f9be7d31e Bump version to 1.0.4, update CHANGELOG.md 2024-05-22 14:53:03 +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
omochimetaru 7613683095
Import upstream changes of `TSC.Process` (#460) 2024-05-20 18:27:46 +09:00
omochimetaru bb9a91ce0b
Move carton command implementation into CartonDriver module (#459) 2024-05-20 14:31:00 +09:00
omochimetaru e030a494f9
Bug fix on makeTemporaryFile (#457) 2024-05-20 08:56:03 +09:00
omochimetaru e7e0d1174c
Re-organize the naming convention of module, type, product, and file to have consistent project structure (#450)
* rename modules

* rename to CartonReleaseCommand

* call async overload

* fix commandName

* frontend name
2024-05-19 15:51:10 +09:00
omochimetaru 50f22fd6d4 Remove wrong sendable conformance 2024-05-19 14:30:43 +09:00
omochimetaru 46adbb03e3 split files 2024-05-18 14:02:10 +09:00
omochimetaru d1f93278e5 fix index page indent 2024-05-18 13:29:37 +09:00
omochimetaru e8634fe441 auth github 2024-05-18 04:39:25 +09:00
omochimetaru 7ca9b8bce7 remove unused lines in HashArchive 2024-05-18 04:39:03 +09:00
omochimetaru 848ae5aec4 fix process env 2024-05-18 04:38:06 +09:00
omochimetaru 9a0675f864 Make watch pipes optional 2024-05-17 11:24:24 +09:00
omochimetaru a77c951716 print watch log where it is done 2024-05-17 11:24:24 +09:00
omochimetaru 1b896c2a2c improve ToolchainError message 2024-05-17 10:38:25 +09:00
Yuta Saito e0dbe6a2fe Remove invalid `--` argument from XCTest invocation 2024-05-08 12:18:22 +00:00
Yuta Saito d16f59aa5d Report about dangling continuation 2024-05-08 12:18:22 +00:00
Yuta Saito 52f65cb692 Use JavaScriptKit's main entrypoint handler if available
The latest JavaScriptKit added main() method to handle main()/__main_argc_argv()
function call. It also handles some quirks of async-main & JavaScriptEventLoop.
2024-05-08 12:11:38 +00:00
Yuta Saito d487abb3b3 Inject default imported function implementation
Just throws exception
2024-05-07 21:34:09 +09:00
Yuta Saito faee016aca Stop writing static files in ~/.carton/static
Instead, write them under plugin work directory
2024-04-26 23:13:51 +09:00
Yuta Saito 9082e658bb Remove so_sanitizer.wasm from static.zip
This file is no longer used
2024-04-26 23:13:51 +09:00
Yuta Saito a10be40f36 Follow-up fix for f286203b0d
Node test runner also has to have argv0 but even though user doesn't
provide extra args, empty args are passed to the runner, so default
["main.wasm"] was not used. Changed to provide file base name as argv0
explicitly.
2024-04-18 16:40:37 +09:00
Yuta Saito 85fa55e4f9 Bump version to 1.0.3, update CHANGELOG.md 2024-04-18 00:50:11 +00:00
Yuta Saito 662d29d305 Map proc_exit to process exit on Node.js 2024-04-18 09:45:55 +09:00
Yuta Saito 5894a86bac Update StaticArchive.swift 2024-04-18 09:45:55 +09:00
omochimetaru 3abdbd2386 migrate to TypeScript 2024-04-18 01:31:11 +09:00
Yuta Saito f286203b0d Fix test harness for the latest main XCTest
The latest XCTest bundled in Swift SDK for Wasm requires `Bundle.main` access to
minimize behavior difference from other platforms. `Bundle.main`
requires `argv[0]` and file system access to get the main bundle path.
2024-04-05 03:24:37 +09:00
Yuta Saito 2467a0c908 Bump version to 1.0.2, update CHANGELOG.md 2024-03-28 12:33:04 +09:00
Yuta Saito 5bf2e3e874 Stop copying main resources twice and create symlinks instead 2024-03-28 08:41:48 +09:00
Yuta Saito 1a0a29acb3 Support more MIME types in `dev` server 2024-03-28 08:41:48 +09:00
Yuta Saito 73bf897e24 Revert a part of f576362845
To send SIGKILL to the process *group* (not just the process itself)
2024-03-26 14:22:04 +09:00
Yuta Saito b8b390add1 Suppress mutability warning 2024-03-23 00:38:53 +09:00
Yuta Saito aef04d7214 Disable sandbox for bundle command too temporarily
This is a temporary workaround to fix the issue where the bundle command
fails to create ~/.carton directory when it's outdated or missing. We
don't need to create .carton directory anymore ideally, but it requires
several refactoring to remove it completely Thus, we disable the sandbox
for now.
2024-03-23 00:35:24 +09:00
Yuta Saito fbcfb1191a Force terminate chromedriver process when interrupting the test run 2024-03-20 01:54:33 +09:00
Yuta Saito b7c6c5a3ce Fix Linux build by appendingPathComponent instead of appending(path:) 2024-03-19 17:52:38 +09:00
Yuta Saito f576362845 Communicate with WebDriver using curl
libcurl-based URLSession implementation in corelibs-foundation seems
somehow broken on GitHub Actions environment. It fails to connect to
WebDriver server with the `Failed writing header` error.

This commit replaced URLSession with curl CLI if it's available.
2024-03-19 17:49:01 +09:00
Yuta Saito 4f3dc7c0b0 Support fragmented WebSocket frames sent from Chrome
Chrome sends fragmented WebSocket frames when the message is too large
(around 113KB). See https://issues.chromium.org/issues/41192391
2024-03-19 12:56:47 +09:00
Yuta Saito 75b8f82e3f Accept larger WebSocket frames by default
Test result output might be too large to fit into the default
WebSocket frame size.
2024-03-19 03:44:23 +09:00
Yuta Saito b0a4ae7fad Bump version to 1.0.1, update CHANGELOG.md 2024-03-10 18:25:34 +09:00
Yuta Saito 8b956767b4 Fix bundle command to copy dependencies' resources even with optimization
The `bundle` command was not copying the resources of the dependencies
when the main binary is optimized with wasm-opt.
2024-03-10 18:25:34 +09:00
Yuta Saito 1b50ba88c4 Default toolchain version bump to 5.9.2 2024-03-10 16:13:47 +09:00
Yuta Saito 9b8ba12741 Bump version to 1.0.0, update CHANGELOG.md 2024-03-09 14:37:30 +00:00
Yuta Saito abc014932f Add wasmtime as a default WASI runtime 2024-03-09 23:24:09 +09:00
Yuta Saito 5b4b870aa5 Use mangled `__main_argc_argv` for Swift 6 and later 2024-03-09 23:24:09 +09:00
Yuta Saito 21b37376d1 Update the warning message when wasm-opt fails
Suggest to install binaryen if wasm-opt is not installed
2024-03-09 11:59:26 +00:00