[Webkit-unassigned] [Bug 243277] New: EWS is using wrong base revision to determine if PRs need rebasing
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 27 18:50:23 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=243277
Bug ID: 243277
Summary: EWS is using wrong base revision to determine if PRs
need rebasing
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mattwoodrow at apple.com
EWS is using the base.sha received from the Github pull request hook to determine if a PR branch needs to be rebased before building.
As discussed here - https://github.com/github/docs/issues/431 - base.sha is the sha for the current HEAD of the branch we want to merge in to (main), which may not be the commit that the PR branch is based on (the nearest common ancestor of head:MAIN and the PR branch), especially if `--no-rebase` was used for `git webkit pr`.
I think this means we effectively never rebase PRs before building and running tests, except we still update when running 'compile-webkit-without-change', so the test results comparison is invalid.
An example is here:
Build log: https://ews-build.webkit.org/#/builders/64/builds/26323
This checked out the current branch, with hash 1f7bd0da - https://github.com/WebKit/WebKit/commit/1f7bd0dadc55fd7a00223ede7600c26cc2eef517. The parent of that commit is https://github.com/WebKit/WebKit/commit/af751da03e1659f63ecddb9cf8eb7c8cfaa69520 - 252657 at main.
We then ran tests, failed and built webkit without the changes - https://ews-build.webkit.org/#/builders/68/builds/21414
This checked out 659f5b107515cfac3610d557b4c38a2ec0f00b57, which is 252808 at main.
So the original tests ran with 252657 at main (plus my changes), the comparison ran with 252808 at main.
I think we need to switch to using `git merge-base --is-ancestor main ${pr-branch}` to determine if the PR branch is rebased or not, rather than using base.sha from GitHub.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220728/31e35000/attachment-0001.htm>
More information about the webkit-unassigned
mailing list