push_image: Push quick provision payloads to release buckets
Currently, we only have quick provision payloads in the archive buckets,
and these buckets get deleted after a certain period of time. However,
autoupdate_endtoend tests manually provision DUTs with very old UE
payloads using auto update mechanism. This is bad since now we need
our (update payload) infra to keep backward compatibility for very long
time. We should go away from this by allowing these tests to use the
simple quick-provision to provision DUTs with old images.
This CL, pushes the quick provision payloads to release buckets so they
can stay much longer and be used for provisioning old images in
autoupdate_endtoend tests.
BUG=chromium:1013364
TEST=CQ passes
TEST=pushimage_unittest.py, artifacts_unittest.py
TEST=release tryjob
Change-Id: I7381e6bd0169e1b6f1b012f7cb9e3d3fbcdd33ca
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1898693
Tested-by: Amin Hassani <ahassani@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
Reviewed-by: Mike Nichols <mikenichols@chromium.org>
Reviewed-by: Allen Li <ayatane@chromium.org>
Commit-Queue: Amin Hassani <ahassani@chromium.org>
diff --git a/scripts/pushimage_unittest.py b/scripts/pushimage_unittest.py
index a801570..c218ed7 100644
--- a/scripts/pushimage_unittest.py
+++ b/scripts/pushimage_unittest.py
@@ -288,7 +288,7 @@
with mock.patch.object(gs.GSContext, 'Exists', return_value=True):
urls = pushimage.PushImage('/src', 'test.board', 'R34-5126.0.0',
sign_types=['recovery'])
- self.assertEqual(self.gs_mock.call_count, 28)
+ self.assertEqual(self.gs_mock.call_count, 32)
self.assertTrue(self.mark_mock.called)
self.assertEqual(urls, EXPECTED)
@@ -306,7 +306,7 @@
with mock.patch.object(gs.GSContext, 'Exists', return_value=True):
urls = pushimage.PushImage('/src', 'test.board', 'R34-5126.0.0',
sign_types=['base'])
- self.assertEqual(self.gs_mock.call_count, 30)
+ self.assertEqual(self.gs_mock.call_count, 34)
self.assertTrue(self.mark_mock.called)
self.assertEqual(urls, EXPECTED)
@@ -324,7 +324,7 @@
with mock.patch.object(gs.GSContext, 'Exists', return_value=True):
urls = pushimage.PushImage('/src', 'board2', 'R34-5126.0.0',
sign_types=['cr50_firmware'])
- self.assertEqual(self.gs_mock.call_count, 28)
+ self.assertEqual(self.gs_mock.call_count, 32)
self.assertTrue(self.mark_mock.called)
self.assertEqual(urls, EXPECTED)
@@ -332,7 +332,7 @@
"""Verify nothing is signed when we request an unavailable type"""
urls = pushimage.PushImage('/src', 'test.board', 'R34-5126.0.0',
sign_types=['nononononono'])
- self.assertEqual(self.gs_mock.call_count, 26)
+ self.assertEqual(self.gs_mock.call_count, 30)
self.assertFalse(self.mark_mock.called)
self.assertEqual(urls, {})