<?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>187184</bug_id>
          
          <creation_ts>2018-06-29 10:19:24 -0700</creation_ts>
          <short_desc>[GTK][WPE] api tests are broken with flatpak environment</short_desc>
          <delta_ts>2020-03-18 03:12:57 -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>WebKitGTK</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></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Alberto Lopez Perez">clopez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>aperez</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>pnormand</cc>
    
    <cc>tsaunier</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1437820</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2018-06-29 10:19:24 -0700</bug_when>
    <thetext>This happens:


$ Tools/Scripts/run-gtk-tests
Running in sandbox: &quot;flatpak&quot; &quot;build&quot; &quot;--die-with-parent&quot; &quot;--bind-mount=/run/host//tmp=/tmp&quot; &quot;--bind-mount=/app/webkit=/home/clopez/webkit/webkit&quot; &quot;--bind-mount=/app/webkit/WebKitBuild/Release=/home/clopez/webkit/webkit/WebKitBuild/GTK/Release&quot; &quot;--env=LANG=en_US.utf8&quot; &quot;--env=WEBKIT_TOP_LEVEL=/app/&quot; &quot;--env=GTK_MODULES=gail:atk-bridge&quot; &quot;--env=TEST_RUNNER_INJECTED_BUNDLE_FILENAME=/app/webkit/lib/libTestRunnerInjectedBundle.so&quot; &quot;--env=DISPLAY=:0.0&quot; &quot;--share=ipc&quot; &quot;--socket=x11&quot; &quot;--socket=wayland&quot; &quot;--device=all&quot; &quot;--share=network&quot; &quot;--socket=pulseaudio&quot; &quot;--system-talk-name=org.freedesktop.GeoClue2&quot; &quot;--filesystem=host&quot; &quot;--socket=system-bus&quot; &quot;--talk-name=org.freedesktop.Flatpak&quot; &quot;--env=GST_PRESET_PATH=/app/share/gstreamer-1.0/presets/&quot; &quot;/home/clopez/webkit/webkit/WebKitBuild/GTK/FlatpakTreeRelease&quot; &quot;/app/webkit/Tools/Scripts/run-gtk-tests&quot;

Traceback (most recent call last):
  File &quot;/app/webkit/Tools/Scripts/run-gtk-tests&quot;, line 145, in &lt;module&gt;
    runner = GtkTestRunner(options, args)
  File &quot;/app/webkit/Tools/Scripts/run-gtk-tests&quot;, line 40, in __init__
    super(GtkTestRunner, self).__init__(&quot;gtk&quot;, options, tests)
  File &quot;/app/webkit/Tools/glib/api_test_runner.py&quot;, line 47, in __init__
    self._programs_path = common.binary_build_path()
  File &quot;/app/webkit/Tools/glib/common.py&quot;, line 62, in binary_build_path
    binary_build_dir = build_path(&apos;bin&apos;, *args)
  File &quot;/app/webkit/Tools/glib/common.py&quot;, line 122, in build_path
    return os.path.join(*(get_build_path(),) + args)
  File &quot;/app/webkit/Tools/glib/common.py&quot;, line 89, in get_build_path
    scm = SCMDetector(FileSystem(), Executive()).default_scm()
  File &quot;/app/webkit/Tools/Scripts/webkitpy/common/checkout/scm/detection.py&quot;, line 55, in default_scm
    scm_system = self.detect_scm_system(cwd, patch_directories)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/common/checkout/scm/detection.py&quot;, line 71, in detect_scm_system
    if SVN.in_working_directory(real_path, executive=self._executive):
  File &quot;/app/webkit/Tools/Scripts/webkitpy/common/checkout/scm/svn.py&quot;, line 101, in in_working_directory
    exit_code = executive.run_command(svn_info_args, cwd=path, return_exit_code=True)
  File &quot;/app/webkit/Tools/Scripts/webkitpy/common/system/executive.py&quot;, line 386, in run_command
    close_fds=self._should_close_fds())
  File &quot;/app/webkit/Tools/Scripts/webkitpy/common/system/executive.py&quot;, line 481, in popen
    return subprocess.Popen(string_args, **kwargs)
  File &quot;/usr/lib/python2.7/subprocess.py&quot;, line 711, in __init__
    errread, errwrite)
  File &quot;/usr/lib/python2.7/subprocess.py&quot;, line 1343, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Command &apos;[&apos;flatpak&apos;, &apos;build&apos;, &apos;--die-with-parent&apos;, &apos;--bind-mount=/run/host//tmp=/tmp&apos;, &apos;--bind-mount=/app/webkit=/home/clopez/webkit/webkit&apos;, &apos;--bind-mount=/app/webkit/WebKitBuild/Release=/home/clopez/webkit/webkit/WebKitBuild/GTK/Release&apos;, &apos;--env=LANG=en_US.utf8&apos;, &apos;--env=WEBKIT_TOP_LEVEL=/app/&apos;, &apos;--env=GTK_MODULES=gail:atk-bridge&apos;, &apos;--env=TEST_RUNNER_INJECTED_BUNDLE_FILENAME=/app/webkit/lib/libTestRunnerInjectedBundle.so&apos;, &apos;--env=DISPLAY=:0.0&apos;, &apos;--share=ipc&apos;, &apos;--socket=x11&apos;, &apos;--socket=wayland&apos;, &apos;--device=all&apos;, &apos;--share=network&apos;, &apos;--socket=pulseaudio&apos;, &apos;--system-talk-name=org.freedesktop.GeoClue2&apos;, &apos;--filesystem=host&apos;, &apos;--socket=system-bus&apos;, &apos;--talk-name=org.freedesktop.Flatpak&apos;, &apos;--env=GST_PRESET_PATH=/app/share/gstreamer-1.0/presets/&apos;, &apos;/home/clopez/webkit/webkit/WebKitBuild/GTK/FlatpakTreeRelease&apos;, &apos;sh&apos;, &apos;/run/host//tmp/tmpCAu5xl&apos;]&apos; returned non-zero exit status 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1437957</commentid>
    <comment_count>1</comment_count>
    <who name="Thibault Saunier">tsaunier</who>
    <bug_when>2018-06-29 16:10:20 -0700</bug_when>
    <thetext>Hrm, I tested that at some point, it regressed with newer version of the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1517667</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-03-18 06:13:23 -0700</bug_when>
    <thetext>Still valid?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1631074</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2020-03-18 03:12:57 -0700</bug_when>
    <thetext>With the new SDK tests run. Closing :)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>