Skip to content

test(e2e): poll Files list after upload (read-after-write staleness)#523

Merged
padak merged 1 commit into
mainfrom
fix/e2e-file-list-flake
Jul 22, 2026
Merged

test(e2e): poll Files list after upload (read-after-write staleness)#523
padak merged 1 commit into
mainfrom
fix/e2e-file-list-flake

Conversation

@padak

@padak padak commented Jul 22, 2026

Copy link
Copy Markdown
Member

Follow-up to #521. The nightly's last remaining failure was TestFullE2E intermittently failing on "uploaded file must appear in list" — the just-uploaded file was absent from an immediate tag-filtered Files list. The upload is durable (the facade path round-trips read_bytes right before the list), but the tag index is read-after-write eventually consistent and lags a few seconds, so it passed locally + in some CI runs and failed in others (also seen in pre-token-break June nightlies).

Poll the list until the file appears (bounded ~30s) instead of asserting the first read, in both spots that do upload→immediate-list: the SDK-facade round-trip (kbc.files.list) and the CLI file-ops flow (storage files --tag). Same pattern already used for the add-column/swap read-after-DDL lags in #521.

Test-only; make check green (4648 passed). After this, the manual nightly run 29915860766 had exactly this one failure remaining (my four #521 fixes were green: 114 passed / 1 failed).


Open in Devin Review

The nightly's remaining flake after #521 was `TestFullE2E` failing on
"uploaded file must appear in list": the just-uploaded file was missing from
an immediate tag-filtered Files list. The upload is durable (the facade path
round-trips read_bytes right before), but the tag index is read-after-write
eventually consistent and lags a few seconds -- so it passed locally and in
some CI runs, failed in others.

Poll the list until the file appears (bounded ~30s) instead of asserting the
first read, in both the SDK-facade round-trip (kbc.files.list) and the CLI
file-ops flow (storage files --tag). Same pattern already used for the
add-column / swap read-after-DDL lags. Test-only.

make check green (4648 passed).

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

@padak
padak merged commit cadb113 into main Jul 22, 2026
5 checks passed
@padak
padak deleted the fix/e2e-file-list-flake branch July 22, 2026 11:52
padak added a commit that referenced this pull request Jul 22, 2026
…(internal) (#525)

Internal-only maintenance release: client.py -> client/ package split (#520/#524) + nightly E2E flake fixes (#521/#523). No user-facing behavior changes. Version bumped, changelog added, manifests synced, make check green.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant