-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Wasm coverage disabled due to rules_rust
update
#24164
Comments
cc @PiotrSikora |
possibly related rust-lang/rust#81684 |
seems we may need to add |
rust
updaterules_rust
update
test pr here - #24168 |
I am not sure how to disable some specified test cases. But it wouldn't be hard to add additional linkopts to some test cases. |
im grepping around but not sure where to add - i have tried adding to the wasm binary rule in my test PR but not sure that is correct |
Hmmm, I just readed the error log. Seems that it's error from the rust runtime. But you added opts to the normal c++ wasm. |
clutching at straws 8/ can you point me to where it should go ? |
i considered the |
perhaps in |
hmm - not sure about ^^ - they just seem to point to the rules i already hacked (which didnt work incidentally) |
In fact, I am also searching rust rule for now and find nothing about the linkopts 🤣 |
|
its this that is failing
in altho i guess it would fail elsewhere so if this fixes - i think we want to put it in the |
testing this on test PR diff --git a/bazel/wasm/wasm.bzl b/bazel/wasm/wasm.bzl
index 9350189d8b..1cb9b68f11 100644
--- a/bazel/wasm/wasm.bzl
+++ b/bazel/wasm/wasm.bzl
@@ -78,7 +78,7 @@ def envoy_wasm_cc_binary(name, additional_linker_inputs = [], linkopts = [], tag
**kwargs
)
-def wasm_rust_binary(name, tags = [], wasi = False, precompile = False, **kwargs):
+def wasm_rust_binary(name, tags = [], wasi = False, precompile = False, rustc_flags = [], **kwargs):
wasm_name = "_wasm_" + name.replace(".", "_")
kwargs.setdefault("visibility", ["//visibility:public"])
@@ -87,6 +87,7 @@ def wasm_rust_binary(name, tags = [], wasi = False, precompile = False, **kwargs
edition = "2018",
crate_type = "cdylib",
out_binary = True,
+ rustc_flags = rustc_flags + ["--linkopt=-noprofilelib"],
tags = ["manual"],
**kwargs
) |
I don't know how to disable the whole test case. But seems that the
|
cool - if my hack above doent work then lets do that |
for ref |
rules_rust
updaterules_rust
update
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions. |
Hi @phlax, @mpwarres, @wbpcode, I tried to re-enable it with some explorations but failed the exam ;-(. Do you have more insights and want to take a look? It looks like the rust profile build is not supported in
or
My initial investigation is the global clang profile build will force include |
I actually got a workaround to disable the instrument for rust through a patch, waiting on CI to verify.
|
…build (#36337) I’ve been explored other solutions to #24164 (comment) over the past few days, and here is the final fix, and I think we don't need rust coverage as whole at current stage. Commit Message: re-enable envoy wasm coverage build by disabling rust coverage build Additional Description: Risk Level: no Fix: #24164 Testing: Docs Changes: --------- Signed-off-by: Boteng Yao <[email protected]>
Not sure why CI didnt fail in presubmit, but the recent update to
rules_rust
has broken ci (#22253 )Fail is:
https://dev.azure.com/cncf/envoy/_build/results?buildId=121396&view=logs&j=bbe4b42d-86e6-5e9c-8a0b-fea01d818a24&s=4f7d954b-a765-565f-91a2-c04870dab43f&t=e00c5a13-c6dc-5e9a-6104-69976170e881&l=147
The text was updated successfully, but these errors were encountered: