storage: RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider leaking mock objects
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 84/100
Línea de trabajo
Comienza en google/cloud/storage/internal/connection_impl_test.cc, alrededor de la configuración de mocks indicada en las líneas 829, 830, 835 y 857, centrándote en RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider. Ejecuta //google/cloud/storage:internal_connection_impl_test con pruebas aleatorizadas y confirma que pasa sin informar de objetos mock filtrados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Step #2 - "build.sh": FAIL: //google/cloud/storage:internal_connection_impl_test (Exit 1) (see /h/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execroot/_main/bazel-out/k8-fastbuild/testlogs/google/cloud/storage/internal_connection_impl_test/test.log)
Step #2 - "build.sh": INFO: From Testing //google/cloud/storage:internal_connection_impl_test:
Step #2 - "build.sh": ==================== Test output for //google/cloud/storage:internal_connection_impl_test:
Step #2 - "build.sh": Running main() from gmock_main.cc
Step #2 - "build.sh": Note: Randomizing tests' orders with a seed of 46316 .
Step #2 - "build.sh": [==========] Running 28 tests from 1 test suite.
Step #2 - "build.sh": [----------] Global test environment set-up.
Step #2 - "build.sh": [----------] 28 tests from RetryClientTest
Step #2 - "build.sh": [ RUN ] RetryClientTest.ReadObjectPositionsPlainRequest
Step #2 - "build.sh": [ OK ] RetryClientTest.ReadObjectPositionsPlainRequest (1 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkUploadChunkPolicyExhaustedOnStart
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkUploadChunkPolicyExhaustedOnStart (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkMissingRangeHeaderInUpload
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkMissingRangeHeaderInUpload (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkRestoreSession
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkRestoreSession (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadFinalChunkQueryTooManyMissingPayloads
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadFinalChunkQueryTooManyMissingPayloads (4 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.BackoffSpansUploadChunk
Step #2 - "build.sh": [ OK ] RetryClientTest.BackoffSpansUploadChunk (6 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkHandleRollback
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkHandleRollback (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkPermanentError
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkPermanentError (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.CreateResumableUploadHandlesTransient
Step #2 - "build.sh": [ OK ] RetryClientTest.CreateResumableUploadHandlesTransient (2 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadFinalChunkQueryMissingPayloadTriggersRetry
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadFinalChunkQueryMissingPayloadTriggersRetry (2 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.PermanentErrorHandling
Step #2 - "build.sh": [ OK ] RetryClientTest.PermanentErrorHandling (1 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.QueryResumableUploadHandlesTransient
Step #2 - "build.sh": [ OK ] RetryClientTest.QueryResumableUploadHandlesTransient (2 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.TooManyTransientsHandling
Step #2 - "build.sh": [ OK ] RetryClientTest.TooManyTransientsHandling (4 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkPermanentErrorOnQuery
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkPermanentErrorOnQuery (1 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkExhausted
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkExhausted (5 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.ReadObjectPinsGeneration
Step #2 - "build.sh": [ OK ] RetryClientTest.ReadObjectPinsGeneration (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.NonIdempotentErrorHandling
Step #2 - "build.sh": [ OK ] RetryClientTest.NonIdempotentErrorHandling (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.BackoffSpansSimple
Step #2 - "build.sh": [ OK ] RetryClientTest.BackoffSpansSimple (5 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.ReadObjectPositionsReadFromOffset
Step #2 - "build.sh": [ OK ] RetryClientTest.ReadObjectPositionsReadFromOffset (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkHandleOvercommit
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkHandleOvercommit (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.ReadObjectPositionsReadRange
Step #2 - "build.sh": [ OK ] RetryClientTest.ReadObjectPositionsReadRange (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkAbortedMaybeIsTransient
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkAbortedMaybeIsTransient (4 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkHandleTransient
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkHandleTransient (4 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkMissingRangeHeaderInQueryResumableUpload
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkMissingRangeHeaderInQueryResumableUpload (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.ExpiredRetryPolicy
Step #2 - "build.sh": [ OK ] RetryClientTest.ExpiredRetryPolicy (0 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.UploadChunkHandleTransientPartialFailures
Step #2 - "build.sh": [ OK ] RetryClientTest.UploadChunkHandleTransientPartialFailures (7 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider
Step #2 - "build.sh": [ OK ] RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider (5 ms)
Step #2 - "build.sh": [ RUN ] RetryClientTest.ReadObjectPositionsReadLast
Step #2 - "build.sh": [ OK ] RetryClientTest.ReadObjectPositionsReadLast (0 ms)
Step #2 - "build.sh": [----------] 28 tests from RetryClientTest (69 ms total)
Step #2 - "build.sh":
Step #2 - "build.sh": [----------] Global test environment tear-down
Step #2 - "build.sh": [==========] 28 tests from 1 test suite ran. (69 ms total)
Step #2 - "build.sh": [ PASSED ] 28 tests.
Step #2 - "build.sh":
Step #2 - "build.sh": google/cloud/storage/internal/connection_impl_test.cc:835: ERROR: this mock object (used in test RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider) should be deleted but never is. Its address is @0x133ef68.
Step #2 - "build.sh": google/cloud/storage/internal/connection_impl_test.cc:830: ERROR: this mock object (used in test RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider) should be deleted but never is. Its address is @0x134c040.
Step #2 - "build.sh": google/cloud/storage/internal/connection_impl_test.cc:857: ERROR: this mock object (used in test RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider) should be deleted but never is. Its address is @0x13631c0.
Step #2 - "build.sh": google/cloud/storage/internal/connection_impl_test.cc:829: ERROR: this mock object (used in test RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider) should be deleted but never is. Its address is @0x1374120.
Step #2 - "build.sh": ERROR: 4 leaked mock objects found at program exit. Expectations on a mock object are verified when the object is destructed. Leaking a mock means that its expectations aren't verified, which is usually a test bug. If you really intend to leak a mock, you can suppress this error using testing::Mock::AllowLeak(mock_object), or you may use a fake or stub instead of a mock.
- Lenguaje dominante
- C++
- Estrellas
- 659
- Forks
- 471
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 100
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin 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 googleapis/google-cloud-cpp
-
cleanup(storage): remove deprecated OpenTelemetry rpc.message.type and rpc.message.id attributesAbiertoapi: storage type: cleanup
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
googleapis/google-cloud-cpp#16544 ·
Los mantenedores suelen responder en 1 día
-
api: storage priority: p2 type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
googleapis/google-cloud-cpp#16529 ·
Los mantenedores suelen responder en 1 día
-
type: feature request
Dificultad 2/5 1-3 horas Aptitud para principiantes 73/100
googleapis/google-cloud-cpp#16193 ·
Los mantenedores suelen responder en 1 día
-
api: storage type: cleanup
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
googleapis/google-cloud-cpp#16545 ·
Los mantenedores suelen responder en 1 día
-
api: storage type: cleanup
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
googleapis/google-cloud-cpp#16404 ·
Los mantenedores suelen responder en 1 día
Todos los issues de googleapis/google-cloud-cpp
Issues similares
-
bug derived types format I/O medium priority semantics
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Incorrect Link in README.mdPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
flameshot-org/flameshot#4996 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
utopia-rise/godot-jvm#1004 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día