Commit 3c9ed32b authored by Holger Levsen's avatar Holger Levsen
Browse files

reproduce.debian.net: document how to use/control rebuilderd

parent 9094c611
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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>
+73 −0
Original line number Diff line number Diff line
<!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>