WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
301388
[ews-build] DetermineLandedIdentifier should support Canonical-link trailer
https://bugs.webkit.org/show_bug.cgi?id=301388
Summary
[ews-build] DetermineLandedIdentifier should support Canonical-link trailer
Sam Sneddon [:gsnedders]
Reported
2025-10-23 17:42:56 PDT
As part of
bug 266028
, we need to migrate everything to supporting actual git trailers. On EWS, we have: ``` Tools/CISupport/ews-build/steps.py 6314: command = ['/bin/bash', '--posix', '-o', 'pipefail', '-c', "git log -1 --no-decorate | grep 'Canonical link:
https://commits\\.webkit\\.org/
'"] 6315: CANONICAL_LINK_RE = re.compile(r'\ACanonical link:
https://commits\.webkit\.org/(?P
<identifier>\d+.?\d*@\S+)\Z') 6341: match = self.CANONICAL_LINK_RE.match(line[4:]) ``` (Plus associated, currently disabled, unit tests.) We probably want to run something more like the following, and change the regex to include a hyphen: ``` git log --format=%B -1 | \ sed -e 's/Canonical link:/Canonical-link:/' | \ git -c trailer.Canonical-link.key=Canonical-link -c trailer.Identifier.key=Identifier -c trailer.git-svn-id.key=git-svn-id interpret-trailers --parse --no-divider ``` We need to specify the trailer.xxx.key config options because:
> Existing trailers are extracted from the input message by looking for a group of one or more lines that (i) is all trailers, or (ii) contains at least one Git-generated or user-configured trailer and consists of at least 25% trailers.
And we have plenty of groups which aren't all trailers in WebKit.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-10-23 17:43:02 PDT
<
rdar://problem/163304249
>
Sam Sneddon [:gsnedders]
Comment 2
2026-05-11 17:07:10 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/64715
EWS
Comment 3
2026-06-05 17:57:45 PDT
Committed
314674@main
(4e8d725445b3): <
https://commits.webkit.org/314674@main
> Reviewed commits have been landed. Closing PR #64715 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug