storage: RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider leaking mock objects
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 84/100
Rechercherichtung
Beginne in google/cloud/storage/internal/connection_impl_test.cc bei der in den Zeilen 829, 830, 835 und 857 gemeldeten Mock-Einrichtung und konzentriere dich auf RetryClientTest.HedgedReadRecordsMetricsOnGlobalMeterProvider. Führe //google/cloud/storage:internal_connection_impl_test mit randomisierten Tests aus und bestätige, dass es ohne die Meldung durchgesickerter Mock-Objekte erfolgreich ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- C++
- Sterne
- 659
- Forks
- 471
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 96
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus googleapis/google-cloud-cpp
-
api: storage priority: p2 type: bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
googleapis/google-cloud-cpp#16529 ·
Maintainer antworten meist innerhalb von 1 Tag
-
type: feature request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
googleapis/google-cloud-cpp#16193 ·
Maintainer antworten meist innerhalb von 1 Tag
-
api: storage type: cleanup
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
googleapis/google-cloud-cpp#16404 ·
Maintainer antworten meist innerhalb von 1 Tag
-
cpp: generator type: cleanup
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
googleapis/google-cloud-cpp#16394 ·
Maintainer antworten meist innerhalb von 1 Tag
-
BigQueryReadClient::ReadRows fails with `UNKNOWN: Error occurred when fetching oauth2 token` after CreateReadSession succeedsEvtl. wieder frei @scotthart hat das vor 44 Tagen übernommen, und es ist kein Pull Request offen. Offen
googleapis/google-cloud-cpp#16371 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in googleapis/google-cloud-cpp
Ähnliche Issues
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
flashinfer-ai/flashinfer#6212 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug graphics
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
FlaxEngine/FlaxEngine#4295 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 66/100
Algorithmiq/monoprop#390 ·
Maintainer antworten meist innerhalb von 1 Tag
-
docs
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
leethomason/tinyxml2#1097 ·