extras-buildsys/client CONFIG.py,1.2,1.3 buildclient.py,1.5,1.6

Daniel Williams (dcbw) fedora-extras-commits at redhat.com
Sun Jun 12 08:23:39 UTC 2005


Author: dcbw

Update of /cvs/fedora/extras-buildsys/client
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv28967/client

Modified Files:
	CONFIG.py buildclient.py 
Log Message:
2005-06-12  Dan Williams <dcbw at redhat.com>

    * Require a "hostname" argument to the build server.  But we get to remove
      it as a config option from CONFIG.py then, which is good :)

    * Implement Additional Package Architectures support.  This is essentially
      an look-aside file listing packages and other arches these packages should
      build on, but that a whole distribution isn't built on.  Examples include
      OpenSSL on SPARC, where sparcv8 and sparcv9 optimized builds are produced,
      but not an entire sparcv9 distro.  See the "addl_pkg_arches" directory
      for an example file, and the CONFIG.py file for more information.

    * Simplify build client tracking on the server.  There is now only 1 instance
      of a BuildClient (formerly BuildClientInstance) class per build client.
      Previously there was one instance for each arch the client supported.
      Since at this time we don't allow more than one build job per client,
      its un-necessary to track anything per-client-per-arch.

    * Return the build job UID when queuing a job

    * Start jobs on clients immediately when creating them, instead of putting
      the server-side tracking object in 'initialize' state first and then
      starting the job on the client in the next process() iteration.

    * Do some locking when the BuildClient class gets the job the client
      is currently running.  Because BuildJob instances run in their own threads,
      the BuildJob could be starting a new job on the BuildClient while the
      BuildClient instance is getting status.  This could result in a race
      condition and potentially two jobs thinking they have started concurrently.

    * Add a "Getting Started" section to the README file




Index: CONFIG.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/client/CONFIG.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CONFIG.py	9 Jun 2005 01:57:35 -0000	1.2
+++ CONFIG.py	12 Jun 2005 08:23:37 -0000	1.3
@@ -5,11 +5,13 @@
 config_opts['distro_name'] = "fedora"
 config_opts['repo_name'] = "core"
 
+CLIENT_DIR = "/work/fedora-cvs/extras-buildsys/client"
+
 # SSL Certs and keys
 # MUST be full path to cert
-config_opts['client_cert'] = "/work/fedora-cvs/extras-buildsys/client/certs/client_cert.pem"
-config_opts['client_key'] = "/work/fedora-cvs/extras-buildsys/client/certs/client_key.pem"
-config_opts['ca_cert'] = "/work/fedora-cvs/extras-buildsys/client/certs/ca_cert.pem"
+config_opts['client_cert'] = CLIENT_DIR + "/certs/client_cert.pem"
+config_opts['client_key'] = CLIENT_DIR + "/certs/client_key.pem"
+config_opts['ca_cert'] = CLIENT_DIR + "/certs/ca_cert.pem"
 
 # Where to keep SRPMs to build and the finished products
 # and logs.


Index: buildclient.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/client/buildclient.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- buildclient.py	10 Jun 2005 01:35:33 -0000	1.5
+++ buildclient.py	12 Jun 2005 08:23:37 -0000	1.6
@@ -221,19 +221,21 @@
         BuildClientMach.__init__(self, uniqid, target, srpm_url)
 
 # Keep this global scope, used in __main__
-builder_dict = {'i386':i386Arch,
-                'i486':i386Arch,
-                'i586':i386Arch,
-                'i686':i386Arch,
-                'athlon':i386Arch,
-                'x86_64':x86_64Arch,
-                'amd64':x86_64Arch,
-                'ia32e':x86_64Arch,
-                'ppc':PPCArch,
-                'ppc32':PPCArch,
-                'ppc64':PPC64Arch,
-                'sparc':SparcArch,
-                'sparc64':Sparc64Arch
+builder_dict = {'i386':     i386Arch,
+                'i486':     i386Arch,
+                'i586':     i386Arch,
+                'i686':     i386Arch,
+                'athlon':   i386Arch,
+                'x86_64':   x86_64Arch,
+                'amd64':    x86_64Arch,
+                'ia32e':    x86_64Arch,
+                'ppc':      PPCArch,
+                'ppc32':    PPCArch,
+                'ppc64':    PPC64Arch,
+                'sparc':    SparcArch,
+                'sparcv8':  SparcArch,
+                'sparcv9':  SparcArch,
+                'sparc64':  Sparc64Arch
                }
 
 def getBuildClient(uniqid, target, buildarch, srpm_url, localarches):




More information about the fedora-extras-commits mailing list