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

[webkitscmpy] Add commit status to pull-request #20494

Conversation

JonWBedard
Copy link
Member

@JonWBedard JonWBedard commented Nov 14, 2023

fca112b

[webkitscmpy] Add commit status to pull-request
https://bugs.webkit.org/show_bug.cgi?id=264827
rdar://118406906

Reviewed by Elliott Williams.

Add commit status and associated mock support to webkitscmpy for future use.

* Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/bitbucket.py:
(BitBucket.__init__): Add "statuses" dictionary.
(BitBucket.request): Respond with mock commit status.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/git_hub.py:
(GitHub.__init__): Add "statuses" dictionary.
(GitHub._commit_response): Repond with mock commit status.
(GitHub.request): Handle commit URLs with trailing path arguments.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/pull_request.py:
(PullRequest.Status): Added.
(PullRequest.Status.Encoder): Added JSON decoder.
(PullRequest.statuses): Return all commit statuses on the current pull-request object.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/bitbucket.py:
(BitBucket.PRGenerator.statuses): Populate commit statuses in pull-request object.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py:
(GitHub.PRGenerator.statuses): Ditto.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/scm.py:
(Scm.PRGenerator.statuses):
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py:

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

352bbfe

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

@JonWBedard JonWBedard self-assigned this Nov 14, 2023
@JonWBedard JonWBedard added the Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases label Nov 14, 2023
@JonWBedard
Copy link
Member Author

Trying to help unblock #18037 by landing this part independently, since it ended up being a bigger change than @gsnedders and I expected.

@JonWBedard JonWBedard force-pushed the eng/webkitscmpy-Add-commit-status-to-pull-request branch from 35a5117 to 352bbfe Compare November 15, 2023 01:06
@JonWBedard JonWBedard added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Nov 15, 2023
@webkit-commit-queue webkit-commit-queue force-pushed the eng/webkitscmpy-Add-commit-status-to-pull-request branch from 352bbfe to 7b62099 Compare November 15, 2023 01:11
https://bugs.webkit.org/show_bug.cgi?id=264827
rdar://118406906

Reviewed by Elliott Williams.

Add commit status and associated mock support to webkitscmpy for future use.

* Tools/Scripts/libraries/webkitscmpy/setup.py: Bump version.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/__init__.py: Ditto.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/bitbucket.py:
(BitBucket.__init__): Add "statuses" dictionary.
(BitBucket.request): Respond with mock commit status.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/mocks/remote/git_hub.py:
(GitHub.__init__): Add "statuses" dictionary.
(GitHub._commit_response): Repond with mock commit status.
(GitHub.request): Handle commit URLs with trailing path arguments.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/pull_request.py:
(PullRequest.Status): Added.
(PullRequest.Status.Encoder): Added JSON decoder.
(PullRequest.statuses): Return all commit statuses on the current pull-request object.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/bitbucket.py:
(BitBucket.PRGenerator.statuses): Populate commit statuses in pull-request object.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/git_hub.py:
(GitHub.PRGenerator.statuses): Ditto.
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/remote/scm.py:
(Scm.PRGenerator.statuses):
* Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/pull_request_unittest.py:

Canonical link: https://commits.webkit.org/270736@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/webkitscmpy-Add-commit-status-to-pull-request branch from 7b62099 to fca112b Compare November 15, 2023 01:15
@webkit-commit-queue webkit-commit-queue merged commit fca112b into WebKit:main Nov 15, 2023
@webkit-commit-queue
Copy link
Collaborator

Committed 270736@main (fca112b): https://commits.webkit.org/270736@main

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

@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 Nov 15, 2023
@JonWBedard JonWBedard deleted the eng/webkitscmpy-Add-commit-status-to-pull-request branch November 27, 2023 15:26
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