Changes

Jump to navigation Jump to search
2,592 bytes added ,  21:37, 4 November 2019
m
We use both are using [httphttps://buildbot.net/ Buildbot] and [http://nixos.org/hydra/ Hydra] to perform continuous building build and testing test the current development version of Octaveon multiple systems in a number of different configurations.
= Buildbot ={{Note|The current status of the builds may be found at http://buildbot.octave.org:8010/#/waterfall.}}
We are using [http://buildbot.net/ Buildbot] to build the current development version of Octave on multiple systems in a number of different configurations. Current status of the builds my be found at [http://buildbot.octave.org:8010/waterfall buildbot.octave.org:8010/waterfall].= Systems and Configurations =
== Systems and Configurations == The following systems and configurations are currently coveredfor Octave builds:
{| class="wikitable"
|-
! Builder ID !! Component !! Hg Version !! Build System !! Host System !! Compiler !! Build Options !! Frequency|-| clang-3.8-debian || default || Debian Testing || Clang 3.8 || Disable GraphicsMagick || Any Change
|-
| clang-34.70-debian || Octave || default || Debian Testing || Debian || Clang 34.8 0 || Disable GraphicsMagick || Any Change
|-
| clang-35.80-debian || Octave || default || Debian Testing || Debian || Clang 35.8 0 || Disable GraphicsMagick || Any Change
|-
| clang-3.9-debian || Octave fedora || default || Debian Testing || Debian Fedora 25 || Clang 3.8 (system default) || Disable GraphicsMagick || Any Change
|-
| gccclang-4.9-debian || Octave osx || default || Debian Testing || Debian OS X || GCC 4.9 Clang || || Any Change
|-
| gcc-56-debian || Octave || default || Debian Testing || Debian || GCC 5 6 || || Any Change
|-
| gcc-67-debian || Octave || default || Debian Testing || Debian || GCC 6 7 || Disable GraphicsMagick || Any Change
|-
| gcc-67-lto-debian || Octave || default || Debian Testing || Debian || GCC 6 (system default) || Enable link time optimization, Disable GraphicsMagick || Any Change
|-
| nogcc-extras-debian || Octave fedora || default || Debian Testing Fedora 25 || Debian || Clang 3.8 GCC (system default) || Disable all optional dependencies || Any Change
|-
| w32gcc-onlto-debian || mxe-octave fedora || default || Debian Testing || Windows Fedora 25 || GCC (system default) || Windows 32 Enable link time optimization || DailyAny Change
|-
| w64no-32-onextras-debian || mxe-octave || default || Debian Testing || Windows || GCC (system default) || Windows 64 Disable all optional dependencies || DailyAny Change
|-
| w64-64-on-debian || mxe-octave || default || Debian Testing || Windows || GCC || Windows 64, 64-bit indexing || Daily
|}
If you are interested in maintaining And for mxe-octave: {| class="wikitable"|-! Builder ID !! Hg Version !! Build System !! Host System !! Compiler !! Build Options !! Frequency|-| mxe-native-all-on-debian || default || Debian Testing || Debian || GCC (system default) || GNU Linux, build all dependencies || Daily|-| mxe-native-on-debian || default || Debian Testing || Debian || GCC (system default) || GNU Linux, use system compiler, fontconfig, and X11 libraries || Daily|-| w32-on-debian || default || Debian Testing || Windows || GCC (mxe-octave default) || Windows 32 || Daily|-| w32-stable-on-debian || stable || Debian Testing || Windows || GCC (mxe-octave default) || Windows 32 || Daily|-| w64-32-on-debian || default || Debian Testing || Windows || GCC (mxe-octave default) || Windows 64 || Daily|-| w64-32-stable-on-debian || stable || Debian Testing || Windows || GCC (mxe-octave default) || Windows 64 || Daily|-| w64-64-on-debian || default || Debian Testing || Windows || GCC (mxe-octave default) || Windows 64, 64-bit indexing || Daily|-|} = Build Slave Configuration = To run a buildbot build slave for a different configurationOctave, please contact you must do the following: * Contact the [mailto:octave-maintainers@gnu.org Octave Maintainers] mailing listto let us know that you wish to provide a system to use as a build slave.* Install buildbot. Packages exist for most distributions. See the buildbot docs for other options. You should create a separate user account with no special privileges that will run buildbot.* Create a configuration file (see below).* Run buildbot on the slave system, preferably by starting it automatically when your system boots. It should be running with the buildbot user ID. You may also want to set up '''ccache''' to work with buildbot (strongly recommended to speed up builds). If you create a directory {{Path|~/buildbot/bin}}, it will be added to the execution PATH when buildbot runs commands on the slave. This directory can have symbolic links like the following:  lrwxrwxrwx 1 buildbot buildbot 15 Aug 26 11:39 gcc -> /usr/bin/ccache lrwxrwxrwx 1 buildbot buildbot 15 Aug 26 11:40 cc -> /usr/bin/ccache lrwxrwxrwx 1 buildbot buildbot 15 Aug 26 11:40 c++ -> /usr/bin/ccache lrwxrwxrwx 1 buildbot buildbot 15 Aug 31 23:46 gfortran -> /usr/bin/ccache They should point to the actual location of ccache if it is not in {{Path|/usr/bin}}. Your system may be behind a firewall. It does not have to have a distinct public IP address. == Sample Slave Configuration File == You must edit the settings for <code>basedir</code>, <code>slavename</code>, and <code>password</code>. The <code>basedir</code> should be the absolute and fully expanded name of the directory containing the configuration file. For example, if the home directory for the buildbot user is {{Path|/var/lib/buildbot}} and your <code>slavename</code> is set to 'debian-x86_64' , then <code>basedir</code> might be {{Path|/var/lib/buildbot/slaves/debian-x86_64}}. The password should not be anything valuable. You'll be asked to provide the <code>slavename</code> and <code>password</code> so that they may be added to the master configuration on buildbot.octave.org. Do '''not''' post the password to the octave-maintainers mailing list. <syntaxhighlight lang="python">import os from buildslave.bot import BuildSlavefrom twisted.application import service basedir = '/PATH/TO/DIRECTORY/CONTAINING/THIS/CONFIGURATION/FILE'rotateLength = 10000000maxRotatedFiles = 10 # if this is a relocatable tac file, get the directory containing the TACif basedir == '.': import os.path basedir = os.path.abspath(os.path.dirname(__file__))
# note: this line is matched against to check that this is a buildslave# directory; do not edit it.application = Hydra =service.Application('buildslave')
There is a build server continuously building the latest tip of the development branch of Octavetry: from twisted.python.logfile import LogFile from twisted.python.log import ILogObserver, FileLogObserver logfile = LogFile.fromFullPath(os. The build server is running [http://nixospath.org/hydra/ Hydra]join(basedir, which is based on the [http://nixos"twistd.org/nix/ Nix] functional package management systemlog"), rotateLength=rotateLength, maxRotatedFiles=maxRotatedFiles) application. This is the official continuous build system of the GNU ProjectsetComponent(ILogObserver, FileLogObserver(logfile). The Hydra build of Octave is currently maintained by [[Useremit)except ImportError:Mtmiller]] # probably not yet twisted 8.2.0 and beyond, can't set log yet pass
buildmaster_host ='buildbot.octave.org'port = Octave Job Overview 9989slavename ='SLAVE-NAME'passwd ='PASSWORD'keepalive = 600usepty = 0umask = Nonemaxdelay = 300allow_shutdown = None
The [http://hydras = BuildSlave(buildmaster_host, port, slavename, passwd, basedir, keepalive, usepty, umask=umask, maxdelay=maxdelay, allow_shutdown=allow_shutdown)s.nixos.org/jobset/gnu/octave-default octave-default jobset overview] page is the main entry point to the Hydra build of Octave. It shows the status of the most recent builds setServiceParent("evaluations" in Hydra terminologyapplication).</syntaxhighlight>
== Latest Build Logs Space Requirements ==
The full Building Octave takes a significant amount of disk space. With debugging symbols, you may need several GB for each build logs , plus room for ccache (possibly 50GB) if you use it. If you use a cache size that is larger than the latest builds are available at default, you'll need to specify that in the following links, for quick reference:{{Path|.ccache/ccache.conf}} file using a line like
* [http://hydra.nixos.org/job/gnu/octave-default/tarball/latest/log/raw Tarball]* [http://hydra.nixos.org/job/gnu/octave-default/build.x86_64-linux/latest/log/raw Linux x86_64]* [http://hydra.nixos.org/job/gnu/octave-default/build.i686-linux/latest/log/raw Linux i686]* [http://hydra.nixos.org/job/gnu/octave-default/coverage/latest/log/raw Coverage] max_size = 50G
== Snapshot Source Tarball ==If the directory containing the build and ccache directories doesn't have sufficient space, then these directory names may point to a separate partition that does have enough space available.
A nice product of == Starting the Hydra continuous build of Octave is that there is always a [http://hydra.nixos.org/job/gnu/octave-default/tarball/latest/download source snapshot] available for download. This source snapshot is always built from the current tip of the development branch in whatever state it is in. Therefore, it may not compile or run properly and should definitely not be used for anything other than evaluation. This can be useful to evaluate the current state of Octave's development branch without needing to clone the Mercurial repository.Slave ==
== Coverage Report ==With everything in place, you can run the slave server with the following commands (assuming that your <code>basedir</code> is {{Path|/var/lib/buildbot/slaves/debian-x86_64}}).
Another product of the Hydra continuous build is the [http: cd ~buildbot//hydra.nixos.org/job/gnu/octaveslaves sudo -u buildbot buildslave start debian-default/coverage/latest/download code coverage report]. The latest coverage report is always built from the current tip of the development branch. This report gives an analysis of the code coverage of the current Octave test suite. This can be used to find unexercised code paths and help improve the coverage of Octave's test suite (see [[Projects#Tests]]).x86_64
[[Category:DevelopmentBuilding]]

Navigation menu