Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ews-build.webkit.org] Use new-style test in TestWithFailureCount #7965

Conversation

JonWBedard
Copy link
Member

@JonWBedard JonWBedard commented Dec 21, 2022

26498f2

[ews-build.webkit.org] Use new-style test in TestWithFailureCount
https://bugs.webkit.org/show_bug.cgi?id=249729
rdar://103604782

Reviewed by Dewei Zhu.

* Tools/CISupport/ews-build/steps.py:
(TestWithFailureCount.run): Convert start to new-style 'run' commands.
(TestWithFailureCount.countFailures): Accept returncode instead of command result.
(CheckStyle.countFailures): Accept returncode instead of command result.
(customBuildFlag): Renamed from appendCustomBuildFlags, detatch from step type.
(CompileWebKit.start): Replace appendCustomBuildFlags with customBuildFlag.
(RunJavaScriptCoreTests.start): Ditto.
(RunWebKitTests.setLayoutTestCommand): Ditto.
(RunAPITests.run): Convert start to new-style 'run' command.
(RunAPITests.countFailures): Accept returncode instead of command result.
(RunAPITests.doOnFailure): Set of specific actions to take upon failure.
(ReRunAPITests.doOnFailure): Ditto.
(RunAPITestsWithoutChange):
(TestWithFailureCount.start): Deleted.
(TestWithFailureCount.commandComplete): Deleted.
(TestWithFailureCount.evaluateCommand): Deleted.
(appendCustomBuildFlags): Renamed customBuildFlag.
(RunAPITests.start): Deleted.
(RunAPITests.evaluateCommand): Deleted.
(ReRunAPITests.evaluateCommand): Deleted.
(RunAPITestsWithoutChange.evaluateCommand): Deleted.

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

36126a6

Misc iOS, tvOS & watchOS macOS Linux Windows
❌ πŸ§ͺ style βœ… πŸ›  ios βœ… πŸ›  mac βœ… πŸ›  wpe βœ… πŸ›  πŸ§ͺ win
βœ… πŸ§ͺ bindings βœ… πŸ›  ios-sim βœ… πŸ›  mac-AS-debug βœ… πŸ›  gtk βœ… πŸ›  wincairo
βœ… πŸ§ͺ webkitperl βœ… πŸ§ͺ ios-wk2 βœ… πŸ§ͺ api-mac βœ… πŸ§ͺ gtk-wk2
βœ… πŸ§ͺ api-ios βœ… πŸ§ͺ mac-wk1 ❌ πŸ§ͺ api-gtk
βœ… πŸ›  tv βœ… πŸ§ͺ mac-wk2
βœ… πŸ›  tv-sim βœ… πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ§ͺ services βœ… πŸ›  watch βœ… πŸ§ͺ mac-wk2-stress
βœ… πŸ›  watch-sim
❌ πŸ›  πŸ§ͺ unsafe-merge

@JonWBedard JonWBedard self-assigned this Dec 21, 2022
@JonWBedard JonWBedard added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label Dec 21, 2022
Copy link
Contributor

@dewei-zhu dewei-zhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

Comment on lines 4371 to 4372
'--{0}'.format(self.getProperty('configuration')),
'--json-output={0}'.format(self.jsonFileName)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those indentation also need to be updated?
Also if this is python3 only, we can do

...
'--json-output={0}'.format(self.jsonFileName), *customBuildFlag(platform, self.getProperty('fullPlatform'))]

@JonWBedard JonWBedard force-pushed the eng/ews-build-webkit-org-Use-new-style-test-in-TestWithFailureCount branch from 4984f54 to 36126a6 Compare December 21, 2022 23:21
@JonWBedard
Copy link
Member Author

I intend to land this when I get back in January. While I'm confident that it works, it seems prudent to at least be available when it's deployed.

@JonWBedard JonWBedard added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jan 5, 2023
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/ews-build-webkit-org-Use-new-style-test-in-TestWithFailureCount branch from 36126a6 to ee06c9a Compare January 5, 2023 19:22
https://bugs.webkit.org/show_bug.cgi?id=249729
rdar://103604782

Reviewed by Dewei Zhu.

* Tools/CISupport/ews-build/steps.py:
(TestWithFailureCount.run): Convert start to new-style 'run' commands.
(TestWithFailureCount.countFailures): Accept returncode instead of command result.
(CheckStyle.countFailures): Accept returncode instead of command result.
(customBuildFlag): Renamed from appendCustomBuildFlags, detatch from step type.
(CompileWebKit.start): Replace appendCustomBuildFlags with customBuildFlag.
(RunJavaScriptCoreTests.start): Ditto.
(RunWebKitTests.setLayoutTestCommand): Ditto.
(RunAPITests.run): Convert start to new-style 'run' command.
(RunAPITests.countFailures): Accept returncode instead of command result.
(RunAPITests.doOnFailure): Set of specific actions to take upon failure.
(ReRunAPITests.doOnFailure): Ditto.
(RunAPITestsWithoutChange):
(TestWithFailureCount.start): Deleted.
(TestWithFailureCount.commandComplete): Deleted.
(TestWithFailureCount.evaluateCommand): Deleted.
(appendCustomBuildFlags): Renamed customBuildFlag.
(RunAPITests.start): Deleted.
(RunAPITests.evaluateCommand): Deleted.
(ReRunAPITests.evaluateCommand): Deleted.
(RunAPITestsWithoutChange.evaluateCommand): Deleted.

Canonical link: https://commits.webkit.org/258497@main
@webkit-early-warning-system webkit-early-warning-system force-pushed the eng/ews-build-webkit-org-Use-new-style-test-in-TestWithFailureCount branch from ee06c9a to 26498f2 Compare January 5, 2023 19:25
@webkit-commit-queue
Copy link
Collaborator

Committed 258497@main (26498f2): https://commits.webkit.org/258497@main

Reviewed commits have been landed. Closing PR #7965 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit 26498f2 into WebKit:main Jan 5, 2023
@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Jan 5, 2023
@JonWBedard JonWBedard deleted the eng/ews-build-webkit-org-Use-new-style-test-in-TestWithFailureCount branch January 6, 2023 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases
Projects
None yet
4 participants