Commit Graph

496 Commits

Author SHA1 Message Date
Max Desiatov cdcdd7f82c
Disable `--enable-test-discovery` for old versions (#257) 2021-09-08 09:16:55 +01:00
Max Desiatov 8d29e6d585
Update dependencies (#256) 2021-09-06 09:51:56 +01:00
Max Desiatov 43f23b4981 Update `CHANGELOG.md` 2021-09-02 21:36:41 +01:00
Max Desiatov 43cad1abb2 Fix dynamic linking issue in `Dockerfile` 2021-09-02 21:34:17 +01:00
Max Desiatov f6ae632383 Update error message in `Server.swift` 2021-09-02 20:52:51 +01:00
Max Desiatov febf591329
Add Big Sur jobs for Homebrew release workflow 2021-09-02 19:01:20 +01:00
Max Desiatov 022849f9a2
Update `Dockerfile` for SwiftWasm 5.4.0 (#255)
* Update `Dockerfile` for SwiftWasm 5.4.0

* Push Docker image on release

* Use `GITHUB_TOKEN` for GHCR
2021-09-02 17:02:32 +01:00
Max Desiatov e2544afcb5 Clean up `README.md` 2021-09-01 20:51:50 +01:00
Max Desiatov 44930ecfe4 Add a section for version 0.11.0 to `CHANGELOG.md` 2021-09-01 20:50:14 +01:00
Max Desiatov dd6439700f
Bump version to 0.11.0, update dependencies (#251)
* Bump version to 0.11.0, update dependencies

* Test on Big Sur with Xcode 12.5

* Update test fixture dependencies

* Remove `LinuxMain.swift` expectations

* Test with `wasm-5.4-SNAPSHOT-2021-08-26-a`

* Remove expectations for `XCTestManifests.swift`

* Enable debugging output

* Try the latest 5.4 toolchain

* print debug output

* More debug output

* Test on macOS 11 with Xcode 13

* Pipe errors to stdout

* Update DefaultToolchain.swift

* Revert "Update DefaultToolchain.swift"

This reverts commit 4ff15f938a.

* Remove Xcode 13 from the CI matrix

* Update DefaultToolchain.swift

* Reduce the diff
2021-09-01 15:07:00 +01:00
Max Desiatov 1c9502e833
Update link in `README.md` (#252)
Use direct OpenCombine link instead of relying on a redirect
2021-08-26 15:33:07 +01:00
Max Desiatov 00f3dcbb6c
Update dependencies (#247) 2021-08-23 14:19:27 +01:00
Max Desiatov 0c918b5019 Fix release CI script 2021-05-30 10:52:12 +01:00
Max Desiatov ed06b25ab0
Bump version to 0.10.0, update `CHANGELOG.md` (#244) 2021-05-30 10:37:08 +01:00
Max Desiatov b67fe181ef
Update dependencies (#245) 2021-05-30 10:09:35 +01:00
Max Desiatov 6da6dade9f
Update JSKit and Tokamak versions in templates (#243) 2021-05-29 21:45:13 +01:00
Max Desiatov 10c21db4bf
Fix Ubuntu deps, clarify Linux support in README (#242)
Resolves #237.

* Fix Ubuntu deps, clarify Linux support in README

* Avoid using `sudo` if it's not installed
2021-05-28 22:00:38 +01:00
Jed Fox 7204aa4e78
Add support for Chrome and Safari to DestinationEnvironment (#228)
Ref #227. Not sure if `.edge` is intended to represent Chrome-Edge or legacy Edge.
2021-05-28 16:55:13 +01:00
Max Desiatov 18113a1a67
Update dependencies (#232) 2021-05-24 12:35:38 +01:00
Max Desiatov ae8015413b
Fix `carton dev` crashing with SO sanitizer (#239)
Previously, the file we need to include with the build to enable the stack overflow sanitizer was written as a temporary file. This didn't happen though on watcher rebuilds with `carton dev` and caused crashes when a code line containing `try!` relying on this file to be present was executed.

I think it's easier and more efficient to bundle this file in the `static.zip` file that already includes our JS entrypoints. We require `static.zip` to be downloaded and unpacked successfully into `~/.carton/static` before every build anyway. It makes more sense to sense the sanitizer file in `~/.carton/static/so_sanitizer.wasm` and use that instead writing and deleting it at a temporary path on every build.

I've also updated the JSKit dependency and cleaned up some linter warnings by moving large tuple values into a separate `BuildDescription` type.
2021-05-24 12:03:38 +01:00
Max Desiatov 227efcd07a
Avoid building in `release` mode when testing (#240)
This fixes the issue with Linux builds, as Linux CI hosts were updated to Swift 5.4 which no longer supports testing with release builds.

* Avoid building in `release` mode when testing

* Remove deprecated `LinuxMain.swift`
2021-05-23 15:06:22 +01:00
Max Desiatov abfd10d0cd
Update SwiftPM dependencies (#229) 2021-04-27 14:41:23 +01:00
Max Desiatov 846a05dc89
Update JS dependencies in `package-lock.json` (#231) 2021-04-27 14:39:02 +01:00
Yuta Saito 1acf9c3ad7
Integrate stack sanitizer (#230)
* Update WasmTransformer

* Add build flavor to determine build options

* Enable stack overflow sanitizer pass

* Embed import entry in binary

* Remove sanitize support from bundle command

* Update WasmTransformer and add --stack-first option

* Fix carton-release hash-archive for CartonKit renaming

* Run carton-release hash-archive

* Update WasmTransformer

* Use run-p

* Use matrix in CI

* Build and install pre-released resource

* Exclude fixture directory from linting

* Fix failing tests

* Turn off sanitizer on test command
2021-04-18 16:45:10 +09:00
Max Desiatov 09e8718cb7
Update dependencies (#226) 2021-03-21 21:07:00 +00:00
Max Desiatov 2e82b501a7
Update dependencies (#225)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2021-03-07 10:45:24 +00:00
Max Desiatov c36f4ad840
Update dependencies (#224)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2021-02-28 15:13:28 +00:00
Max Desiatov 99d8dde99c
Update dependencies (#223)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2021-02-21 20:11:34 +00:00
Max Desiatov 1eba1689ac
Update dependencies (#220)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2021-02-16 18:12:04 +00:00
thecb4 45850d66e0
Add `carton init` with template test. Supports #99 (#221)
* Added init with template test. Supports #99

* Moved expectedTemplateSource outside of test function.  Supports #99

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2021-02-14 11:08:02 -05:00
Max Desiatov 2385b04252
Update dependencies (#219)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2021-02-07 11:18:27 +00:00
thecb4 4b062aef86
Add tests for `sdk versions` and `sdk local` commands (#218)
* Added tests for version and local

* Debugging versions tests on ci

* Added brew install for swiftenv

* Changed fetchAllSwiftVersions to return empty array if .swiftenv/versions doesnt exist

* Remove commented out code. Removed debug flag for versions test

* Removed swiftenv from Brewfile

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2021-02-01 20:27:37 -05:00
Max Desiatov bb410237ee
Update dependencies (#215)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2021-02-01 21:46:49 +00:00
thecb4 c9250c3b01
Add test for `carton sdk install` (#217)
* Added test for sdk install

* Removed commented out code

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2021-01-29 16:01:36 -05:00
yonihemi 4ef7b5339e
Use libSwiftPM instead of custom model types (#194)
* Use libSwiftPM instead of custom model types #120

* Update SwiftPM dependencies

* Add wrapper to handle discrepancy between encoded and decoded Manifest

* Try to fix 5.2 dependency resolving

* Try to fix 5.2 dependency resolving

Co-authored-by: Max Desiatov <max@desiatov.com>
2021-01-20 23:31:16 +08:00
Max Desiatov 9753432846
Update dependencies (#214)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2021-01-20 15:18:43 +00:00
Max Desiatov c31b8d7df2
Use `set -ex` for easier debugging of workflow scripts 2021-01-20 15:10:56 +00:00
Max Desiatov 69ad2473b5
Temporarily stop testing on Big Sur
Big Sur builds can't proceed right now due to https://github.com/actions/virtual-environments/issues/2381
2021-01-20 14:47:19 +00:00
Max Desiatov a683d2e98e
Bump dates to 2021 in `LICENSE` 2021-01-20 13:23:21 +00:00
Benjamin Kindle 046ce7e106
Add host argument to `dev` and `test` commands (#213)
* Add host argument to dev and test commands

* Delete Brewfile.lock.json

* Update swift.yml

* Update Sources/CartonCLI/Commands/Dev.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

* Update Sources/CartonCLI/Commands/Test.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

Co-authored-by: Max Desiatov <max@desiatov.com>
2021-01-20 13:05:41 +00:00
Max Desiatov fe272a95ce
Update dependencies (#211)
Co-authored-by: MaxDesiatov <MaxDesiatov@users.noreply.github.com>
2021-01-11 09:02:54 +00:00
thecb4 794eb9f85e
ci/carton test --environment defaultbrowser (#209)
* Added Test for carton test --environment defaultBrowser

* Method documentation, test file cleanup, print statement removals, var scope changes

* Delete docker-compose.yml

Co-authored-by: thecb4 <cavelle@tehcb4.io>
Co-authored-by: Max Desiatov <max@desiatov.com>
2021-01-09 20:14:11 -05:00
Max Desiatov 084dbf17a4
Link to the org sponsorship page from `README.md` (#210) 2021-01-09 20:15:19 +00:00
Max Desiatov 851bd8736c
Update the "Roadmap" section in `README.md` (#207)
Just a paragraph about browser testing removed. It is no longer relevant since this feature has been implemented.
2021-01-08 14:53:29 +00:00
Max Desiatov 1e3ccf1de6
Update FUNDING.yml 2021-01-07 12:03:07 +00:00
Max Desiatov bde1dd5d41
Avoid running tests while building the Docker image (#204)
We already run these tests on Ubuntu as a part of separate CI jobs.
2021-01-04 11:53:11 +00:00
Max Desiatov 116840c746
Fix browser testing for Safari, update tasks.json (#202)
* Fix browser testing for Safari, update tasks.json

* Remove autodiff code from `TestApp/main.swift`
2021-01-04 06:52:07 -05:00
thecb4 fc0487d623
Add `test` command test with no arguments (#198)
* Added test command test with no arguments

* Changed build and test to release configuration, Fixed Docker Build error

* Changed build and test to release configuration, Fixed Docker Build error

* Fixed github action

* Moved package.json and package-lock.json back to the top directory

* Moved the entrypoint folder back to the top level directory

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2020-12-30 10:35:02 -05:00
thecb4 22165481bf
Add tests for `dev` and `bundle` commands (#196)
* carton dev and bundle default command tests

* removed tests_output

* removed .testfile

* carton dev and bundle default command tests

* removed localhost as localURL

* attempt to fix folder name issue

* removed Fixtures test folder

* added Fixtures test folder

* attempt to fix folder name issue

* attempt to fix server connect issue

* fixed dev testWithNoArguments with sleep delay

* Debugging bundle command for github actions

* Install wasmr prior to swift test

* Debug clean up

* Debug clean up

* Update Tests/CartonCommandTests/CommandTestHelper.swift

Co-authored-by: Max Desiatov <max@desiatov.com>

Co-authored-by: thecb4 <cavelle@tehcb4.io>
Co-authored-by: Max Desiatov <max@desiatov.com>
2020-12-28 13:13:27 -05:00
thecb4 d7352b5a25
Add Dev tests and fix hard coded paths (#192)
* Added Dev tests and fixed hard coded paths, fixes #183

* Fixed Path dependency in 5.2 Package

* Removed mxcl/Path dependency

* Removed mxcl/Path dependency, Added confirmation of file existence in Init test

* Added sdk install head of init command test

* Moved carton sdk install to static setup method for tests

* Moved carton sdk install to static setup method for tests

* Moved carton sdk install to static setup method for tests

* Moved carton sdk install to static setup method for tests

* Moved carton sdk install to static setup method for tests

* changed order of actions for github automations to support testing

* modified test run to exclude release

* changed sdk install to run per test

* adjusted github workflows to create carton sdk folders

* adjusted github workflows to use /home/runner instead of root

* adjusted test to wait for sdk installation

* adjusted ubuntu tests for passing

* adjusted Dockerfile to run tests

* added tmate session for debugging

* Removed tmate session, added directory creation for carton sdk and sym link

* Adjusted order of commands for runner

* Fixed mkdir from worker to runner

* Added more terminal output for debugging

* Added more terminal output for debugging

* Added more terminal output for debugging

* Added more terminal output for debugging

* Added more terminal output for debugging

* Fixed hard coded paths

* Removed test investigation fixtures

* Removed test investigation fixtures

Co-authored-by: thecb4 <cavelle@tehcb4.io>
2020-12-24 03:49:28 -05:00