Skip to content

[Flaky Test] Media Upload Performance > Single Image Upload > Large JPEG uploads stalls on blob: src #79923

Description

@adamsilverstein

Flaky test

[chromium] › specs/media-upload.spec.js:172 › Media Upload Performance › Single Image Upload › Large JPEG uploads

Part of the "Run performance tests" job (Performance Tests workflow).

Failure mode

The test uploads 3200x2400_e2e_test_image_responsive_lightbox.jpeg into an Image block and waits for the image src to flip from the client-side blob: URL to a server URL:

Error: expect(locator).toHaveAttribute(expected) failed

Locator: locator('[name="editor-canvas"]').contentFrame().locator('role=document[name="Block: Image"i]').getByRole('img', { name: 'This image has an empty alt attribute' })
Expected pattern: /^https?:\/\//
Received string:  "blob:http://localhost:8889/ec4737c2-6259-44a0-9c82-a9b1aea9bb84"
Timeout: 120000ms

The src never resolves within the full 120s timeout, i.e. the upload stalls completely. On passing runs, largeJpegUploadProcessing measures ~240 ms, so this is not marginal timing - when it fails, the upload never completes at all. The failure is often accompanied by repeated Failed to load resource: the server responded with a status of 404 (Not Found) console messages.

The smaller JPEG uploads (1024x768), PNG uploads, and Batch upload 5 images tests in the same spec usually pass in the same runs, so the stall is specific to (or most likely triggered by) the large JPEG iteration.

Occurrences

Failing on both trunk push runs and unrelated PRs, so this is not tied to any particular change:

Rough failure rate on trunk over the past few days is around 1 in 5 runs of the Performance Tests workflow.

Notes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

[Status] In ProgressTracking issues with work in progress[Type] Flaky TestAuto-generated flaky test report issue

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions