Project

General

Profile

Actions

action #153145

closed

[ci] Failing openQA pull requests in generate-packed-assets step

Added by tinita 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2024-01-05
Due date:
2024-01-20
% Done:

0%

Estimated time:

Description

Observation

https://app.circleci.com/pipelines/github/os-autoinst/openQA/12740/workflows/b44442f0-59df-415b-943a-fcb13f9c3b1b/jobs/118788

[2024-01-05 09:10:41.04807] [901] [info] Caching "https://cdnjs.cloudflare.com/ajax/libs/jquery-ujs/1.2.1/rails.js" to "/home/squamata/project/assets/cache/cdnjs.cloudflare.com/ajax/libs/jquery-ujs/1.2.1/rails.js".
[2024-01-05 09:10:41.08304] [901] [warn] [AssetPack] Unable to download https://shepherdjs.dev/dist/js/shepherd.js: Not Found
Could not find input asset "https://shepherdjs.dev/dist/js/shepherd.js". at /usr/lib/perl5/vendor_perl/5.26.1/Mojolicious/Plugin/AssetPack.pm line 172.
[2024-01-05 09:10:42.43235] [903] [warn] [AssetPack] Unable to download https://shepherdjs.dev/dist/js/shepherd.js: Not Found
Could not find input asset "https://shepherdjs.dev/dist/js/shepherd.js". at /usr/lib/perl5/vendor_perl/5.26.1/Mojolicious/Plugin/AssetPack.pm line 172.
[2024-01-05 09:10:43.81372] [905] [warn] [AssetPack] Unable to download https://shepherdjs.dev/dist/js/shepherd.js: Not Found
Could not find input asset "https://shepherdjs.dev/dist/js/shepherd.js". at /usr/lib/perl5/vendor_perl/5.26.1/Mojolicious/Plugin/AssetPack.pm line 172.

Exited with code exit status 2

Related issues 1 (0 open1 closed)

Copied to openQA Project - action #153427: Improve updating cached assets size:MResolvedmkittler2024-01-05

Actions
Actions #1

Updated by tinita 3 months ago

  • Description updated (diff)

It seems someone deleted a lot from the staticjs website just some hours ago: https://github.com/shepherd-pro/shepherd/commit/8364d25bbd45ac3a2c5c251a7702c16715514f1d
The commit is called "🔥 Reset static site"

Actions #2

Updated by tinita 3 months ago

Actions #3

Updated by tinita 3 months ago

  • Status changed from New to In Progress
  • Assignee set to tinita
Actions #4

Updated by tinita 3 months ago · Edited

https://github.com/os-autoinst/openQA/pull/5418 Download shepherd.js from cdn.jsdelivr.net

Actions #5

Updated by tinita 3 months ago

I updated cache.txz in https://build.opensuse.org/package/show/devel:openQA/openQA with dist/rpm/update-cache.sh, however that script needs to be updated because of obsolete osc service lr.
But the PR can be merged already in order to get successful builds in https://build.opensuse.org/package/show/devel:openQA/openQA again.

Actions #6

Updated by tinita 3 months ago

  • Priority changed from Urgent to High

https://github.com/os-autoinst/openQA/pull/5418 was merged, reducing priority.

Actions #7

Updated by tinita 3 months ago

One note about update-cache.sh in this case:
It checks out openQA from OBS and unpacks it.
It then does cd openQA and tools/generate-packed-assets. But this will generate the assets from the existing urls in the published openQA version from OBS.
If you want to replace a URL, you have to run tools/generate-packed-assets from your openQA git directory, so the script cannot be used.
Maybe we could always generate the cache.txz in CircleCI runs and then download the artifact and pass it as an argument to update-cache.sh.

The second problem is, that the lr command is obsolete, and it is not clear what files the script is supposed to update.
In my case, the openQA.changes and _service files were updated, but I only wanted to update the cache.txz.

Actions #8

Updated by tinita 3 months ago

openqa-in-openqa also is affected: https://openqa.opensuse.org/tests/3849528#step/openqa_webui/34
THe error can be seen in https://openqa.opensuse.org/tests/3849528/logfile?filename=openqa_webui-openqa_nohup_out.txt
So I assume this will also be fixed in the next run.

Actions #9

Updated by openqa_review 3 months ago

  • Due date set to 2024-01-20

Setting due date based on mean cycle time of SUSE QE Tools

Actions #10

Updated by okurz 3 months ago

  • Status changed from In Progress to New
Actions #11

Updated by okurz 3 months ago

  • Priority changed from High to Normal

https://openqa.opensuse.org/group_overview/24 is all green again so at least the urgency is resolved hence reducing prio but leaving it to tinita if this can be resolved right away or if more is needed

Actions #12

Updated by tinita 3 months ago

  • Status changed from New to In Progress

Now trying out with osc what commands I need to update the cache.txz

Actions #13

Updated by tinita 3 months ago · Edited

% osc co devel:openQA/openQA
% cd devel:openQA/openQA
% osc service run tar
ERROR: no .obsinfo file found in directory: '/home/tina/osc/devel:openQA/openQA'
Aborting: service call failed:  /usr/lib/obs/service/tar --outdir /home/tina/osc/devel:openQA/openQA/tmp6ong1rnv.tar.service
% osc service run
Cloning into '/home/tina/osc/devel:openQA/openQA/openQA'...
b5e992e3c4e4d2768d71cf632cdaa4ff30e57c35
Already up to date.
b5e992e3c4e4d2768d71cf632cdaa4ff30e57c35
% obs st
?    _service:obs_scm:_servicedata
?    _service:obs_scm:openQA-4.6.1704886775.b5e992e.obscpio
?    _service:obs_scm:openQA-client-test.spec
?    _service:obs_scm:openQA-devel-test.spec
?    _service:obs_scm:openQA-test.spec
?    _service:obs_scm:openQA-worker-test.spec
?    _service:obs_scm:openQA.changes
?    _service:obs_scm:openQA.obsinfo
?    _service:obs_scm:openQA.spec
?    _service:set_version:_service:obs_scm:openQA-client-test.spec
?    _service:set_version:_service:obs_scm:openQA-devel-test.spec
?    _service:set_version:_service:obs_scm:openQA-test.spec
?    _service:set_version:_service:obs_scm:openQA-worker-test.spec
?    _service:set_version:_service:obs_scm:openQA.spec
% osc service run tar
ERROR: no .obsinfo file found in directory: '/home/tina/osc/devel:openQA/openQA'
Aborting: service call failed:  /usr/lib/obs/service/tar --outdir /home/tina/osc/devel:openQA/openQA/tmpvms9pklb.tar.service
% osc version
1.3.0

So run is apparently not the right replacement for localrun...

Actions #14

Updated by tinita 3 months ago

When I use localrun, I get:

% osc service localrun
WARNING: Command 'localrun' is obsolete
Already up to date.
b5e992e3c4e4d2768d71cf632cdaa4ff30e57c35
% osc st
M    _servicedata
?    openQA-4.6.1704886775.b5e992e.obscpio
?    openQA-client-test.spec
?    openQA-devel-test.spec
?    openQA-test.spec
?    openQA-worker-test.spec
M    openQA.changes
?    openQA.obsinfo
?    openQA.spec
% osc di
Index: _servicedata
===================================================================
--- _servicedata        (revision 9114)
+++ _servicedata        (working copy)
@@ -1,4 +1,3 @@
-<?xml version="1.0"?>
 <servicedata>
   <service name="tar_scm">
     <param name="url">git://github.com/os-autoinst/openQA.git</param>
@@ -6,6 +5,6 @@
   </service>
   <service name="tar_scm">
     <param name="url">https://github.com/os-autoinst/openQA.git</param>
-    <param name="changesrevision">4d4e5b7</param>
+    <param name="changesrevision">b5e992e3c4e4d2768d71cf632cdaa4ff30e57c35</param>
   </service>
-</servicedata>
+</servicedata>
\ No newline at end of fileIndex: openQA.changes
===================================================================
--- openQA.changes      (revision 9114)
+++ openQA.changes      (working copy)
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Wed Jan 10 17:42:44 UTC 2024 - okurz@suse.com
+
+- Update to version 4.6.1704886775.b5e992e:
+  * Limit number of auto_clone restarts
+
 -------------------------------------------------------------------
 Sun Jan 07 05:11:39 UTC 2024 - okurz@suse.com

But is that right? I don't want to change the openQA version. Just the cache.txz

Actions #15

Updated by tinita 3 months ago · Edited

https://github.com/os-autoinst/openQA/pull/5421 Update docs for asset cache

I created a followup ticket #153427 to improve updating cached assets

Actions #16

Updated by tinita 3 months ago

  • Copied to action #153427: Improve updating cached assets size:M added
Actions #17

Updated by tinita 3 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF