1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
Commit Graph

519 Commits

Author SHA1 Message Date
Kris Kennaway
efaa197bfb Revive this script and make it useful. Transfer the distfiles using rsync
and make sure they have been post-processed first.
2008-06-11 13:24:17 +00:00
Kris Kennaway
271351e954 * Catch up to X11R6 removal
* Keep RESTRICTED distfiles in a separate DISTDIR so we can easily
  avoid accidentally publishing them to the FTP site (idea from des@)
2008-06-11 13:22:58 +00:00
Kris Kennaway
5953f77e24 Rewrite this to make it more efficient (fewer external command
invocations).  It also fixes some edge cases that were not handled in
the previous version.

TODO: Correctly report IPv6 sockets (already in use by the sparc64 build)
2008-06-02 19:46:03 +00:00
Mark Linimon
11ea3eeed1 Remove the force file, if it was used.
Forgotten by:	linimon
2008-05-29 14:14:54 +00:00
Mark Linimon
ed5147b294 Add a force function here, just like processlogs. 2008-05-29 02:34:41 +00:00
Mark Linimon
4cc67bd216 Add a note that processonelog and processlogs2 are finicky about the
header format of the log files.
2008-05-29 01:46:08 +00:00
Mark Linimon
f5c9292932 Fix these after the 1.31 update to buildscript.
Forgotten by:	pav
2008-05-29 01:45:39 +00:00
Kris Kennaway
9100b4ee0d Rewrite this in python instead of shell. Because we can read the
INDEX once and process internally instead of invoking many external
utilities, runtime is improved from ~20 minutes to <10 seconds.
2008-05-25 18:07:49 +00:00
Kris Kennaway
778518d745 NNew build scheduler written in python to replace the make+sh job
ordering, which had become too limited.

We now build packages ordered by those that are part of the longest
dependency chains first.  This has the effect of building the deepest
parts of the tree first and levelling out the tree height, hopefully
avoiding the situation we currently face where there appear
bottlenecks late in the build where the cluster becomes mostly idle
while waiting for a few long dependency chains to finish building
before the cluster can become fully loaded again.

The algorithm is that we sort the list of remaining packages according
to height (longest dependency chain), then add leaf packages from each
in order until we have filled a queue of length between 100 and 200,
to amortise the cost of this queue rebalancing while not losing the
height averaging property.  Jobs are dispatched from this queue into
worker threads as machine slots become available.

Unlike the make-based solution that required a fixed -j concurrency
value and could not respond to addition/removal of build resources, we
now can dynamically add new machines as they become available to the
queue.

The other advantage of using python is that we have more
customisability and visibility into the build status, e.g. we
periodically report the number of remaining packages, as well as the
list of deepest packages that we are working on.

TODO:

* Implement mtime checking for parent package staleness, so that
  parents are rebuilt if the dependencies are touched more recently.
  Currently packages will not be rebuild if they exist, whether or not
  they are "stale" wrt their dependencies.

* Offload the machine selection into an external queue manager.
  Currently the queue manager used here doesn't interoperate with the
  old one (getmachine/releasemachine) because it's not possible to use
  the lockf()-based mutual exclusion within a multithreaded client.
  Doing that will also allow for a more flexible job placement
  algorithm as well as finer queue customization.
2008-05-10 13:22:51 +00:00
Pav Lucistnik
989ac675fc Remove XFree86-4 from quickports 2008-04-11 11:34:30 +00:00
Pav Lucistnik
b88fea571b Parallelize to 4 concurrent jobs 2008-04-11 11:33:38 +00:00
Pav Lucistnik
0c02d135ff Include per-machine configuration and respect use_zfs flag 2008-04-11 11:32:29 +00:00
Pav Lucistnik
2545b7c79e Sync with pointyhat (reorg) 2008-04-11 11:31:33 +00:00
Pav Lucistnik
7b00cf5640 - Add the port's Makefile ident string to the build log headers
PR:		113234
Submitted by:	Andrej Zverev <andrey.zverev@electro-com.ru>

- Sync with actual script on pointyhat (whitespace, mostly)
2008-03-13 09:54:03 +00:00
Pav Lucistnik
d50ed44a19 - Don't write queue entry for machine that's not on mlist. This allows us to
gracefully remove a node from the workload, and also it prevents build from
  stucking when machine is deleted from mlist.
