aboutsummaryrefslogtreecommitdiff
path: root/sqitch/pg
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-04-13 17:18:52 +0100
committerChristopher Baines <mail@cbaines.net>2020-04-13 18:06:57 +0100
commit99f37a4eb8a0475a54135baa5d9fcd89329845cf (patch)
treefb19b1ebf2fa7b09a1b48799e83dfec935cf2abf /sqitch/pg
parenta7da2619b97a3dbc9013d2254c86feeb0f26d92d (diff)
downloadbuild-coordinator-99f37a4eb8a0475a54135baa5d9fcd89329845cf.tar
build-coordinator-99f37a4eb8a0475a54135baa5d9fcd89329845cf.tar.gz
Add a new table to store setup_failures
This is when a build was allocated to an agent, but the agent couldn't setup the environment for the build. One failure I'm particularly thinking about is where inputs to the derivation are missing, so add another table to store them.
Diffstat (limited to 'sqitch/pg')
-rw-r--r--sqitch/pg/deploy/setup_failures.sql7
-rw-r--r--sqitch/pg/revert/setup_failures.sql7
-rw-r--r--sqitch/pg/verify/setup_failures.sql7
3 files changed, 21 insertions, 0 deletions
diff --git a/sqitch/pg/deploy/setup_failures.sql b/sqitch/pg/deploy/setup_failures.sql
new file mode 100644
index 0000000..a84700e
--- /dev/null
+++ b/sqitch/pg/deploy/setup_failures.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-build-coordinator:setup_failures to pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/pg/revert/setup_failures.sql b/sqitch/pg/revert/setup_failures.sql
new file mode 100644
index 0000000..5c377d7
--- /dev/null
+++ b/sqitch/pg/revert/setup_failures.sql
@@ -0,0 +1,7 @@
+-- Revert guix-build-coordinator:setup_failures from pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/pg/verify/setup_failures.sql b/sqitch/pg/verify/setup_failures.sql
new file mode 100644
index 0000000..fc5f408
--- /dev/null
+++ b/sqitch/pg/verify/setup_failures.sql
@@ -0,0 +1,7 @@
+-- Verify guix-build-coordinator:setup_failures on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;