forked from mtusi2026/mtusi2026lab5
565 lines
26 KiB
Plaintext
565 lines
26 KiB
Plaintext
Image highload-lab5-s3 Building
|
|
Image highload-lab5-s3-bootstrap Building
|
|
#1 [internal] load local bake definitions
|
|
#1 reading from stdin 1.08kB done
|
|
#1 DONE 0.0s
|
|
|
|
#2 [s3-bootstrap internal] load build definition from Dockerfile
|
|
#2 transferring dockerfile: 869B 0.0s done
|
|
#2 DONE 0.1s
|
|
|
|
#3 [s3 internal] load build definition from minio.Dockerfile
|
|
#3 transferring dockerfile: 1.01kB 0.0s done
|
|
#3 DONE 0.1s
|
|
|
|
#4 [s3-bootstrap internal] load metadata for docker.io/library/golang:1.22.2-bookworm
|
|
#4 DONE 0.1s
|
|
|
|
#5 [s3 internal] load metadata for docker.io/library/debian:12.15-slim
|
|
#5 DONE 0.1s
|
|
|
|
#6 [s3-bootstrap internal] load .dockerignore
|
|
#6 transferring context: 268B 0.0s done
|
|
#6 DONE 0.0s
|
|
|
|
#7 [s3-bootstrap internal] load build context
|
|
#7 DONE 0.0s
|
|
|
|
#8 [s3-bootstrap stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171
|
|
#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done
|
|
#8 DONE 0.0s
|
|
|
|
#9 [s3-bootstrap builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f
|
|
#9 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done
|
|
#9 DONE 0.0s
|
|
|
|
#7 [s3-bootstrap internal] load build context
|
|
#7 ...
|
|
|
|
#10 [s3 internal] load metadata for docker.io/library/golang:1.24.2-bookworm
|
|
#10 DONE 0.5s
|
|
|
|
#11 [s3 internal] load .dockerignore
|
|
#11 transferring context: 2B 0.0s done
|
|
#11 DONE 0.0s
|
|
|
|
#7 [s3-bootstrap internal] load build context
|
|
#7 ...
|
|
|
|
#8 [s3 stage-1 1/4] FROM docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171
|
|
#8 resolve docker.io/library/debian:12.15-slim@sha256:88200866dfff7ea7f5cbcb6ec7c8a701889efe6fe859fe64d6990e4b07ea4171 0.0s done
|
|
#8 DONE 0.0s
|
|
|
|
#12 [s3 builder 1/4] FROM docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71
|
|
#12 resolve docker.io/library/golang:1.24.2-bookworm@sha256:79390b5e5af9ee6e7b1173ee3eac7fadf6751a545297672916b59bfa0ecf6f71 0.0s done
|
|
#12 DONE 0.0s
|
|
|
|
#13 [s3 builder 4/4] RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/minio/minio/cmd.Version=2025-04-22T22:12:26Z -X github.com/minio/minio/cmd.ReleaseTag=RELEASE.2025-04-22T22-12-26Z -X github.com/minio/minio/cmd.CommitID=0d7408fc9969caf07de6a8c3a84f9fbb10a6739e" -o /out/minio .
|
|
#13 CACHED
|
|
|
|
#14 [s3 stage-1 2/3] RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && groupadd --system storage && useradd --system --gid storage storage && mkdir /data && chown storage:storage /data
|
|
#14 CACHED
|
|
|
|
#15 [s3 builder 2/4] WORKDIR /source
|
|
#15 CACHED
|
|
|
|
#16 [s3 builder 3/4] RUN git init . && git remote add origin https://github.com/minio/minio.git && git fetch --depth 1 origin 0d7408fc9969caf07de6a8c3a84f9fbb10a6739e && git checkout --detach FETCH_HEAD
|
|
#16 CACHED
|
|
|
|
#17 [s3 stage-1 3/3] COPY --from=builder /out/minio /usr/local/bin/minio
|
|
#17 CACHED
|
|
|
|
#7 [s3-bootstrap internal] load build context
|
|
#7 ...
|
|
|
|
#18 [s3] exporting to image
|
|
#18 exporting layers done
|
|
#18 exporting manifest sha256:d1e840275605bbc5f7ca26346064191484a717d4dc3b6a854a16bc5a9568249c done
|
|
#18 exporting config sha256:4d1cceac663be9aee8a5596fb9925e9c0a2e6e00b63547da71160a518be44f0d done
|
|
#18 exporting attestation manifest sha256:509c15860a6447ea891316f5e6d71116c41a834cf28b92aa87acf38e93b69e83 0.0s done
|
|
#18 exporting manifest list sha256:f358b55e8471d48297691206e04bc7037502098ccc82afb11dfa7d7e45855b54 0.0s done
|
|
#18 naming to docker.io/library/highload-lab5-s3:latest done
|
|
#18 unpacking to docker.io/library/highload-lab5-s3:latest 0.0s done
|
|
#18 DONE 0.2s
|
|
|
|
#7 [s3-bootstrap internal] load build context
|
|
#7 transferring context: 5.91kB 0.6s done
|
|
#7 DONE 0.7s
|
|
|
|
#19 [s3-bootstrap stage-1 2/4] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/* && groupadd --system app && useradd --system --gid app --no-create-home app
|
|
#19 CACHED
|
|
|
|
#20 [s3-bootstrap builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/*
|
|
#20 CACHED
|
|
|
|
#21 [s3-bootstrap builder 3/7] WORKDIR /src
|
|
#21 CACHED
|
|
|
|
#22 [s3-bootstrap builder 5/7] RUN go mod download
|
|
#22 CACHED
|
|
|
|
#23 [s3-bootstrap stage-1 3/4] WORKDIR /app
|
|
#23 CACHED
|
|
|
|
#24 [s3-bootstrap builder 6/7] COPY backend ./backend
|
|
#24 CACHED
|
|
|
|
#25 [s3-bootstrap builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend
|
|
#25 CACHED
|
|
|
|
#26 [s3-bootstrap builder 4/7] COPY go.mod go.sum ./
|
|
#26 CACHED
|
|
|
|
#27 [s3-bootstrap stage-1 4/4] COPY --from=builder /out/[REDACTED] ./[REDACTED]
|
|
#27 CACHED
|
|
|
|
#28 [s3] resolving provenance for metadata file
|
|
#28 DONE 0.0s
|
|
|
|
#29 [s3-bootstrap] exporting to image
|
|
#29 exporting layers done
|
|
#29 exporting manifest sha256:f319024632c6ad5ca4d5b4dac5674fc8921be9339f5de386942b6214665e7664 done
|
|
#29 exporting config sha256:a72c435a4e25bb335b47dc58f456108dfc46b28e60e96a5cf6540d80ed59f7b8 done
|
|
#29 exporting attestation manifest sha256:57287b7573cd046d26c6294a1b9bb3760777539235c62ab588e5c1e7c1e52249 0.0s done
|
|
#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074
|
|
#29 exporting manifest list sha256:f71bbc1399c43eb8695dbfe0d2f7657790c2285c9a7bf280fbd9f4bcc3354074 0.0s done
|
|
#29 naming to docker.io/library/highload-lab5-s3-bootstrap:latest done
|
|
#29 unpacking to docker.io/library/highload-lab5-s3-bootstrap:latest 0.0s done
|
|
#29 DONE 0.2s
|
|
|
|
#30 [s3-bootstrap] resolving provenance for metadata file
|
|
#30 DONE 0.0s
|
|
Image highload-lab5-s3 Built
|
|
Image highload-lab5-s3-bootstrap Built
|
|
Container highload-lab5-redis-1 Running
|
|
Container highload-lab5-s3-1 Running
|
|
Container highload-lab5-db-1 Running
|
|
Container highload-lab5-s3-1 Waiting
|
|
Container highload-lab5-s3-1 Healthy
|
|
Container highload-lab5-s3-bootstrap-1 Starting
|
|
Container highload-lab5-s3-bootstrap-1 Started
|
|
Image highload-lab5-backend-tests Building
|
|
#1 [internal] load local bake definitions
|
|
#1 reading from stdin 1.58kB done
|
|
#1 DONE 0.0s
|
|
|
|
#2 [internal] load build definition from Dockerfile
|
|
#2 transferring dockerfile: 869B 0.0s done
|
|
#2 DONE 0.1s
|
|
|
|
#3 [internal] load metadata for docker.io/library/golang:1.22.2-bookworm
|
|
#3 DONE 0.0s
|
|
|
|
#4 [internal] load .dockerignore
|
|
#4 transferring context:
|
|
#4 transferring context: 268B 0.0s done
|
|
#4 DONE 0.1s
|
|
|
|
#5 [builder 1/7] FROM docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f
|
|
#5 resolve docker.io/library/golang:1.22.2-bookworm@sha256:d0902bacefdde1cf45528c098d14e55d78c107def8a22d148eabd71582d7a99f 0.0s done
|
|
#5 DONE 0.0s
|
|
|
|
#6 [internal] load build context
|
|
#6 transferring context: 5.91kB 0.5s done
|
|
#6 DONE 0.5s
|
|
|
|
#7 [builder 6/7] COPY backend ./backend
|
|
#7 CACHED
|
|
|
|
#8 [builder 2/7] RUN apt-get update && apt-get install -y --no-install-recommends webp && rm -rf /var/lib/apt/lists/*
|
|
#8 CACHED
|
|
|
|
#9 [builder 3/7] WORKDIR /src
|
|
#9 CACHED
|
|
|
|
#10 [builder 4/7] COPY go.mod go.sum ./
|
|
#10 CACHED
|
|
|
|
#11 [builder 5/7] RUN go mod download
|
|
#11 CACHED
|
|
|
|
#12 [builder 7/7] RUN CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o /out/[REDACTED] ./backend
|
|
#12 CACHED
|
|
|
|
#13 exporting to image
|
|
#13 exporting layers done
|
|
#13 exporting manifest sha256:dba2271b9683a9ebb48a7683ff438142000b4e82b094c9020b538be755294494 done
|
|
#13 exporting config sha256:663c0f5a5c110651c60785876cdc374b88fea6960d077b483ee38574dcb3dad6 done
|
|
#13 exporting attestation manifest sha256:a4d1ca179735a3a6bdfa958a420b087426179439c0d978703305d7c3e0ec3bdd 0.0s done
|
|
#13 exporting manifest list sha256:39eede334e214476c9a2bcb8577e4953934652ba6f459614bfe2fd1140335446 0.0s done
|
|
#13 naming to docker.io/library/highload-lab5-backend-tests:latest done
|
|
#13 unpacking to docker.io/library/highload-lab5-backend-tests:latest 0.0s done
|
|
#13 DONE 0.1s
|
|
|
|
#14 resolving provenance for metadata file
|
|
#14 DONE 0.0s
|
|
Image highload-lab5-backend-tests Built
|
|
Container highload-lab5-s3-bootstrap-1 Waiting
|
|
Container highload-lab5-db-1 Waiting
|
|
Container highload-lab5-redis-1 Waiting
|
|
Container highload-lab5-redis-1 Healthy
|
|
Container highload-lab5-s3-bootstrap-1 Exited
|
|
Container highload-lab5-db-1 Healthy
|
|
Container highload-lab5-backend-tests-run-00fc96550868 Creating
|
|
Container highload-lab5-backend-tests-run-00fc96550868 Created
|
|
? [REDACTED]/src/backend [no test files]
|
|
? [REDACTED]/src/backend/app [no test files]
|
|
? [REDACTED]/src/backend/commands [no test files]
|
|
? [REDACTED]/src/backend/handlers [no test files]
|
|
? [REDACTED]/src/backend/internal/faults [no test files]
|
|
? [REDACTED]/src/backend/repositories [no test files]
|
|
? [REDACTED]/src/backend/services [no test files]
|
|
=== RUN TestAttachmentCleanupGraceLocksProtectionAndRetry
|
|
--- PASS: TestAttachmentCleanupGraceLocksProtectionAndRetry (1.44s)
|
|
=== RUN TestAttachmentCleanupInvalidKeyIsNeverDeleted
|
|
--- PASS: TestAttachmentCleanupInvalidKeyIsNeverDeleted (2.10s)
|
|
=== RUN TestAttachmentValidationHTTP
|
|
--- PASS: TestAttachmentValidationHTTP (2.74s)
|
|
=== RUN TestAttachmentAccessHTTP
|
|
--- PASS: TestAttachmentAccessHTTP (4.50s)
|
|
=== RUN TestUploadRecoveryHTTPDisconnect
|
|
--- PASS: TestUploadRecoveryHTTPDisconnect (1.26s)
|
|
=== RUN TestAttachmentImageValidation
|
|
--- PASS: TestAttachmentImageValidation (0.01s)
|
|
=== RUN TestAttachmentFilenameValidation
|
|
--- PASS: TestAttachmentFilenameValidation (0.00s)
|
|
=== RUN TestAttachmentMessageRequiresStringText
|
|
--- PASS: TestAttachmentMessageRequiresStringText (0.69s)
|
|
=== RUN TestConcurrentMessageCreation
|
|
--- PASS: TestConcurrentMessageCreation (4.62s)
|
|
=== RUN TestConnectionFilesTakePrecedence
|
|
--- PASS: TestConnectionFilesTakePrecedence (0.05s)
|
|
=== RUN TestConfiguredIdempotencyTTL
|
|
--- PASS: TestConfiguredIdempotencyTTL (0.74s)
|
|
=== RUN TestInvalidIdempotencyTTL
|
|
--- PASS: TestInvalidIdempotencyTTL (0.00s)
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz
|
|
=== RUN TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess (0.00s)
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/not-a-uuid (0.00s)
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/not-a-uuid (0.00s)
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/not-a-uuid (0.00s)
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/not-a-uuid (0.00s)
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/user_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s)
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/chats/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s)
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/chat_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s)
|
|
--- PASS: TestCursorRejectsInvalidUUIDBeforeDatabaseAccess/messages/message_id/ffffffff-ffff-ffff-ffff-fffffffffffz (0.00s)
|
|
=== RUN TestChatCursorPreservesPosition
|
|
--- PASS: TestChatCursorPreservesPosition (0.00s)
|
|
=== RUN TestDirectUploadCleanupSafetyAndReplay
|
|
--- PASS: TestDirectUploadCleanupSafetyAndReplay (1.27s)
|
|
=== RUN TestDirectUploadCleanupDependencyFailureAndMalformedKey
|
|
--- PASS: TestDirectUploadCleanupDependencyFailureAndMalformedKey (0.91s)
|
|
=== RUN TestDirectUploadAccessPermissionsAndLifecycle
|
|
--- PASS: TestDirectUploadAccessPermissionsAndLifecycle (1.24s)
|
|
=== RUN TestDirectUploadAccessCORS
|
|
--- PASS: TestDirectUploadAccessCORS (0.00s)
|
|
=== RUN TestDirectUploadFlow
|
|
--- PASS: TestDirectUploadFlow (1.70s)
|
|
=== RUN TestDirectUploadValidationHTTP
|
|
--- PASS: TestDirectUploadValidationHTTP (1.02s)
|
|
=== RUN TestDirectUploadValidationContents
|
|
--- PASS: TestDirectUploadValidationContents (1.14s)
|
|
=== RUN TestDirectUploadAccess
|
|
--- PASS: TestDirectUploadAccess (1.64s)
|
|
=== RUN TestDirectUploadRecoveryConcurrentComplete
|
|
--- PASS: TestDirectUploadRecoveryConcurrentComplete (0.88s)
|
|
=== RUN TestDirectUploadRecoveryFailures
|
|
=== RUN TestDirectUploadRecoveryFailures/copy-result-loss
|
|
=== RUN TestDirectUploadRecoveryFailures/get-failure
|
|
=== RUN TestDirectUploadRecoveryFailures/metadata-rejection
|
|
=== RUN TestDirectUploadRecoveryFailures/database-disconnect
|
|
--- PASS: TestDirectUploadRecoveryFailures (3.94s)
|
|
--- PASS: TestDirectUploadRecoveryFailures/copy-result-loss (0.94s)
|
|
--- PASS: TestDirectUploadRecoveryFailures/get-failure (1.02s)
|
|
--- PASS: TestDirectUploadRecoveryFailures/metadata-rejection (0.88s)
|
|
--- PASS: TestDirectUploadRecoveryFailures/database-disconnect (1.10s)
|
|
=== RUN TestDirectUploadRecoveryProcessExit
|
|
--- PASS: TestDirectUploadRecoveryProcessExit (0.95s)
|
|
=== RUN TestDirectUploadCrashHelper
|
|
--- PASS: TestDirectUploadCrashHelper (0.00s)
|
|
=== RUN TestDirectUploadRecoverySharedSlotAndCancellation
|
|
--- PASS: TestDirectUploadRecoverySharedSlotAndCancellation (0.87s)
|
|
=== RUN TestConcurrentRegistrationSameUsername
|
|
--- PASS: TestConcurrentRegistrationSameUsername (0.94s)
|
|
=== RUN TestChatTransactionRollsBackAfterMemberInsertFailure
|
|
--- PASS: TestChatTransactionRollsBackAfterMemberInsertFailure (1.54s)
|
|
=== RUN TestShortSessionTTLAndLogout
|
|
grade4_lab2_test.go:118: GET /api/v1/users/me: HTTP 200
|
|
grade4_lab2_test.go:134: SESSION_TTL_SECONDS=2: expiry observed after 2.07031311s
|
|
grade4_lab2_test.go:135: GET /api/v1/users/me: HTTP 401
|
|
grade4_lab2_test.go:146: GET /api/v1/users/me: HTTP 401
|
|
--- PASS: TestShortSessionTTLAndLogout (2.83s)
|
|
=== RUN TestWrongPasswordAndLogoutHTTP
|
|
--- PASS: TestWrongPasswordAndLogoutHTTP (1.48s)
|
|
=== RUN TestDependencyFailuresReturnUnavailable
|
|
redis: 2026/11/05 20:34:37 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
|
|
redis: 2026/11/05 20:34:38 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
|
|
redis: 2026/11/05 20:34:39 pool.go:426: redis: connection pool: failed to dial after 5 attempts: dial tcp 127.0.0.1:1: connect: connection refused
|
|
--- PASS: TestDependencyFailuresReturnUnavailable (2.52s)
|
|
=== RUN TestHistoryQueryPlanAtTenThousandMessages
|
|
=== RUN TestHistoryQueryPlanAtTenThousandMessages/first
|
|
grade4_lab2_test.go:281: first page EXPLAIN (ANALYZE, BUFFERS): [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 4.29,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 69,
|
|
"Actual Startup Time": 0.028,
|
|
"Actual Total Time": 0.042,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 784.70,
|
|
"Plan Rows": 9999,
|
|
"Plan Width": 69,
|
|
"Actual Startup Time": 0.027,
|
|
"Actual Total Time": 0.036,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('0001-01-01 00:00:00+00'::timestamp with time zone, '00000000-0000-0000-0000-000000000000'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 3,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 6,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.141,
|
|
"Triggers": [
|
|
],
|
|
"Execution Time": 0.142
|
|
}
|
|
]
|
|
=== RUN TestHistoryQueryPlanAtTenThousandMessages/late
|
|
grade4_lab2_test.go:281: late page EXPLAIN (ANALYZE, BUFFERS): [
|
|
{
|
|
"Plan": {
|
|
"Node Type": "Limit",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 14.48,
|
|
"Plan Rows": 51,
|
|
"Plan Width": 69,
|
|
"Actual Startup Time": 0.038,
|
|
"Actual Total Time": 0.050,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Shared Hit Blocks": 3,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0,
|
|
"Plans": [
|
|
{
|
|
"Node Type": "Index Scan",
|
|
"Parent Relationship": "Outer",
|
|
"Parallel Aware": false,
|
|
"Async Capable": false,
|
|
"Scan Direction": "Forward",
|
|
"Index Name": "messages_history_idx",
|
|
"Relation Name": "messages",
|
|
"Alias": "messages",
|
|
"Startup Cost": 0.29,
|
|
"Total Cost": 278.27,
|
|
"Plan Rows": 999,
|
|
"Plan Width": 69,
|
|
"Actual Startup Time": 0.037,
|
|
"Actual Total Time": 0.044,
|
|
"Actual Rows": 51,
|
|
"Actual Loops": 1,
|
|
"Index Cond": "((chat_id = '72bd54c1-0ba3-4378-87ae-4e8750762258'::uuid) AND (ROW(created_at, id) > ROW('2026-01-01 00:00:00.009001+00'::timestamp with time zone, '2d5fdccb-739f-4756-a5e8-bfc8e16a97ed'::uuid)))",
|
|
"Rows Removed by Index Recheck": 0,
|
|
"Shared Hit Blocks": 3,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
}
|
|
]
|
|
},
|
|
"Planning": {
|
|
"Shared Hit Blocks": 0,
|
|
"Shared Read Blocks": 0,
|
|
"Shared Dirtied Blocks": 0,
|
|
"Shared Written Blocks": 0,
|
|
"Local Hit Blocks": 0,
|
|
"Local Read Blocks": 0,
|
|
"Local Dirtied Blocks": 0,
|
|
"Local Written Blocks": 0,
|
|
"Temp Read Blocks": 0,
|
|
"Temp Written Blocks": 0
|
|
},
|
|
"Planning Time": 0.096,
|
|
"Triggers": [
|
|
],
|
|
"Execution Time": 0.071
|
|
}
|
|
]
|
|
--- PASS: TestHistoryQueryPlanAtTenThousandMessages (0.87s)
|
|
--- PASS: TestHistoryQueryPlanAtTenThousandMessages/first (0.00s)
|
|
--- PASS: TestHistoryQueryPlanAtTenThousandMessages/late (0.00s)
|
|
=== RUN TestIdempotencyConcurrentStoresAndScopes
|
|
--- PASS: TestIdempotencyConcurrentStoresAndScopes (1.45s)
|
|
=== RUN TestIdempotencyRecordFailureRollsBackMessage
|
|
--- PASS: TestIdempotencyRecordFailureRollsBackMessage (0.68s)
|
|
=== RUN TestMessengerWorkflow
|
|
--- PASS: TestMessengerWorkflow (1.07s)
|
|
=== RUN TestJobExpiredLeaseCannotPublishOrExceedAttempts
|
|
--- PASS: TestJobExpiredLeaseCannotPublishOrExceedAttempts (0.69s)
|
|
=== RUN TestRetryBackoffStaysInExponentialJitterWindow
|
|
--- PASS: TestRetryBackoffStaysInExponentialJitterWindow (0.00s)
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/canonical
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/mixed_case
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/unknown_field
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/wrong_type
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/null
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/array
|
|
=== RUN TestDecodeJSONBodyRequiresExactFieldNames/trailing_object
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames (0.76s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/canonical (0.02s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_canonical_name (0.02s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra (0.00s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_extra_first (0.00s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/mixed_case (0.00s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/uppercase_attachments (0.00s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/escaped_uppercase (0.00s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/unknown_field (0.00s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/wrong_type (0.01s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/null (0.00s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/array (0.00s)
|
|
--- PASS: TestDecodeJSONBodyRequiresExactFieldNames/trailing_object (0.00s)
|
|
=== RUN TestCreateMessageBlankText
|
|
--- PASS: TestCreateMessageBlankText (0.69s)
|
|
=== RUN TestCreateMessageFromChatOutsider
|
|
--- PASS: TestCreateMessageFromChatOutsider (1.05s)
|
|
=== RUN TestListMessagesPagination
|
|
--- PASS: TestListMessagesPagination (0.73s)
|
|
=== RUN TestListPageByChatUsesCursorAndLimit
|
|
--- PASS: TestListPageByChatUsesCursorAndLimit (0.71s)
|
|
=== RUN TestListPageByChatReturnsNonNilEmptyPage
|
|
--- PASS: TestListPageByChatReturnsNonNilEmptyPage (0.32s)
|
|
=== RUN TestPipelineUpgradeFencesOldLeaseAndPublishesV2
|
|
--- PASS: TestPipelineUpgradeFencesOldLeaseAndPublishesV2 (0.75s)
|
|
=== RUN TestS3PermissionsAndBootstrap
|
|
--- PASS: TestS3PermissionsAndBootstrap (1.23s)
|
|
=== RUN TestPasswordKDFUsesSaltAndFullUTF8Password
|
|
--- PASS: TestPasswordKDFUsesSaltAndFullUTF8Password (1.46s)
|
|
=== RUN TestStoredPasswordUsesArgon2id
|
|
--- PASS: TestStoredPasswordUsesArgon2id (0.94s)
|
|
=== RUN TestBearerRequiredIgnoresXUserID
|
|
--- PASS: TestBearerRequiredIgnoresXUserID (0.00s)
|
|
=== RUN TestMessageCursorPreservesPosition
|
|
--- PASS: TestMessageCursorPreservesPosition (0.00s)
|
|
=== RUN TestUploadRecoveryAfterPutFailure
|
|
--- PASS: TestUploadRecoveryAfterPutFailure (1.10s)
|
|
=== RUN TestUploadRecoveryMetadataRejection
|
|
--- PASS: TestUploadRecoveryMetadataRejection (0.81s)
|
|
=== RUN TestUploadRecoveryDatabaseConnectionLoss
|
|
--- PASS: TestUploadRecoveryDatabaseConnectionLoss (0.84s)
|
|
=== RUN TestUploadRecoveryProcessExit
|
|
--- PASS: TestUploadRecoveryProcessExit (0.87s)
|
|
=== RUN TestUploadCrashHelper
|
|
--- PASS: TestUploadCrashHelper (0.00s)
|
|
=== RUN TestUploadRecoveryInterruptedBody
|
|
--- PASS: TestUploadRecoveryInterruptedBody (0.73s)
|
|
=== RUN TestUploadRecoveryWaitingCancellation
|
|
--- PASS: TestUploadRecoveryWaitingCancellation (0.82s)
|
|
=== RUN TestCreateUserInvalidJSON
|
|
--- PASS: TestCreateUserInvalidJSON (0.00s)
|
|
=== RUN TestCreateUserDuplicateUsername
|
|
--- PASS: TestCreateUserDuplicateUsername (1.11s)
|
|
=== RUN TestCaseVariantExtraFieldsReturn400WithoutSaving
|
|
--- PASS: TestCaseVariantExtraFieldsReturn400WithoutSaving (0.81s)
|
|
=== RUN TestChatRejectsCaseVariantDuplicateMembersBeforeSQL
|
|
--- PASS: TestChatRejectsCaseVariantDuplicateMembersBeforeSQL (0.00s)
|
|
=== RUN TestChatNormalizesMemberUUIDsHTTP
|
|
--- PASS: TestChatNormalizesMemberUUIDsHTTP (0.74s)
|
|
PASS
|
|
ok [REDACTED]/src/backend/tests 65.615s
|
|
=== RUN TestThumbnailContract
|
|
=== RUN TestThumbnailContract/320x200
|
|
=== RUN TestThumbnailContract/200x320
|
|
=== RUN TestThumbnailContract/17x9
|
|
=== RUN TestThumbnailContract/1000x1
|
|
--- PASS: TestThumbnailContract (4.94s)
|
|
--- PASS: TestThumbnailContract/320x200 (0.49s)
|
|
--- PASS: TestThumbnailContract/200x320 (0.63s)
|
|
--- PASS: TestThumbnailContract/17x9 (0.12s)
|
|
--- PASS: TestThumbnailContract/1000x1 (3.71s)
|
|
=== RUN TestThumbnailAppliesEXIFOrientation
|
|
--- PASS: TestThumbnailAppliesEXIFOrientation (0.33s)
|
|
=== RUN TestOptimizedBoundsAndCenteredCrop
|
|
--- PASS: TestOptimizedBoundsAndCenteredCrop (5.80s)
|
|
=== RUN TestVersionedRenderingHasDistinctImmutableResults
|
|
--- PASS: TestVersionedRenderingHasDistinctImmutableResults (0.08s)
|
|
PASS
|
|
ok [REDACTED]/src/backend/workers 12.271s
|