Changeset 289966 in webkit


Ignore:
Timestamp:
Feb 16, 2022, 2:50:09 PM (4 years ago)
Author:
Jonathan Bedard
Message:

[EWS] Rename 'patch' to 'change' in JSC steps
https://bugs.webkit.org/show_bug.cgi?id=236679
<rdar://problem/88993957>

Reviewed by Aakash Jain.

  • Tools/CISupport/ews-build/steps.py:

(AnalyzeJSCTestsResults.start): Rename 'patch' in variables and log messages to 'change'.
(AnalyzeJSCTestsResults.report_failure): Ditto.

  • Tools/CISupport/ews-build/steps_unittest.py:

Canonical link: https://commits.webkit.org/247354@main

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/ews-build/steps.py

    r289947 r289966  
    24052405
    24062406    def start(self):
    2407         stress_failures_with_patch = set(self.getProperty('jsc_stress_test_failures', []))
    2408         binary_failures_with_patch = set(self.getProperty('jsc_binary_failures', []))
     2407        stress_failures_with_change = set(self.getProperty('jsc_stress_test_failures', []))
     2408        binary_failures_with_change = set(self.getProperty('jsc_binary_failures', []))
    24092409        clean_tree_stress_failures = set(self.getProperty('jsc_clean_tree_stress_test_failures', []))
    24102410        clean_tree_binary_failures = set(self.getProperty('jsc_clean_tree_binary_failures', []))
     
    24122412        clean_tree_failures_string = ', '.join(clean_tree_failures[:self.NUM_FAILURES_TO_DISPLAY])
    24132413
    2414         flaky_stress_failures_with_patch = set(self.getProperty('jsc_flaky_and_passed', {}).keys())
     2414        flaky_stress_failures_with_change = set(self.getProperty('jsc_flaky_and_passed', {}).keys())
    24152415        clean_tree_flaky_stress_failures = set(self.getProperty('jsc_clean_tree_flaky_and_passed', {}).keys())
    2416         flaky_stress_failures = sorted(list(flaky_stress_failures_with_patch) + list(clean_tree_flaky_stress_failures))[:self.NUM_FAILURES_TO_DISPLAY]
     2416        flaky_stress_failures = sorted(list(flaky_stress_failures_with_change) + list(clean_tree_flaky_stress_failures))[:self.NUM_FAILURES_TO_DISPLAY]
    24172417        flaky_failures_string = ', '.join(flaky_stress_failures)
    24182418
    2419         new_stress_failures = stress_failures_with_patch - clean_tree_stress_failures
    2420         new_binary_failures = binary_failures_with_patch - clean_tree_binary_failures
     2419        new_stress_failures = stress_failures_with_change - clean_tree_stress_failures
     2420        new_binary_failures = binary_failures_with_change - clean_tree_binary_failures
    24212421        self.new_stress_failures_to_display = ', '.join(sorted(list(new_stress_failures))[:self.NUM_FAILURES_TO_DISPLAY])
    24222422        self.new_binary_failures_to_display = ', '.join(sorted(list(new_binary_failures))[:self.NUM_FAILURES_TO_DISPLAY])
    24232423
    2424         self._addToLog('stderr', '\nFailures with patch: {}'.format(list(binary_failures_with_patch) + list(stress_failures_with_patch))[:self.NUM_FAILURES_TO_DISPLAY])
    2425         self._addToLog('stderr', '\nFlaky Tests with patch: {}'.format(', '.join(flaky_stress_failures_with_patch)))
     2424        self._addToLog('stderr', '\nFailures with change: {}'.format(list(binary_failures_with_change) + list(stress_failures_with_change))[:self.NUM_FAILURES_TO_DISPLAY])
     2425        self._addToLog('stderr', '\nFlaky Tests with change: {}'.format(', '.join(flaky_stress_failures_with_change)))
    24262426        self._addToLog('stderr', '\nFailures on clean tree: {}'.format(clean_tree_failures_string))
    24272427        self._addToLog('stderr', '\nFlaky Tests on clean tree: {}'.format(', '.join(clean_tree_flaky_stress_failures)))
    24282428
    2429         if (not stress_failures_with_patch) and (not binary_failures_with_patch):
     2429        if (not stress_failures_with_change) and (not binary_failures_with_change):
    24302430            # If we've made it here, then jsc-tests and re-run-jsc-tests failed, which means
    24312431            # there should have been some test failures. Otherwise there is some unexpected issue.
     
    24682468        message = ''
    24692469        if (not new_binary_failures) and (not new_stress_failures):
    2470             message = 'Found unexpected failure with patch'
     2470            message = 'Found unexpected failure with change'
    24712471        if new_binary_failures:
    24722472            pluralSuffix = 's' if len(new_binary_failures) > 1 else ''
  • trunk/Tools/CISupport/ews-build/steps_unittest.py

    r289948 r289966  
    17251725        return self.runStep()
    17261726
    1727     def test_patch_breaking_jsc_test_suite(self):
     1727    def test_change_breaking_jsc_test_suite(self):
    17281728        self.configureStep()
    17291729        self.setProperty('jsc_stress_test_failures', [])
     
    17321732        self.setProperty('jsc_clean_tree_flaky_and_passed', {})
    17331733        self.setProperty('clean_tree_run_status', SUCCESS)
    1734         self.expectOutcome(result=FAILURE, state_string='Found unexpected failure with patch (failure)')
     1734        self.expectOutcome(result=FAILURE, state_string='Found unexpected failure with change (failure)')
    17351735        return self.runStep()
    17361736
  • trunk/Tools/ChangeLog

    r289948 r289966  
     12022-02-15  Jonathan Bedard  <jbedard@apple.com>
     2
     3        [EWS] Rename 'patch' to 'change' in JSC steps
     4        https://bugs.webkit.org/show_bug.cgi?id=236679
     5        <rdar://problem/88993957>
     6
     7        Reviewed by Aakash Jain.
     8
     9        * CISupport/ews-build/steps.py:
     10        (AnalyzeJSCTestsResults.start): Rename 'patch' in variables and log messages to 'change'.
     11        (AnalyzeJSCTestsResults.report_failure): Ditto.
     12        * CISupport/ews-build/steps_unittest.py:
     13
    1142022-02-15  Jonathan Bedard  <jbedard@apple.com>
    215
Note: See TracChangeset for help on using the changeset viewer.