Skip to content

[Daily #1121] upload-via-component: uploaded file item never renders — getByTestId('file-item-test-file') not found (recurrent flake, 2×) #1125

Description

@Victor-w-Madeira

Spun out of daily-failure triage #1121 (run 30534416609, 2026-07-30). The run was a clean, non-guarded daily (466 passed, 2 hard failures, 10 flakes — the mass-failure guard did not trip), so this failure is not mass-failure collateral. Backend liveness measured no mid-run outage on 4/4 shards, but 31 single-probe failures were discarded as blips, so a wedge is not fully ruled out for the run (#1030); this test's last error is not transport-level, and the run attributed it to the spec.

Upstream: not filed

Symptom

In the file-management modal of the Read File component, the uploaded file item never renders: expect(getByTestId('file-item-test-file')).toBeVisible() fails after 15 s. Recovered on retry (1 failed attempt of 2). Same-signature recurrent across the dailies of 2026-07-23 and 2026-07-30.

Spec (line) Waits for Signature
tests-automations/regression/core-functionality/knowledge-ingestion-management/upload-via-component.spec.ts:68 ("upload a file through the Read File component and read its content") getByTestId('file-item-test-file') to be visible (15 s) Error: expect(locator).toBeVisible() failed

Why these failures are one cause

Single test, single signature — no grouping claim. Filed on its own because it is a file-management rendering wait, distinct from every other flake in the run.

Preliminary read (descriptive — NOT a verdict)

The spec already gates on the upload completing server-side — it awaits a POST /api/v2/files response with a < 300 status before touching the item — so a premature click on an unfinished upload (the flake this spec was previously hardened against) is not the obvious reading anymore. What is left to distinguish: whether the file list simply does not refresh after the successful POST, whether the item renders under a different test id than the one derived from the asset name, or whether the modal's list is paginated/filtered such that the new item is off-screen. Descriptive only — no cause asserted.

Investigation directive

  1. Reproduce at --retries=0 against the current nightly and establish a rate; the two recorded hits are a week apart, so budget for repetition.
  2. From the trace of the failing attempt, confirm the POST /api/v2/files response was 2xx and read the body — then check whether the subsequent list fetch (GET /api/v2/files) contains the file.
  3. If the file is in the API response but not in the DOM, the defect is the modal's list rendering/refresh; if it is in the DOM under a different test id, the defect is the locator.
  4. Decide whether the spec should wait on the list fetch rather than on the item, and whether the item's test id is derived from data the test controls.

Deliverables (Done when)

  • Root cause confirmed per spec (product regression vs. test/wait-strategy vs. environment), with evidence on the current nightly.
  • Each spec passes reliably (multiple clean --retries=0 runs), fixing waits/flow as needed.
  • Quarantine lifted in the fix PR — remove test.fixme and restore @stable, re-validated per CONTRIBUTING.md. (Nothing to lift if nothing was quarantined.)
  • If the root cause is a product (Langflow) regression: recorded as such here, and this issue stays open until the upstream fix lands in langflowai/langflow-nightly:latest (or the release-1.x.x branch), is re-validated there, and @stable is restored — not on a test-side mute.

Flake signal

This test is confirmed recurrent (dailies 2026-07-23, 2026-07-30). As prevention it was quarantined at triage — @stable removed and test.fixme added — so it stops running in every context (daily, PR impacted-specs gate, full suite) until this issue is worked:

  • tests/tests-automations/regression/core-functionality/knowledge-ingestion-management/upload-via-component.spec.ts (test at line 68)

Lifting the quarantine after the fix (remove test.fixme + restore @stable) is a deliverable of this issue.

Metadata

Metadata

Labels

area:knowledgeUpload e vetorizaçãodaily-failureFailure detected by the daily @stable E2E workflow

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions