skylab_test_runner: add a field for prejob deadline

We want to have a global deadline on these, since provision tasks
sometimes just get stuck.

I initially had this as a proto Duration type, but that was going to be
uglier in infra/config, where we'd need to construct one of those via
python dicts.

BUG=chromium:972660
TEST=regen

Change-Id: I465965c395c3f66a1e24cf582d9ce60ee23ed3e6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2318058
Reviewed-by: Dhanya Ganesh <dhanyaganesh@chromium.org>
Commit-Queue: Sean Abraham <seanabraham@chromium.org>
Tested-by: Sean Abraham <seanabraham@chromium.org>
diff --git a/go/test_platform/skylab_test_runner/config.pb.go b/go/test_platform/skylab_test_runner/config.pb.go
index dcfd426..b9710d2 100644
--- a/go/test_platform/skylab_test_runner/config.pb.go
+++ b/go/test_platform/skylab_test_runner/config.pb.go
@@ -142,10 +142,12 @@
 	// Storage: gs://abci-ssp/autotest-containers/{name}.tar.xz
 	//
 	// See go/ctp-ssp for an overview of SSP.
-	SspBaseImageName     string   `protobuf:"bytes,3,opt,name=ssp_base_image_name,json=sspBaseImageName,proto3" json:"ssp_base_image_name,omitempty"`
-	XXX_NoUnkeyedLiteral struct{} `json:"-"`
-	XXX_unrecognized     []byte   `json:"-"`
-	XXX_sizecache        int32    `json:"-"`
+	SspBaseImageName string `protobuf:"bytes,3,opt,name=ssp_base_image_name,json=sspBaseImageName,proto3" json:"ssp_base_image_name,omitempty"`
+	// The maximum duration for prejobs (e.g. provisioning).
+	PrejobDeadlineSeconds int64    `protobuf:"varint,4,opt,name=prejob_deadline_seconds,json=prejobDeadlineSeconds,proto3" json:"prejob_deadline_seconds,omitempty"`
+	XXX_NoUnkeyedLiteral  struct{} `json:"-"`
+	XXX_unrecognized      []byte   `json:"-"`
+	XXX_sizecache         int32    `json:"-"`
 }
 
 func (m *Config_Harness) Reset()         { *m = Config_Harness{} }
@@ -194,6 +196,13 @@
 	return ""
 }
 
+func (m *Config_Harness) GetPrejobDeadlineSeconds() int64 {
+	if m != nil {
+		return m.PrejobDeadlineSeconds
+	}
+	return 0
+}
+
 // Output defines parameters around how the task will deliver output to
 // the callers, e.g. Google Storage bucket.
 type Config_Output struct {
@@ -247,29 +256,31 @@
 }
 
 var fileDescriptor_b2c5f9be4f684081 = []byte{
-	// 369 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x6b, 0xdb, 0x30,
-	0x1c, 0xc5, 0x49, 0x0c, 0x0e, 0x51, 0x32, 0x18, 0x5a, 0x18, 0x21, 0x87, 0x91, 0x6d, 0x97, 0x1c,
-	0x16, 0x2b, 0x6c, 0x3b, 0xf7, 0x90, 0x16, 0xda, 0x84, 0xd0, 0x80, 0x73, 0xeb, 0x45, 0x95, 0x1d,
-	0xd9, 0x11, 0xb5, 0xf5, 0x37, 0xfa, 0xcb, 0x81, 0x7c, 0x88, 0x7e, 0xe0, 0xde, 0x8a, 0x65, 0xbb,
-	0xb4, 0xf4, 0x90, 0x1c, 0xfd, 0xde, 0xfb, 0x3d, 0x3d, 0x0b, 0x91, 0xb9, 0x95, 0x68, 0x79, 0x91,
-	0x09, 0x9b, 0x80, 0xc9, 0x19, 0x3e, 0x9d, 0x32, 0x11, 0x71, 0x27, 0x9a, 0x52, 0x6b, 0x69, 0x58,
-	0x0c, 0x3a, 0x51, 0x69, 0x50, 0x18, 0xb0, 0x40, 0xa7, 0x1f, 0xe2, 0xc1, 0xe7, 0xf8, 0xaf, 0x17,
-	0x8f, 0xf8, 0xd7, 0x0e, 0xa1, 0x57, 0xc4, 0xcb, 0x44, 0x34, 0xee, 0x4c, 0x3b, 0xb3, 0xc1, 0xdf,
-	0x3f, 0xc1, 0x39, 0x34, 0xa8, 0xb1, 0x60, 0x23, 0xa2, 0xb0, 0x02, 0xe9, 0x9a, 0xf4, 0x0e, 0xc2,
-	0x68, 0x89, 0x38, 0xee, 0xba, 0x8e, 0xc5, 0xc5, 0x1d, 0x77, 0x35, 0x17,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0x8e, 0xb6, 0xa0, 0xe4, 0x78, 0x35, 0x59, 0x4f, 0xb3, 0xa7, 0x11, 0x5f, 0x0d, 0x74, 0x1b,
+	0xe1, 0x72, 0xcd, 0x66, 0xf1, 0xef, 0xf8, 0x0b, 0xb6, 0xa8, 0x48, 0x3a, 0xc4, 0x7f, 0x87, 0x98,
+	0x57, 0x94, 0x21, 0xf6, 0x23, 0x5c, 0x6e, 0xbe, 0xdd, 0x54, 0x98, 0xe6, 0x3b, 0x87, 0x8d, 0xe9,
+	0x9a, 0x14, 0x5d, 0x25, 0xc6, 0x03, 0x92, 0x30, 0xb6, 0x74, 0x20, 0xc2, 0xfe, 0x89, 0x0a, 0xc5,
+	0x43, 0x0b, 0xab, 0x66, 0xc1, 0xfa, 0xee, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3b, 0x9e, 0x6b,
+	0xa1, 0xdb, 0x02, 0x00, 0x00,
 }
diff --git a/src/test_platform/skylab_test_runner/config.proto b/src/test_platform/skylab_test_runner/config.proto
index bf79e6c..3b58ddf 100644
--- a/src/test_platform/skylab_test_runner/config.proto
+++ b/src/test_platform/skylab_test_runner/config.proto
@@ -38,6 +38,9 @@
     //
     // See go/ctp-ssp for an overview of SSP.
     string ssp_base_image_name = 3;
+
+    // The maximum duration for prejobs (e.g. provisioning).
+    int64 prejob_deadline_seconds = 4;
   }
 
   // Output defines parameters around how the task will deliver output to