<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>301388</bug_id>
          
          <creation_ts>2025-10-23 17:42:56 -0700</creation_ts>
          <short_desc>[ews-build] DetermineLandedIdentifier should support Canonical-link trailer</short_desc>
          <delta_ts>2026-06-05 17:57:47 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Sam Sneddon [:gsnedders]">gsnedders</assigned_to>
          <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2153879</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2025-10-23 17:42:56 -0700</bug_when>
    <thetext>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 = [&apos;/bin/bash&apos;, &apos;--posix&apos;, &apos;-o&apos;, &apos;pipefail&apos;, &apos;-c&apos;, &quot;git log -1 --no-decorate | grep &apos;Canonical link: https://commits\\.webkit\\.org/&apos;&quot;]
6315:    CANONICAL_LINK_RE = re.compile(r&apos;\ACanonical link: https://commits\.webkit\.org/(?P&lt;identifier&gt;\d+.?\d*@\S+)\Z&apos;)
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 &apos;s/Canonical link:/Canonical-link:/&apos; | \
  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:

&gt; 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&apos;t all trailers in WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2153880</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-10-23 17:43:02 -0700</bug_when>
    <thetext>&lt;rdar://problem/163304249&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2209914</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2026-05-11 17:07:10 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/64715</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2218199</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-06-05 17:57:45 -0700</bug_when>
    <thetext>Committed 314674@main (4e8d725445b3): &lt;https://commits.webkit.org/314674@main&gt;

Reviewed commits have been landed. Closing PR #64715 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>