-
Notifications
You must be signed in to change notification settings - Fork 79
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
Too many failed reported in sudo-compliance-tests #821
Comments
I ran the same command on the same folder and got this:
I have rust 1.75 but I doubt that's the issue. It seems there's something wrong with the containers as almost every single test is failing. |
have run the following two commands, but still get the above error.
I have always had some doubts about the execution of docker. Can you provide the commands for the entire testing process? Including how to run the docker you need to use |
most likely the shared step of building the docker image is failing and that's causing all tests that rely on the docker image to fail. you can set the $ cd test-framework
$ SUDO_TEST_VERBOSE_DOCKER_BUILD=1 SUDO_UNDER_TEST=theirs cargo t -p sudo-compliance-tests -- insufficient_permissions_to_execute_shell
[+] Building 25.9s (9/9) FINISHED docker-container:mybuilder
=> [internal] booting buildkit 2.4s
=> => starting container buildx_buildkit_mybuilder0 2.4s
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 236B 0.0s
=> [internal] load metadata for docker.io/library/debian:bookworm-slim 2.2s
=> [internal] load .dockerignore 0.1s
=> => transferring context: 2B 0.0s
=> [1/3] FROM docker.io/library/debian:bookworm-slim@sha256:f4a83aa865a2b4a064ff142aa91c713180df9fcb86ce676b5de2981029379c37 0.1s
=> => resolve docker.io/library/debian:bookworm-slim@sha256:f4a83aa865a2b4a064ff142aa91c713180df9fcb86ce676b5de2981029379c37 0.0s
=> [2/3] RUN apt-get update && apt-get install -y --no-install-recommends sudo procps sshpass rsyslog && rm /etc/sudoers 13.4s
=> [3/3] WORKDIR /tmp 0.2s
=> exporting to docker image format 6.9s
=> => exporting layers 3.5s
=> => exporting manifest sha256:79c8abfb0d71d4b95dcf44d5edd32d71f340f8d5f0a12d1af1cda32aeddf8533 0.0s
=> => exporting config sha256:d46dfe4cae602bd5d7ee9cbc42ad71f71b83e266cea62b7885d858da19438350 0.0s
=> => sending tarball 3.3s
=> importing to docker 1.8s
=> => loading layer 19602c60b3cf 196.61kB / 17.25MB 1.8s
=> => loading layer 5f70bf18a086 32B / 32B 0.3s
test sudo::flag_login::insufficient_permissions_to_execute_shell ... ok
( |
in
sudo-rs/test-framework/sudo-compliance-tests
runSUDO_UNDER_TEST=theirs cargo test
:final results:
Is it the wrong way to test? Or missed some steps?
rust version:
The text was updated successfully, but these errors were encountered: