Closed Bug 1846340 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 41254 - Refactor FLEDGE WPTs to use Python bidding/decision logic handlers.

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox118 fixed)

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 41254 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/41254
Details from upstream follow.

Andrew Verge <averge@chromium.org> wrote:

Refactor FLEDGE WPTs to use Python bidding/decision logic handlers.

Previously, bidding and decision logic functions were loaded from static
JS files, which limited their utility; the more configuration we wanted
in the tests, the more static files we had to write. This change
replaces the static *.js and *.js.headers files with Python that
generates the same code (except with imperfect formatting).

The Python handlers are configurable with URL parameters. This means
that whenever we want to configurea FLEDGE test to do something new,
we can just provide a URL param to the Python handler, which can use
it to modify the JS under test.

Change-Id: I980f87074379e6acb8608bf552e9fa775576d3ca
Reviewed-on: https://chromium-review.googlesource.com/4732766
WPT-Export-Revision: 478890a25a09c7a8eecdb271b87caeeb5b0b88d5

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Test result changes from PR not available.
Pushed by ctuns@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/2e39cc1ff708 [wpt PR 41254] - Refactor FLEDGE WPTs to use Python bidding/decision logic handlers., a=testonly
Status: REOPENED → RESOLVED
Closed: 1 year ago1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.