2008-03-12 16:04:59 +00:00
Pav Lucistnik
f7c728bb1e Make the INDEX_JOBS definition actually effective 2008-03-11 17:05:55 +00:00
Erwin Lansing
170314e4e2 Remove support for 5-exp and add 7-exp, 8 and 8-exp 2008-01-14 17:10:33 +00:00
Erwin Lansing
d32d4753c3 Change homebrew locking routines with lockf(1) based locking. 2008-01-01 13:25:01 +00:00
Mark Linimon
2c493361b0 Add the standard 6-line header and URL to all build failure logs, not
just the plist ones.  If the log is less than 1000 lines after the header,
include it all; else, trim to last 1000 lines.

This should help when deciding where to forward logs.

Tested on:	pointyhat
2007-12-24 14:25:42 +00:00
Mark Linimon
1a3e27b0eb Copy the duds file to a directory where the web server can find it. This
makes it possible to correctly analyze why packages were not built for a
specific run.

Add a beginning and ending email notification to help coordinate between
multiple portmgrs doing runs.
2007-12-24 01:56:22 +00:00
Mark Linimon
ece1562584 Make the script less whiny for unpopulated builds. 2007-12-23 17:50:29 +00:00
Kris Kennaway
6db6b14a8e Add support for 7-exp and 8 branches
Approved by:	portmgr (self)
2007-11-04 14:28:25 +00:00
Kris Kennaway
7822c39f44 Correctly report active builds when ZFS is in use
Approved by:	 portmgr (self)
2007-11-04 14:28:04 +00:00
Kris Kennaway
c94b9291a0 * Add support for 7-exp and 8 branches
* XORG_UPGRADE and USA_RESIDENT are no longer required

Approved by:   portmgr (self)
2007-11-04 14:27:19 +00:00
Mark Linimon
46f9abbbb3 Add 7-exp, 8. 2007-10-16 00:53:33 +00:00
Mark Linimon
51dbc0f2a0 Add 7-exp and 8. 2007-10-16 00:51:01 +00:00
Mark Linimon
31a7bd9451 Rename 'missing' column to 'not yet built' so as not to confuse terminology
with portsmon reports.

Noticed by:	erwin
2007-10-16 00:37:03 +00:00
Mark Linimon
0cc5febd80 Reflect 8-CURRENT. 2007-10-15 00:40:38 +00:00
Mark Linimon
4451674575 The index page used on pointyhat. 2007-10-15 00:20:29 +00:00
Mark Linimon
d7decd3410 Update this example file to reflect 7.0 branching. 2007-10-14 18:21:34 +00:00
Mark Linimon
ba4a6e6a48 Remove the following false positives, which show up as compiler warnings,
not errors:

  discards qualifiers
  [0-9]: implicit declaration of function
  ISO C\+\+ forbids
2007-09-13 02:30:08 +00:00
Mark Linimon
6d3018e6fc Change to the latest names of the ooo ports; add jdk16; sort a bit.
Glanced at by:	kris
2007-09-04 21:14:45 +00:00
Kris Kennaway
687f043633 Support builds using zfs and tmpfs backing store
zfs:

* Enabled by use_zfs=1 in portbuild.conf

* Populate build chroots by cloning a zfs snapshot instead of maintaining
  many duplicate copies.  In principle this is very efficient since
  everything is copy-on-write and zfs snapshot creation is almost
  instantaneous.  There might be additional overheads from building on zfs
  though.  Currently the snapshot base is hard-wired to y/${branch}@base
  but should be parametrized.  This also must be populated beforehand, e.g.
  during machine startup

* Clean build chroots by just destroying the snapshot.

tmpfs:

* Enabled by use_tmpfs=1 and tmpfs_size in portbuild.conf

* The previous md strategy of mounting in used/, populating and then
  remounting (to avoid possible races from multiple builds claiming the
  same chroot) doesn't work here because tmpfs instances are destroyed at
  umount.  I am not entirely sure the simpler approach is free from races.
2007-07-29 20:27:54 +00:00
Kris Kennaway
8d84574a4a Refresh old sample portbuild.conf with the one currently used for i386
builds.  Probably this should be better documented and commented ;)
2007-07-29 20:06:05 +00:00
Kris Kennaway
d197960279 * Clean up hacks that had to copy in shared libraries from the host in
order to run certain host binaries that were kernel-dependent.  We
  now seem to be able to rely on the /rescue versions (and killall(1)
  seems to be unused).

* Allow for ccache directories to be shared over NFS via the ccache_dir_nfs
  portbuild.conf boolean

* Populate BSD.local.dist from ${PORTSDIR}/Templates and remove population
  of BSD.x11-4.dist and support for XFree86 3.x
2007-07-29 19:56:36 +00:00
Kris Kennaway
54783169b2 Correct typo ("singal") 2007-07-29 19:48:40 +00:00
Kris Kennaway
064bda8040 * Switch from netcat port to base system nc. Replace symbolic port name
by its numeric equivalent since nc(1) does not look up the former.
2007-07-29 19:45:43 +00:00
Kris Kennaway
5f9d4f6e71 * Retire 4 build and add 6-exp2 experimental build
* Don't populate BSD.local.dist, this file is maintained in the ports tree
  now and is populated at build time
2007-07-29 19:45:05 +00:00
Kris Kennaway
ca2e9e98c7 Retire support for 4 and 4-exp builds 2007-07-29 19:43:22 +00:00
Kris Kennaway
26965e6e9c * Increase index build concurrency to reflect the new, improved pointyhat
* Add support for 6-exp2 experimental builds
2007-07-29 19:42:35 +00:00
Kris Kennaway
cc0916c8a0 * Revise the machine selection algorithm. Previously it chose the first
machine with the lowest number of running jobs.  This worked when the
  clients were all roughly equivalent, but schedules poorly when there
  are some that are much more powerful (e.g. 8-core machines vs UP machines)

* We now compute the ratio of running jobs to maximum jobs and schedule on
  the machine with lowest occupation fraction.  This populates the machines
  to equal fractions of their capacity.
2007-07-29 19:41:52 +00:00
Kris Kennaway
13e1b025a1 Use rsync -L instead of rsync -l to deal with the fact that we like to
symlink ports and src trees elsewhere.  With -l this would turn a populated
tree into a dangling symlink.
2007-07-29 19:39:30 +00:00
Kris Kennaway
b3551fde44 * Remove support for 4 and 4-exp builds and add 6-exp2 experimental build
* Only hardlink the old log files instead of anything else that might be
  in the directories
* Add comment that old logfiles should be removed as well as packages, to
  avoid duplicate versions of the same port log
2007-07-29 19:38:08 +00:00
Pav Lucistnik
87b4c7c511 Introduce straslivy.py, a fancier showrunning type of thing, written in Python. 2007-07-29 19:36:55 +00:00
Kris Kennaway
3eb8ee9622 * Remove processing of 4 and 4-exp logs now that the builds are no longer
run
* Add a 6-exp2 build which is a second experimental tree
* Remove an archaic 4.x/5.x log comparison
2007-07-29 19:36:33 +00:00
Kris Kennaway
5d0b9b3789 * Remove vestiges of procfs mounting/umounting from here; we have to
do it in portbuild from outside the jail thesedays

* Ignore /var/db/fontconfig which does not get restored to pristine state

* Save copies of master.passwd and groups and check them after the build
  for changes, to look for user/group additions that may not be correctly
  registered in UIDs/GIDs.  Future work will hopefully automatically
  check against those files and make unregistered IDs a fatal condition

* Correct logic mistake that was keeping distfiles for collection when
  the checksum mismatched
2007-07-29 19:35:00 +00:00
Pav Lucistnik
98990a91c7 - Log the failure to copy dependant package from pointyhat 2007-07-29 19:27:48 +00:00
Kris Kennaway
fd3a8f51f6 Refactor common variables from case statement for various branches.
Update default X11BASE.  Retire PARALLEL_PACKAGE_BUILD and HAVE_MOTIF which
are now obsolete.
2007-07-29 19:27:22 +00:00
Kris Kennaway
0a0b1be73c Retire this obsolete instruction file dating back to last century. We
have a more modern and complete version in the doc collection.
2007-07-29 19:21:47 +00:00
Mark Linimon
2e85070f37 Drop 4.X statistics. They are half-a-year stale. 2007-07-22 04:36:49 +00:00