MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / main

Function main

scripts/update_cddl.py:357–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

355
356
357def main():
358 webref_commit = resolve_commit_for(WEBREF_REPO, WEBREF_BRANCH)
359 bidi_commit = resolve_commit_for(BIDI_SPEC_REPO, BIDI_SPEC_BRANCH)
360 print(f"Pinning {WEBREF_REPO}@{webref_commit} and {BIDI_SPEC_REPO}@{bidi_commit} ({BIDI_SPEC_FILE})")
361 spec_html = get(BIDI_SPEC_RAW.format(commit=bidi_commit))
362 specs = resolve_specs(webref_commit, external_spec_urls(spec_html.decode()))
363 print(f"Merged specs: {', '.join(shortname for shortname, _ in specs)}")
364 pinned = pin_specs(webref_commit, specs)
365 vendors = pin_vendors()
366 for namespace, source, branch, commit, files in vendors:
367 filenames = ", ".join(filename for filename, _ in files)
368 print(f"Vendor {namespace}: {source['repo']}@{commit} on {branch} ({filenames})")
369
370 BZL_FILE.write_text(render(webref_commit, pinned, bidi_commit, sha256_of(spec_html), vendors))
371 update_module(pinned, vendors)
372 print(f"Updated {BZL_FILE.relative_to(root_dir)} and {MODULE_FILE.relative_to(root_dir)}")
373
374
375if __name__ == "__main__":

Callers 1

update_cddl.pyFile · 0.70

Calls 11

resolve_commit_forFunction · 0.85
resolve_specsFunction · 0.85
external_spec_urlsFunction · 0.85
pin_specsFunction · 0.85
pin_vendorsFunction · 0.85
renderFunction · 0.85
sha256_ofFunction · 0.85
update_moduleFunction · 0.85
getFunction · 0.70
decodeMethod · 0.65
formatMethod · 0.45

Tested by

no test coverage detected