Skip to content

Make registerAltDictionaryAndWait more robust and review usages. - #61534

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-8137103
Jul 27, 2026
Merged

Make registerAltDictionaryAndWait more robust and review usages.#61534
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-8137103

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Currently, registerAltDictionaryAndWait() calls
waitUntilAvailableDictionaryHeader() which waits until a request to
echo-headers2.py will be sent with an available-dictionary header
matching the dictionary hash. This does not properly works if two
calls of registerAltDictionaryAndWait() are made in the same
compression_dictionary_promise_test, or can lead to flaky behavior
if they are made in the same test file because it can race with
test cleanup's cache clearing. To work around these issues, we instead
force callers to pass distinct dictionary id and watch for the
Dictionary-ID header instead. Also improve the documentation are
verify call sites adhere to it.

Bug: 522338661, 40255884
Change-Id: Ib0945969a4093b2e3abd16b222d2f7ebc2450a23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8137103
Reviewed-by: Patrick Meenan <pmeenan@chromium.org>
Commit-Queue: Frédéric Wang Nélar <fwang@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1668444}

Currently, `registerAltDictionaryAndWait()` calls
`waitUntilAvailableDictionaryHeader()` which waits until a request to
`echo-headers2.py` will be sent with an `available-dictionary` header
matching the dictionary hash. This does not properly works if two
calls of `registerAltDictionaryAndWait()` are made in the same
`compression_dictionary_promise_test`, or can lead to flaky behavior
if they are made in the same test file because it can race with
test cleanup's cache clearing. To work around these issues, we instead
force callers to pass distinct dictionary id and watch for the
`Dictionary-ID` header instead. Also improve the documentation are
verify call sites adhere to it.

Bug: 522338661, 40255884
Change-Id: Ib0945969a4093b2e3abd16b222d2f7ebc2450a23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8137103
Reviewed-by: Patrick Meenan <pmeenan@chromium.org>
Commit-Queue: Frédéric Wang Nélar <fwang@igalia.com>
Cr-Commit-Position: refs/heads/main@{#1668444}

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot
chromium-wpt-export-bot merged commit 020e10b into master Jul 27, 2026
24 of 25 checks passed
@chromium-wpt-export-bot
chromium-wpt-export-bot deleted the chromium-export-cl-8137103 branch July 27, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants