blink-ai: Deduplicate story create options
Every entry in STORIES declared getCreateOptions() as a method that
returns a static object literal, there's duplicate story create options
because the same option shapes were repeated across entries:
- { samplingMode: 'most-predictable' } appeared three times
- { expectedInputs: [{ type: 'image' }] } appeared twice
Extracts the shared shapes into named constants and adds a defineStory()
factory, so each story is declared in one or two lines.
No behavior change.
Bug: 557379053, 562128967
Tested: Verified locally on dev server.
Change-Id: I818cca2322ad0179f6515a9e2f1833bb88f4a1e8
Reviewed-on: https://chromium-review.googlesource.com/c/web-workload/+/8395637
Reviewed-by: Nathan Memmott <memmott@chromium.org>
Reviewed-by: Devin Cabillo <devincabillo@google.com>
This is the source for the chromium workloads page. We keep copies and versions of common press benchmarks and other statically hosted workloads here.
Workloads might have custom licenses that can be found in their respective folders.
It consist of 3 parts:
If possible workloads are DEPS-rolled from single-version branches. on forked repositories on https://chromium.googlesource.com.
LICENSEs are part of the respective workloads or workload versions.
mkdir web-workload && cd web-workload; # Checkout using depot_tools's fetch command: fetch web-workload; cd web-workload # Setup firebase login: # - Install the firebase cl: https://firebase.google.com/docs/cli#install_the_firebase_cli # - Setup firebase: ./setup.sh
chromium-workloads is hosted on firebase.
stage-main.sh to stage a testing version for the main page on temporary domain (can be used for testing freely)deploy-main.sh for the main page on https://chromium-workloads.web.app/,deploy-subdomains.sh for the chromium-workloads-${INDEX}.web.app> subdomains.git pullgclient sync./stage-main.sh./deploy-main.sh./deploy-subdomains.shIn case of a broken deployment we can manually restore an old version via the firebase console.