[Git][qa/jenkins.debian.net][master] reproduce.debian.net: document how to use/control rebuilderd

Holger Levsen (@holger) gitlab at salsa.debian.org
Sat Nov 30 20:40:29 GMT 2024



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
3c9ed32b by Holger Levsen at 2024-11-30T21:40:14+01:00
reproduce.debian.net: document how to use/control rebuilderd

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


2 changed files:

- hosts/osuosl5-amd64/var/www/html/index.html
- + hosts/osuosl5-amd64/var/www/html/rebuilderd-usage.html


Changes:

=====================================
hosts/osuosl5-amd64/var/www/html/index.html
=====================================
@@ -193,9 +193,9 @@
 	    </br>
 	    <a href="/rebuilderd-setup.html">How to setup rebuilderd on Debian (temporary URL)</a>
 	    </br>
-	    coming soon: rebuilderd packaged for Debian.
+	    <a href="/rebuilderd-usage.html">How to use/control rebuilderd on Debian (temporary URL)</a>
 	    </br>
-	    coming soon: documentation how to query and control rebuilderd.
+	    coming soon: rebuilderd packaged for Debian.
 	    </br>
 	    <small>This setup is in it's infancy. (= don't take numbers seriously unless...!?)</small>
         </footer>


=====================================
hosts/osuosl5-amd64/var/www/html/rebuilderd-usage.html
=====================================
@@ -0,0 +1,73 @@
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+        <meta charset="utf-8">
+        <title>
+		how to use/control rebuilderd on Debian (temporary URL)
+	</title>
+        <style>
+        body {
+            font-family: sans-serif;
+        }
+        h1 {
+            font-size: 24px;
+        }
+
+        pre {
+            margin: 0;
+        }
+        </style>
+
+    </head>
+    <body>
+        <h1>
+		how to use/control rebuilderd on Debian (temporary URL)
+        </h1>
+
+	    <pre>
+(version 0.1, feedback much welcome.)
+
+general
+=======
+run all commands as the user rebuilderd is running.
+
+
+watch the queue
+===============
+watch -n 60 -c /opt/usr/bin/rebuildctl -H http://127.0.0.1:8484/ queue ls -C --head
+
+
+reschedule like this:
+====================
+echo "update packages
+set status = 'UNKWN', build_id = null
+where build_id in (select p.build_id
+FROM packages p
+JOIN builds b ON b.id = p.build_id
+JOIN queue q ON q.pkgbase_id = p.pkgbase_id
+WHERE p.status = 'BAD' and
+ (CAST(b.build_log AS TEXT) like '%/opt/usr/libexec/rebuilderd/rebuilder-debian.sh: 4: /debrebuild/debrebuild.py: not found%'
+ or CAST(b.build_log AS TEXT) like '%debsnap failed%'
+ or CAST(b.build_log AS TEXT) like '%debootsnap failed at /usr/bin/debrebuild line%'
+ or CAST(b.build_log AS TEXT) like '%AssertionError: environment bootstrapped from buildinfo file does not match environment in buildinfo file%'
+ or CAST(b.build_log AS TEXT) like '%fakeroot not found, either install the fakeroot%'
+ or CAST(b.build_log AS TEXT) like '%debrebuild: error: cannot read %'
+ or CAST(b.build_log AS TEXT) like '%dscverify failed%'
+ or CAST(b.build_log AS TEXT) like '%Failed to download build input from%' ))"  | sqlite3 rebuilderd.db
+
+PKGS="bash vim"
+for i in $PKGS do ;
+echo "update packages
+set status = 'UNKWN', build_id = null
+where build_id in (select p.build_id
+FROM packages p
+JOIN builds b ON b.id = p.build_id
+JOIN queue q ON q.pkgbase_id = p.pkgbase_id
+WHERE p.name = \"$i\"
+)"| sqlite3 rebuilderd.db
+done
+
+	   </pre>
+
+    </body>
+</html>



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/3c9ed32ba2b86f6d318241dfa2b7994c26c54250

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/3c9ed32ba2b86f6d318241dfa2b7994c26c54250
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20241130/6af40648/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list