Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: enable WAMR and WAVM runtimes. #162

Merged
merged 27 commits into from
May 16, 2021
Merged

Conversation

mathetake
Copy link
Contributor

@mathetake mathetake commented May 11, 2021

Signed-off-by: Takeshi Yoneda takeshi@tetrate.io

partially resolves_ #49 and left TODO in #142

@PiotrSikora
Copy link
Member

Could you add WAVM while you're at it? Once you get LLVM working, that should be pretty easy.

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
mathetake added 2 commits May 12, 2021 14:13
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@mathetake mathetake changed the title build: enable WAMR and LLVM builds. build: enable WAMR and WAVM builds. May 12, 2021
@mathetake mathetake changed the title build: enable WAMR and WAVM builds. build: enable WAM, WAVM and LLVM builds. May 12, 2021
@mathetake mathetake changed the title build: enable WAM, WAVM and LLVM builds. build: enable WAMR, WAVM and LLVM builds. May 12, 2021
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
.bazelrc Outdated Show resolved Hide resolved
mathetake added 4 commits May 12, 2021 16:57
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
bazel/external/llvm.BUILD Show resolved Hide resolved
.bazelrc Show resolved Hide resolved
bazel/external/wavm.BUILD Outdated Show resolved Hide resolved
bazel/external/wavm.BUILD Outdated Show resolved Hide resolved
mathetake added 2 commits May 13, 2021 09:41
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@mathetake
Copy link
Contributor Author

mathetake commented May 13, 2021

so working on the test fixes, but I encountered some weird bug around contexts with WAVM.. which I think is something to do with the previous nasty bug we fought last year.. envoyproxy/envoy@8d49c1d Fixed.

Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@mathetake mathetake marked this pull request as ready for review May 13, 2021 03:19
.github/workflows/cpp.yml Outdated Show resolved Hide resolved
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@mathetake
Copy link
Contributor Author

OK WAMR and Wasmtime finishes in 1~2 min so the cache works fine :)

mathetake added 4 commits May 13, 2021 21:09
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
test/runtime_test.cc Show resolved Hide resolved
test/runtime_test.cc Outdated Show resolved Hide resolved
Copy link
Member

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, sans nits.

test/runtime_test.cc Outdated Show resolved Hide resolved
test/runtime_test.cc Show resolved Hide resolved
.github/workflows/cpp.yml Outdated Show resolved Hide resolved
.github/workflows/cpp.yml Outdated Show resolved Hide resolved
@PiotrSikora
Copy link
Member

I'm not sure why the builds fails now.

There is this warning in logs:

stdout (/home/runner/.cache/bazel/_bazel_runner/ae21fb6b2e26a9267f16b46bb90ea321/execroot/proxy_wasm_cpp_host/bazel-out/_tmp/actions/stdout-69) exceeds maximum size of --experimental_ui_max_stdouterr_bytes=1048576 bytes; skipping

so maybe remove build_args = ["-v"]? It doesn't look like a failure, but there is nothing else of significance in the logs.

mathetake added 2 commits May 14, 2021 17:24
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
@PiotrSikora PiotrSikora changed the title build: enable WAMR, WAVM and LLVM builds. build: enable WAMR and WAVM runtimes. May 15, 2021
Copy link
Member

@PiotrSikora PiotrSikora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, assuming that raw_context -> current_context_ change is intentional and needed.

Thanks!

(Envoy tests for this PR are running in envoyproxy/envoy#16430)

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
.github/workflows/cpp.yml Show resolved Hide resolved
@mathetake mathetake merged commit 21af4d7 into proxy-wasm:master May 16, 2021
@mathetake mathetake deleted the llvm-wamr branch May 16, 2021 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants