public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/buildbot] epel10.2: Backport fix from upstream for dynamic EC2 provisioning
@ 2026-10-09 14:34 Neal Gompa
  0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-10-09 14:34 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/buildbot
Branch : epel10.2
Commit : 329ce31edd4c26c4ab04ce291bfec10c81cc51a0
Author : Neal Gompa <ngompa@fedoraproject.org>
Date   : 2021-08-31T15:31:31-04:00
Stats  : +54/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/buildbot/c/329ce31edd4c26c4ab04ce291bfec10c81cc51a0?branch=epel10.2

Log:
Backport fix from upstream for dynamic EC2 provisioning

---
diff --git a/0001-ec2-Set-AMI-for-latent-worker-before-making-spot-req.patch b/0001-ec2-Set-AMI-for-latent-worker-before-making-spot-req.patch
new file mode 100644
index 0000000..b364692
--- /dev/null
+++ b/0001-ec2-Set-AMI-for-latent-worker-before-making-spot-req.patch
@@ -0,0 +1,47 @@
+From a835c5283ac34af35418aa12b62e03b0894e5e31 Mon Sep 17 00:00:00 2001
+From: Neal Gompa <ngompa13@gmail.com>
+Date: Mon, 16 Aug 2021 21:20:13 -0400
+Subject: [PATCH] ec2: Set AMI for latent worker before making spot request
+
+When trying to set up latent workers where the AMI is dynamically
+discovered as part of instantiating workers, we want to make sure
+that AMI is set before we make the spot request so that it is used
+for the spot request.
+
+(cherry picked from commit 0310a1672692d5c39a55d6769490533d71925534)
+---
+ .../newsfragments/enable-ami-runtime-determinism.bugfix         | 1 +
+ master/buildbot/worker/ec2.py                                   | 2 +-
+ 2 files changed, 2 insertions(+), 1 deletion(-)
+ create mode 100644 master/buildbot/newsfragments/enable-ami-runtime-determinism.bugfix
+
+diff --git a/master/buildbot/newsfragments/enable-ami-runtime-determinism.bugfix b/master/buildbot/newsfragments/enable-ami-runtime-determinism.bugfix
+new file mode 100644
+index 000000000..ade48e2bd
+--- /dev/null
++++ b/master/buildbot/newsfragments/enable-ami-runtime-determinism.bugfix
+@@ -0,0 +1 @@
++Set AMI for latent worker before making spot request to enable dynamically setting AMIs for instantiating workers
+diff --git a/master/buildbot/worker/ec2.py b/master/buildbot/worker/ec2.py
+index ab60d5b95..382e4dc00 100644
+--- a/master/buildbot/worker/ec2.py
++++ b/master/buildbot/worker/ec2.py
+@@ -448,6 +448,7 @@ class EC2LatentWorker(AbstractLatentWorker):
+         log.msg('%s %s requesting spot instance with price %0.4f' %
+                 (self.__class__.__name__, self.workername, bid_price))
+ 
++        image = self.get_image()
+         reservations = self.ec2.meta.client.request_spot_instances(
+             SpotPrice=str(bid_price),
+             LaunchSpecification=self._remove_none_opts(
+@@ -473,7 +474,6 @@ class EC2LatentWorker(AbstractLatentWorker):
+             raise LatentWorkerFailedToSubstantiate()
+         instance_id = request['InstanceId']
+         self.instance = self.ec2.Instance(instance_id)
+-        image = self.get_image()
+         instance_id, start_time = self._wait_for_instance()
+         return instance_id, image.id, start_time
+ 
+-- 
+2.31.1
+

diff --git a/buildbot.spec b/buildbot.spec
index 24ce0de..5a90e4c 100644
--- a/buildbot.spec
+++ b/buildbot.spec
@@ -21,7 +21,7 @@
 
 Name:           buildbot
 Version:        3.3.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 
 Summary:        Build/test automation system
 License:        GPLv2
@@ -41,6 +41,9 @@ Source8:        %{pypi_source buildbot-pkg}
 Source10:       buildbot-master@.service
 Source11:       buildbot-worker@.service
 
+# Backports from upstream
+Patch0001:      0001-ec2-Set-AMI-for-latent-worker-before-making-spot-req.patch
+
 BuildArch:      noarch
 
 BuildRequires:  python3-devel
@@ -396,6 +399,9 @@ trial buildbot.test
 %endif
 
 %changelog
+* Tue Aug 31 2021 Neal Gompa <ngompa@fedoraproject.org> - 3.3.0-3
+- Backport fix from upstream for dynamic EC2 provisioning
+
 * Wed Aug 11 2021 Neal Gompa <ngompa@fedoraproject.org> - 3.3.0-2
 - Add strict dependency on -master by -www subpackage
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 14:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 14:34 [rpms/buildbot] epel10.2: Backport fix from upstream for dynamic EC2 provisioning Neal Gompa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox