Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #3763
It looks like there is a flaky function in our wasm fnruntime library. Specifically this line is looking problematic:
https://github.com/GoogleContainerTools/kpt/blob/5a7e65fa4bf03f7948ec1365d4a4a0c30a59b889/internal/fnruntime/wasmtime.go#L145
It's supposed to populate
result
with the output ResourceList, but for me, maybe 1/20 times it is returning very odd-looking strings likes(<nil>)
ors(float64=4.0474e-320
. This currently results in kyaml throwing its very unhelpfulError: wrong Node Kind for expected: MappingNode was ScalarNode: value: {s(float64=5.565e-320}
error.This PR doesn't fix the flake, but it is trying to at least improve the error message to make it more obvious where it came from. I filed a separate issue for addressing the flake: #3782