<?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>258038</bug_id>
          
          <creation_ts>2023-06-13 11:54:39 -0700</creation_ts>
          <short_desc>REGRESSION(264798@main): Archive-minified-built-product is failing due to extra argument &quot;archive&quot;</short_desc>
          <delta_ts>2023-06-13 12:55:40 -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>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=256283</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="Robert Jenner">jenner</reporter>
          <assigned_to name="Aakash Jain">aakash_jain</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>clopez</cc>
    
    <cc>gsnedders</cc>
    
    <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1961379</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2023-06-13 11:54:39 -0700</bug_when>
    <thetext>We are failing open source builds because archive-minified-built-product is being invoked incorrectly.

On the first failure it is running the script as: 

&apos;python3 Tools/CISupport/built-product-archive --platform=mac-ventura --release archive --minify archive&apos;

https://build.webkit.org/#/builders/706/builds/7107

Whereas on the last time it was passing it was running as:

&apos;python3 Tools/CISupport/built-product-archive --platform=mac-ventura --release archive --minify&apos;

So it basically looks like &quot;archive&quot; got added after minify, and it&apos;s causing it to fail as: 

Traceback (most recent call last):
  File &quot;/Volumes/Data/worker/Apple-Ventura-Release-Build/build/Tools/CISupport/built-product-archive&quot;, line 368, in &lt;module&gt;
    sys.exit(main())
  File &quot;/Volumes/Data/worker/Apple-Ventura-Release-Build/build/Tools/CISupport/built-product-archive&quot;, line 54, in main
    options, (action, ) = parser.parse_args()
ValueError: too many values to unpack (expected 1)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961380</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-06-13 11:56:43 -0700</bug_when>
    <thetext>&lt;rdar://problem/110724385&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961381</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-06-13 12:02:36 -0700</bug_when>
    <thetext>Command from old successful run:
https://build.webkit.org/#/builders/706/builds/7007/steps/13/logs/stdio

python3 Tools/CISupport/built-product-archive --platform=mac-ventura --release archive --minify


Command from recent failing run:
https://build.webkit.org/#/builders/706/builds/7107/steps/13/logs/stdio

python3 Tools/CISupport/built-product-archive --platform=mac-ventura --release archive --minify archive

There is extra argument &apos;archive&apos;. This seems to be regression from https://commits.webkit.org/264798@main</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961383</commentid>
    <comment_count>3</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-06-13 12:06:57 -0700</bug_when>
    <thetext>This change (264798@main) changed ArchiveBuiltProduct but not its subclass ArchiveMinifiedBuiltProduct, leaving the subclass both with its existing &quot;archive&quot; and the one added in ArchiveBuiltProduct.run (https://github.com/WebKit/WebKit/blob/964948660ae097f883e12408b84dea3efd98a7ae/Tools/CISupport/build-webkit-org/steps.py#L434).

It&apos;s not clear to me why it needs to be added in ArchiveBuiltProduct.run at all? Python&apos;s optparse doesn&apos;t care if arguments and options are intermixed, so there&apos;s no need for the run method to add it explicitly to the end as far as I can see?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961384</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2023-06-13 12:07:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/14931</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1961390</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-06-13 12:55:38 -0700</bug_when>
    <thetext>Committed 265131@main (328332879f73): &lt;https://commits.webkit.org/265131@main&gt;

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

    </bug>

</bugzilla>