<?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>271808</bug_id>
          
          <creation_ts>2024-03-27 16:13:10 -0700</creation_ts>
          <short_desc>compile-webkit step reported success even though xcodebuild couldn&apos;t find the specified platform</short_desc>
          <delta_ts>2024-11-22 15:06:53 -0800</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>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=276081</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="Ryan Haddad">ryanhaddad</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfan2</cc>
    
    <cc>emw</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2024357</commentid>
    <comment_count>0</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2024-03-27 16:13:10 -0700</bug_when>
    <thetext>In https://build.webkit.org/#/builders/943/builds/6239, the bot running the build was missing iOS simulator runtimes. xcodebuild threw an error about the missing platform, but build-webkit exited with rc=0, which kicked off archive upload and triggered tests with a bad build artifact.


/bin/sh -c &apos;perl Tools/Scripts/build-webkit --no-fatal-warnings --release --architecture &quot;x86_64 arm64&quot; WK_VALIDATE_DEPENDENCIES=YES DEBUG_INFORMATION_FORMAT=dwarf-with-dsym CLANG_DEBUG_INFORMATION_LEVEL=\$\(WK_OVERRIDE_DEBUG_INFORMATION_LEVEL:default=line-tables-only\) --ios-simulator 2&gt;&amp;1 | perl Tools/Scripts/filter-build-webkit -logfile build-log.txt&apos;

xcodebuild: error: Unable to find a destination matching the provided destination specifier:
		{ generic:1, platform:iOS Simulator }
	Available destinations for the &quot;Everything up to WebKit + Tools&quot; scheme:
		{ platform:macOS, arch:arm64, id:00008103-0019644E22FB001E, name:My Mac }
		{ platform:macOS, arch:x86_64, id:00008103-0019644E22FB001E, name:My Mac }
		{ platform:macOS, arch:arm64, variant:Mac Catalyst, id:00008103-0019644E22FB001E, name:My Mac }
		{ platform:macOS, arch:x86_64, variant:Mac Catalyst, id:00008103-0019644E22FB001E, name:My Mac }
		{ platform:macOS, name:Any Mac }
		{ platform:macOS, variant:Mac Catalyst, name:Any Mac }
		{ platform:tvOS, id:dvtdevice-DVTiOSDevicePlaceholder-appletvos:placeholder, name:Any tvOS Device }
		{ platform:tvOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-appletvsimulator:placeholder, name:Any tvOS Simulator Device }
		{ platform:visionOS, id:dvtdevice-DVTiOSDevicePlaceholder-xros:placeholder, name:Any visionOS Device }
		{ platform:visionOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-xrsimulator:placeholder, name:Any visionOS Simulator Device }
		{ platform:tvOS Simulator, id:E68FB313-E711-4163-A421-02E937D93174, OS:17.4, name:Apple TV }
		{ platform:tvOS Simulator, id:E68FB313-E711-4163-A421-02E937D93174, OS:17.4, name:Apple TV }
		{ platform:tvOS Simulator, id:7124D662-D7F6-44D0-AD3E-9246CCC3FE70, OS:17.4, name:Apple TV 4K (3rd generation) }
		{ platform:tvOS Simulator, id:7124D662-D7F6-44D0-AD3E-9246CCC3FE70, OS:17.4, name:Apple TV 4K (3rd generation) }
		{ platform:tvOS Simulator, id:66863B03-9988-40E6-92A2-5A5D0EB5C279, OS:17.4, name:Apple TV 4K (3rd generation) (at 1080p) }
		{ platform:tvOS Simulator, id:66863B03-9988-40E6-92A2-5A5D0EB5C279, OS:17.4, name:Apple TV 4K (3rd generation) (at 1080p) }
		{ platform:visionOS Simulator, id:33B208B2-432C-4FB4-A089-579C544015B8, OS:1.1, name:Apple Vision Pro }
	Ineligible destinations for the &quot;Everything up to WebKit + Tools&quot; scheme:
		{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device, error:iOS 17.4 is not installed. To use with Xcode, first download and install the platform }
		{ platform:watchOS, id:dvtdevice-DVTiOSDevicePlaceholder-watchos:placeholder, name:Any watchOS Device, error:watchOS 10.4 is not installed. To use with Xcode, first download and install the platform }
program finished with exit code 0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024359</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-03-27 16:13:45 -0700</bug_when>
    <thetext>&lt;rdar://problem/125515573&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2024799</commentid>
    <comment_count>2</comment_count>
    <who name="Elliott Williams">emw</who>
    <bug_when>2024-03-29 12:58:53 -0700</bug_when>
    <thetext>&gt; /bin/sh -c &apos;perl Tools/Scripts/build-webkit --no-fatal-warnings --release --architecture &quot;x86_64 arm64&quot; WK_VALIDATE_DEPENDENCIES=YES DEBUG_INFORMATION_FORMAT=dwarf-with-dsym CLANG_DEBUG_INFORMATION_LEVEL=\$\(WK_OVERRIDE_DEBUG_INFORMATION_LEVEL:default=line-tables-only\) --ios-simulator 2&gt;&amp;1 | perl Tools/Scripts/filter-build-webkit -logfile build-log.txt&apos;

The exit code will be from the last command in the pipeline, so https://bugs.webkit.org/show_bug.cgi?id=270807 ([build.webkit.org] Upload WebKit build logs to s3) may be the cause. build-webkit is correctly failing, but buildbot only sees the exit code of filter-build-webkit.

Not sure if buildbot has a built-in way to express this, or if we should just add &quot;; exit ${PIPESTATUS[0]}&quot; to the end.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2041221</commentid>
    <comment_count>3</comment_count>
    <who name="Brianna Fan">bfan2</who>
    <bug_when>2024-06-13 13:57:32 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/29792</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2077151</commentid>
    <comment_count>4</comment_count>
    <who name="Ryan Haddad">ryanhaddad</who>
    <bug_when>2024-11-22 15:06:53 -0800</bug_when>
    <thetext>*** Bug 283597 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>