Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ae1867e8e9b49ece369b854297943d87959980ee
https://github.com/WebKit/WebKit/commit/ae1867e8e9b49ece369b854297943d87959980ee
Author: Issac Roy <[email protected]>
Date: 2026-07-22 (Wed, 22 Jul 2026)
Changed paths:
M Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/ews_context.py
A
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/ews_context_unittest.py
M
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/mock_model_factory.py
M Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/model.py
Log Message:
-----------
Store and query EWS test results in the results database
https://bugs.webkit.org/show_bug.cgi?id=319400
rdar://157892382
Reviewed by Aakash Jain.
EWSContext defines the EWS results schema (bug 319113); this adds the read
and write path on top of it. register() classifies a run's unexpected
failures and stores them, routing to the flaky table when given a
flaky_type and the failed table otherwise, and find_for_test() queries
either table via a flaky flag. EWSContext is wired into Model, with a mock
helper (add_mock_ews_results) and unit tests.
This also refines the landed skeleton: the result column becomes result_id,
a build_number column is added, and a Source value type bundles the
provenance columns (remote, pr_number, commit_hash, build_number).
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/ews_context.py:
(Source):
(Source.unpack):
(EWSContext):
(EWSContext.EWSResultsBase):
(EWSContext.EWSResultsBase.unpack):
(EWSContext.EWSFailedTestsByCommit):
(EWSContext.EWSFlakyTestsByCommit):
(EWSContext.__init__):
(EWSContext.register):
(EWSContext._classify_unexpected):
(EWSContext.find_for_test):
*
Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/ews_context_unittest.py:
Added.
(EWSContextTest):
(EWSContextTest.init_database):
(EWSContextTest._find):
(EWSContextTest.test_unexpected_failures_stored):
(EWSContextTest.test_metadata_stored):
(EWSContextTest.test_flaky_results_stored):
(EWSContextTest.test_retries_preserved_for_same_commit):
(EWSContextTest.test_no_unexpected_failures):
(EWSContextTest.test_no_results):
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/mock_model_factory.py:
(MockModelFactory):
(MockModelFactory.add_mock_ews_results):
* Tools/Scripts/libraries/resultsdbpy/resultsdbpy/model/model.py:
(Model.__init__):
Canonical link: https://commits.webkit.org/317718@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications