<?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>247622</bug_id>
          
          <creation_ts>2022-11-08 08:37:03 -0800</creation_ts>
          <short_desc>Avoid using __TIMESTAMP__ when building for a compilation cache</short_desc>
          <delta_ts>2023-06-26 13:57:17 -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>JavaScriptCore</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=252308</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=258517</see_also>
          <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="Elliott Williams">emw</reporter>
          <assigned_to name="Elliott Williams">emw</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1911031</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-11-08 08:37:03 -0800</bug_when>
    <thetext>__TIME__, __DATE__, and __TIMESTAMP__ are non-deterministic and interfere with cache reproducibility.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911033</commentid>
    <comment_count>1</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-11-08 08:54:39 -0800</bug_when>
    <thetext>&lt;rdar://problem/102056857&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911034</commentid>
    <comment_count>2</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2022-11-08 08:54:54 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/6256</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1913347</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-17 17:46:37 -0800</bug_when>
    <thetext>Committed 256816@main (adb96155be5e): &lt;https://commits.webkit.org/256816@main&gt;

Reviewed commits have been landed. Closing PR #6256 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963588</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2023-06-26 03:09:34 -0700</bug_when>
    <thetext>This actually broke reproducibility of cmake-based builds, as (non-reproducible) TIMESTAMP is now injected into binaries where this previously did not happen (look at the changes to CMakeLists.txt in the PR linked to this ticket).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963646</commentid>
    <comment_count>5</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2023-06-26 11:05:36 -0700</bug_when>
    <thetext>&gt; This actually broke reproducibility of cmake-based builds, as (non-reproducible) TIMESTAMP is now injected into binaries where this previously did not happen

How was it reproducible before? We used to call `jscBytecodeCacheVersion()` in all builds, which was based on __TIMESTAMP__.

My intention was to maintain the status quo for cmake builds, since the checksum-based approach did not seem to be easily compatible with cmake&apos;s ninja generator.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1963666</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-06-26 13:57:17 -0700</bug_when>
    <thetext>(In reply to Elliott Williams from comment #5)
&gt; How was it reproducible before?

__TIMESTAMP__ is the file modification time, which was previously fixed but now changes on every build. See bug #252308 and bug #258517.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>