Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

feat: add preview2 target to wasmcloud.toml #641

Merged
merged 1 commit into from
Jul 7, 2023
Merged

feat: add preview2 target to wasmcloud.toml #641

merged 1 commit into from
Jul 7, 2023

Conversation

vados-cosmonic
Copy link
Contributor

Feature or Problem

Add a more explicit WASI target to wasmcloud.toml configuration, in preparation for building in support for adding post-build support for preview2 components.

Related Issues

#640

Release Information

next

Consumer Impact

Customers will be able to specify wasm32-wasi-preview2 to target a wasm32-wasi-preview build

Testing

Built on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Tested on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Unit Test(s)

Acceptance or Integration

Tests with different configuration options were added

Manual Verification

This was tested locally by:

  • Templating out a new rust actor
  • wash build with wasm_target=wasm32-unknown-unknown
  • wash build with wasm_target=wasm32-wasi
  • wash build with wasm_target=wasm32-wasi-preview1
  • wash build with wasm_target=wasm32-wasi-preview2 (errored as expected)

@vados-cosmonic vados-cosmonic requested a review from a user July 5, 2023 17:38
@vados-cosmonic vados-cosmonic changed the title feat: add p2 target to wasmcloud.toml feat: add preview2 target to wasmcloud.toml Jul 5, 2023
brooksmtownsend
brooksmtownsend previously approved these changes Jul 6, 2023
crates/wash-lib/src/parser/mod.rs Show resolved Hide resolved
crates/wash-lib/src/parser/mod.rs Show resolved Hide resolved
@vados-cosmonic
Copy link
Contributor Author

Welp, a new test seems to be failing:

TRY 2 FAIL [ 6.792s] wash-cli::integration_start integration_start_actor_serial

So going to look into that too.

brooksmtownsend
brooksmtownsend previously approved these changes Jul 7, 2023
ricochet
ricochet previously approved these changes Jul 7, 2023
@vados-cosmonic
Copy link
Contributor Author

vados-cosmonic commented Jul 7, 2023

Hey @ricochet just to update you here -- dealing with an GHA and/or elixir issue when starting up wash -- sometimes it gets stuck loading CA certs.

stderr log:
14:38:03.656 [info] Loading 467 CA(s) from :otp store

Trying to cycle it before the unit tests run to avoid this happening during the test(s).

brooksmtownsend
brooksmtownsend previously approved these changes Jul 7, 2023
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
@brooksmtownsend brooksmtownsend merged commit bb454cb into wasmCloud:main Jul 7, 2023
@vados-cosmonic vados-cosmonic deleted the feat/add-experimental-p2-target branch July 7, 2023 17:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants