[Bug]: e2e script flag parsing is broken
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
Empieza leyendo hack/run-e2e.sh y reproduciendo las dos formas del comando indicadas en el issue; el fallo reportado se produce al invocar la prueba e2e de capabilities. Compara cómo gestiona el script los flags y la ruta de la suite en cada orden, y luego confirma que ambos comandos se comportan igual y que --no-color llega a la prueba.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happened?
./hack/run-e2e.sh ./internal/e2e/suites/networking -v -args --no-color
and
./hack/run-e2e.sh -v ./internal/e2e/suites/networking -args --no-color
Do not do the same thing
Expected Behavior
I would expect
./hack/run-e2e.sh ./internal/e2e/suites/networking -v -args --no-color
and
./hack/run-e2e.sh -v ./internal/e2e/suites/networking -args --no-color
To do the same thing.
Steps to Reproduce
./hack/run-e2e.sh -v ./internal/e2e/suites/networking -args --no-color
Sandbox Runtime
gVisor (runsc)
Agent Substrate Version / Commit SHA
3dfddb1fb2a26e2a4db2c56f427d0f05f1fd0991
Kubernetes Version & Environment
kind version 0.31.0
Host OS & Architecture
Linux amd64
Relevant Logs and Diagnostic Output
Usage of /tmp/go-build3858815266/b001/capabilities.test:
--e2e run e2e tests
--kube-config string Location of the kubeconfig
--kube-context string Kubernetes context to use
--no-color disable colors in output
--storage-class string StorageClass to use for external volume tests (default "csi-nfs-sc")
--test.artifacts store test artifacts in test.,outputdir
--test.bench regexp run only benchmarks matching regexp
--test.benchmem print memory allocations for benchmarks
--test.benchtime d run each benchmark for duration d or N times if `d` is of the form Nx (default 1s)
--test.blockprofile file write a goroutine blocking profile to file
--test.blockprofilerate rate set blocking profile rate (see runtime.SetBlockProfileRate) (default 1)
--test.count n run tests and benchmarks n times (default 1)
--test.coverprofile file write a coverage profile to file
--test.cpu list comma-separated list of cpu counts to run each test with
--test.cpuprofile file write a cpu profile to file
--test.failfast do not start new tests after the first test failure
--test.fullpath show full file names in error messages
--test.fuzz regexp run the fuzz test matching regexp
--test.fuzzcachedir string directory where interesting fuzzing inputs are stored (for use only by cmd/go)
--test.fuzzminimizetime durationOrCountFlag time to spend minimizing a value after finding a failing input (default 1m0s)
--test.fuzztime durationOrCountFlag time to spend fuzzing; default is to run indefinitely (default 0s)
--test.fuzzworker coordinate with the parent process to fuzz random values (for use only by cmd/go)
--test.gocoverdir string write coverage intermediate files to this directory
--test.list regexp list tests, examples, and benchmarks matching regexp then exit
--test.memprofile file write an allocation profile to file
--test.memprofilerate rate set memory allocation profiling rate (see runtime.MemProfileRate)
--test.mutexprofile string write a mutex contention profile to the named file after execution
--test.mutexprofilefraction int if >= 0, calls runtime.SetMutexProfileFraction() (default 1)
--test.outputdir dir write profiles to dir
--test.paniconexit0 panic on call to os.Exit(0)
--test.parallel n run at most n tests in parallel (default 12)
--test.run regexp run only tests and examples matching regexp
--test.short run smaller test suite to save time
--test.shuffle string randomize the execution order of tests and benchmarks (default "off")
--test.skip regexp do not list or run tests matching regexp
--test.testlogfile file write test action log to file (for use only by cmd/go)
--test.timeout d panic test binary after duration d (default 0, timeout disabled) (default 0s)
--test.trace file write an execution trace to file
--test.v chattyFlag[=true] verbose: print additional output
unknown shorthand flag: 'a' in -args
FAIL github.com/agent-substrate/substrate/internal/e2e/suites/capabilities 0.037s
Additional Context
No response
Confirmation
- I have searched existing issues and verified that this is not a duplicate.
- I have verified that this issue occurs on the latest commit on
main.
- Lenguaje dominante
- Go
- Estrellas
- 6.1k
- Forks
- 676
- Merge medio
- 2 d 1 h
- PR fusionados (30 d)
- 481
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de agent-substrate/substrate
-
network-egress.md describes actor certificate checks the egress gateway doesn't makePosiblemente ocupada @ericcurtin la tomó hace 1 día. Abiertoarea/network area/security kind/docs
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
agent-substrate/substrate#3709 ·
Los mantenedores suelen responder en 1 día
-
Clean up the ko retry testsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea/dev-infra area/reliability area/tests kind/cleanup
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
agent-substrate/substrate#3461 ·
Los mantenedores suelen responder en 1 día
-
egress: drop the empty-provider check in providerCredentialPosiblemente ocupada @cloudonly la tomó hace 8 días. Abiertoarea/network kind/cleanup
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
agent-substrate/substrate#3428 ·
Los mantenedores suelen responder en 1 día
-
kubectl-ate create actor-template -f <file> fails with useless errorPosiblemente ocupada @cloudonly la tomó hace 10 días. Abiertoarea/cli kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
agent-substrate/substrate#3406 ·
Los mantenedores suelen responder en 1 día
-
k8s-credential-provider manifest is missing ate-otel-config envFrom, failing OTLP metric exports to [::1]:4317 / 127.0.0.1:4317 every 60sPosiblemente ocupada @ericcurtin la tomó hace 10 días. Abiertoarea/dev-infra area/observability area/security kind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
agent-substrate/substrate#3282 ·
Los mantenedores suelen responder en 1 día
Todos los issues de agent-substrate/substrate
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Los mantenedores suelen responder en 1 día
-
bug raised-by:verifier
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
medici-finance/assay#5697 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
sonatype-nexus-community/terraform-provider-sonatypeiq#101 ·
Los mantenedores suelen responder en 1 día
-
area: metrics area: tracing contribfest enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
open-telemetry/opentelemetry-ebpf-instrumentation#4188 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
blinklabs-io/dingo#6074 ·
Los mantenedores suelen responder en 1 día