-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Tests on the main branch fail #6703
Comments
Hmm..I am not able to repro this. There could be something going on in your local setup. My version is |
Strangely, clearing the cache helped. But I am facing another error while running wasm tests, could you please help? docker run --name opa-wasm-testgen-container -u 501:20 -v /Users/nikita/projects/opa/.go/bin:/go/bin:Z -v /Users/nikita/projects/opa:/src:z -v /Users/nikita/projects/opa/test/wasm/assets:/assets:Z -e GOCACHE=/src/.go/cache -w /src golang:1.22.2 sh -c 'make wasm-rego-testgen-install \
&& wasm-rego-testgen \
--input-dir=/assets \
--runner=/src/test/wasm/assets/test.js \
--output=/src/.go/cache/testcases.tar.gz'
fatal: detected dubious ownership in repository at '/src'
To add an exception for this directory, call:
git config --global --add safe.directory /src
CGO_ENABLED=1 GOFLAGS=""-buildmode=exe"" go install ./test/wasm/cmd/wasm-rego-testgen
error obtaining VCS status: exit status 128
Use -buildvcs=false to disable VCS stamping.
make: *** [Makefile:236: wasm-rego-testgen-install] Error 1 |
ashutosh-narkar
added a commit
to ashutosh-narkar/opa
that referenced
this issue
Apr 22, 2024
This change updates the WASM Rego test generation docker command to address CVE-2022-24765 in Git which could cause it to execute arbitrary commands. The error was seen when running the `make wasm-rego-test` target on darwin/arm64. Fixes: open-policy-agent#6703 Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
This PR should address it. |
ashutosh-narkar
added a commit
to ashutosh-narkar/opa
that referenced
this issue
Apr 22, 2024
This change updates the WASM Rego test generation docker command to address CVE-2022-24765 in Git which could cause it to execute arbitrary commands. The error was seen when running the `make wasm-rego-test` target on darwin/arm64. Fixes: open-policy-agent#6703 Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
johanfylling
pushed a commit
that referenced
this issue
Apr 23, 2024
This change updates the WASM Rego test generation docker command to address CVE-2022-24765 in Git which could cause it to execute arbitrary commands. The error was seen when running the `make wasm-rego-test` target on darwin/arm64. Fixes: #6703 Signed-off-by: Ashutosh Narkar <anarkar4387@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short description
3954ba0c80b5f00a8b30caff7b5ae600d551df1f
Steps To Reproduce
git checkout main
make test
Expected behavior
Tests will be completed successfully
Additional context
The text was updated successfully, but these errors were encountered: