<?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>192702</bug_id>
          
          <creation_ts>2018-12-14 09:14:32 -0800</creation_ts>
          <short_desc>[Flatpak] Second run update-webkitwpe-flatpak fails</short_desc>
          <delta_ts>2019-04-08 05:15:27 -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>Other</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>
          
          <blocked>191196</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Philippe Normand">pnormand</assigned_to>
          <cc>cgarcia</cc>
    
    <cc>commit-queue</cc>
    
    <cc>lforschler</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>pnormand</cc>
    
    <cc>tsaunier</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1487930</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2018-12-14 09:14:32 -0800</bug_when>
    <thetext>Steps to reproduce:

 1. git clean -xdff
 2. ./Tools/Scripts/update-webkitwpe-flatpak
 3. ./Tools/Scripts/update-webkitwpe-flatpak

The first invocation of “update-webkitwpe-flatpak” builds and install
everything correctly. Subsequent invocations always fail (command output
below). The same goes for “update-webkitgtk-flatpak”.


-----

% update-webkitwpe-flatpak
Updating Flatpak environment for WPE (Release)
Looking for updates...
Updating in user:
org.gnome.Platform/x86_64/3.28 flathub 9d3fe926d425
Updating for user: org.gnome.Platform/x86_64/3.28 from flathub
Error: Failed to update org.gnome.Platform/x86_64/3.28: Commit 9d3fe926d425ad837e40a0945020a00f09c1f531335987a753e07f276d76ee36: GPG verification enabled, but no signatures found (use gpg-verify=false in remote config to disable)
error: There were one or more errors
Traceback (most recent call last):
  File &quot;/home/aperez/WebKit/Tools/Scripts/update-webkitwpe-flatpak&quot;, line 28, in &lt;module&gt;
    WebkitFlatpak.load_from_args([&quot;--wpe&quot;, &quot;--update&quot;] + sys.argv[1:]).run()
  File &quot;/home/aperez/WebKit/Tools/flatpak/flatpakutils.py&quot;, line 774, in run
    self.update_all()
  File &quot;/home/aperez/WebKit/Tools/flatpak/flatpakutils.py&quot;, line 888, in update_all
    m.update()
  File &quot;/home/aperez/WebKit/Tools/flatpak/flatpakutils.py&quot;, line 441, in update
    *extra_args, comment=comment)
  File &quot;/home/aperez/WebKit/Tools/flatpak/flatpakutils.py&quot;, line 245, in flatpak
    return subprocess.check_call(command)
  File &quot;/usr/lib64/python2.7/subprocess.py&quot;, line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command &apos;[&apos;flatpak&apos;, &apos;update&apos;, &apos;--user&apos;, &apos;org.gnome.Platform&apos;, &apos;3.28&apos;, &apos;--commit&apos;, &apos;9d3fe926d425ad837e40a0945020a00f09c1f531335987a753e07f276d76ee36&apos;, &apos;--assumeyes&apos;]&apos; returned non-zero exit status 1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520611</commentid>
    <comment_count>1</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-03-23 07:31:18 -0700</bug_when>
    <thetext>The error is different now, the issue is that we try to update the runtime and sdk to a commit that no longer exists in the flathub repo.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520613</commentid>
    <comment_count>2</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-03-23 07:38:28 -0700</bug_when>
    <thetext>Another issue, the install/update logic is flawed, the sdk/runtime are installed, the latest version published on flathub are installed, but i think we should instead install the versions specified by hashes from the manifest. Currently the hashes are used only for the update workflow, which is prone to errors because the flathub admins seem to periodically remove old commits from their OStrees.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520614</commentid>
    <comment_count>3</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-03-23 07:44:21 -0700</bug_when>
    <thetext>Today&apos;s hashes:

diff --git a/Tools/flatpak/org.webkit.WebKit.yaml b/Tools/flatpak/org.webkit.WebKit.yaml
index fe5b008f4be..167e43bc670 100644
--- a/Tools/flatpak/org.webkit.WebKit.yaml
+++ b/Tools/flatpak/org.webkit.WebKit.yaml
@@ -2,8 +2,8 @@ app-id: %(PORTNAME)s
 runtime: org.gnome.Platform
 runtime-version: &quot;3.28&quot;
 # Control the exact version of the Sdk/Runtime that is being used.
-sdk-hash: ba3017972f1cc6c7c8b0ed7f80d3297ad4c6f4076bd799d0bab0e2cbaa3e3c0a
-runtime-hash: 9d3fe926d425ad837e40a0945020a00f09c1f531335987a753e07f276d76ee36
+sdk-hash: 31af0c10f8e42151220a728b52df0a5c37ea8e4b033825f40c30e44d11cb31d1
+runtime-hash: 6d1d0ebbd72404c61d109307eb2240542b7ad82608bc6428bba6f3eebcfc8bf3
 sdk: org.gnome.Sdk
 command: %(COMMAND)s
 finish-args:</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520615</commentid>
    <comment_count>4</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-03-23 07:46:59 -0700</bug_when>
    <thetext>I would remove the hashes, to be honest. Unless we can have guarantees the server admins that old commits are kept.

Any thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520702</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2019-03-24 07:52:42 -0700</bug_when>
    <thetext>(In reply to Philippe Normand from comment #2)
&gt; Another issue, the install/update logic is flawed, the sdk/runtime are
&gt; installed, the latest version published on flathub are installed, but i
&gt; think we should instead install the versions specified by hashes from the
&gt; manifest. Currently the hashes are used only for the update workflow

Ow, that&apos;s bad. :/

(In reply to Philippe Normand from comment #4)
&gt; I would remove the hashes, to be honest. Unless we can have guarantees the
&gt; server admins that old commits are kept.
&gt; 
&gt; Any thoughts?

We do have such guarantees. Alex has promised to keep old commits for some period of time (at least two months; I think I even heard six months? I don&apos;t remember the exact time guarantee). But if we leave old hashes there indefinitely, like we&apos;ve been doing, then yes they will eventually break. Like anything, they have to be maintained.

If you remove the hashes, then we&apos;ll all have different development environments and won&apos;t be able to have reproducible tests, so we&apos;ll never be able to get rid of the jhbuild.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1520707</commentid>
    <comment_count>6</comment_count>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-03-24 08:33:45 -0700</bug_when>
    <thetext>(In reply to Michael Catanzaro from comment #5)
&gt; If you remove the hashes, then we&apos;ll all have different development
&gt; environments and won&apos;t be able to have reproducible tests, so we&apos;ll never be
&gt; able to get rid of the jhbuild.

The install/update logic needs to be reversed then, as explained in comment 2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1525152</commentid>
    <comment_count>7</comment_count>
      <attachid>366924</attachid>
    <who name="Philippe Normand">pnormand</who>
    <bug_when>2019-04-08 02:55:23 -0700</bug_when>
    <thetext>Created attachment 366924
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1525160</commentid>
    <comment_count>8</comment_count>
      <attachid>366924</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-04-08 05:14:49 -0700</bug_when>
    <thetext>Comment on attachment 366924
Patch

Clearing flags on attachment: 366924

Committed r243999: &lt;https://trac.webkit.org/changeset/243999&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1525161</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2019-04-08 05:14:50 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1525162</commentid>
    <comment_count>10</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-04-08 05:15:27 -0700</bug_when>
    <thetext>&lt;rdar://problem/49693050&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>366924</attachid>
            <date>2019-04-08 02:55:23 -0700</date>
            <delta_ts>2019-04-08 05:14:49 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-192702-20190408115522.patch</filename>
            <type>text/plain</type>
            <size>3002</size>
            <attacher name="Philippe Normand">pnormand</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQzOTcxCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggMDYxY2JjZGFjNjg5ZGQxMDdiYTg1MzkwMTZmNjI2NTEw
MzAyOWI0ZS4uNTVkOTc2N2IwZDExODI4NDU4YTFhNjJjYTE2MjUyZDY5MTk2Y2VhOSAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1
IEBACisyMDE5LTA0LTA4ICBQaGlsaXBwZSBOb3JtYW5kICA8cG5vcm1hbmRAaWdhbGlhLmNvbT4K
KworICAgICAgICBbRmxhdHBha10gU2Vjb25kIHJ1biB1cGRhdGUtd2Via2l0d3BlLWZsYXRwYWsg
ZmFpbHMKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lkPTE5
MjcwMgorCisgICA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HNlKQotICAgICAgICBjb21tZW50ID0ga3dhcmdzLnBvcCgiY29tbWVu
ZCIsIE5vbmUpCisgICAgICAgIGNvbW1lbnQgPSBrd2FyZ3MucG9wKCJjb21tZW50IiwgTm9uZSkK
ICAgICAgICAgaWYgY29tbWVudDoKICAgICAgICAgICAgIENvbnNvbGUubWVzc2FnZShjb21tZW50
KQogCkBAIC00NzEsMTAgKzQ3MSwxMiBAQCBjbGFzcyBGbGF0cGFrUGFja2FnZShGbGF0cGFrT2Jq
ZWN0KToKICAgICAgICAgICAgIHJldHVybiBGYWxzZQogCiAgICAgICAgIGFyZ3MgPSBbImluc3Rh
bGwiLCBzZWxmLnJlcG8ubmFtZSwgc2VsZi5uYW1lLCAiLS1yZWluc3RhbGwiLCBzZWxmLmJyYW5j
aCwgIi0tYXNzdW1leWVzIl0KLQotICAgICAgICBzZWxmLmZsYXRwYWsoKmFyZ3MsIHNob3dfb3V0
cHV0PVRydWUsCi0gICAgICAgICAgICAgICAgICAgICBjb21tZW50PSJJbnN0YWxsaW5nIGZyb20g
IiArIHNlbGYucmVwby5uYW1lICsgIiAiICsKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
c2VsZi5uYW1lICsgIiAiICsgc2VsZi5hcmNoICsgIiAiICsgc2VsZi5icmFuY2gpCisgICAgICAg
IGNvbW1lbnQgPSAiSW5zdGFsbGluZyBmcm9tICIgKyBzZWxmLnJlcG8ubmFtZSArICIgIiArIHNl
bGYubmFtZSArICIgIiArIHNlbGYuYXJjaCArICIgIiArIHNlbGYuYnJhbmNoCisgICAgICAgIHNl
bGYuZmxhdHBhaygqYXJncywgc2hvd19vdXRwdXQ9VHJ1ZSwgY29tbWVudD1jb21tZW50KQorICAg
ICAgICBpZiBzZWxmLmhhc2g6CisgICAgICAgICAgICBhcmdzID0gWyJ1cGRhdGUiLCAiLS1jb21t
aXQiLCBzZWxmLmhhc2hdCisgICAgICAgICAgICBjb21tZW50ID0gIlVwZGF0aW5nIHRvICVzIiAl
I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