summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* add method to compute recursive cache idLars Wirzenius2011-12-098-35/+140
| | | | | | | | | | | | | | | The cache id will be used as a prefix in filenames in the cache directory. The new way of computing it includes the cache ids of any components so that if chunk A is included in stratum B, and A changes, the new version of A has a new cache id, which means that when we compute cache id for B, it also changes. This will allow us to easily find out if we need to rebuild B. The test repository is split into two: one for the chunk, one for the stratum and system morphologies. This is so that the rebuild test can modify just the chunk, and does not need to trigger both builds. Signed-off-by: Lars Wirzenius <liw@liw.fi>
* if morph fails, dump its log to stderr so user can easily see itLars Wirzenius2011-12-093-3/+10
| | | | Signed-off-by: Lars Wirzenius <liw@liw.fi>
* Unify the display of the build time delta to be %.4f.Jannis Pohlmann2011-12-081-1/+1
|
* Add Stopwatch.start_stop_seconds(), don't use timedelta.total_seconds().Jannis Pohlmann2011-12-083-4/+11
| | | | | | | | | | | | | | | | | | This function is only available in Python >= 2.7. On http://docs.python.org/library/datetime.html#timedelta-objects it says total_seconds() is equal to (td.microseconds + (td.seconds + td.days * 24 * 3600) * 10**6) / 10**6 with true division enabled. We are using td.days * 24 * 3600 + td.seconds + operator.truediv(td.microseconds, 10**6) now in Stopwatch.start_stop_seconds(), which I find more readable.
* preserve TMPDIR in the environment when building, if it was setLars Wirzenius2011-12-071-0/+3
|
* Fix typos in README and make the suggested config match the command line ↵Richard Maw2011-12-071-5/+5
| | | | options given on the wiki
* rewrite README to match the current state of the worldLars Wirzenius2011-12-071-179/+164
|
* disable distcc for checksLars Wirzenius2011-12-064-4/+4
| | | | We can't assume the host has distcc installed while running the checks.
* Merge remote-tracking branch 'quarry/liw/distcc-support'Lars Wirzenius2011-12-062-0/+6
|\
| * add --no-distcc option to disable distccLars Wirzenius2011-12-062-1/+3
| |
| * set CCACHE_PREFIX to distccLars Wirzenius2011-12-061-0/+1
| | | | | | | | | | This should possibly be conditional on whether we want to use distcc or not. I'll add a --no-distcc option.
| * create staging alwaysLars Wirzenius2011-12-061-3/+2
| |
| * preserve DISTCC_HOSTS in the environmentLars Wirzenius2011-12-061-0/+3
| |
* | Merge branch 'master' of gitorious.org:baserock/morphLars Wirzenius2011-12-064-1/+176
|\ \ | |/
| * Only write build times if rebuilding, not when fetching from cache.Jannis Pohlmann2011-12-061-4/+9
| |
| * Only call save_build_times() once.Jannis Pohlmann2011-12-061-1/+0
| |
| * Use assertEqual and drop has_keys().Jannis Pohlmann2011-12-062-5/+5
| |
| * Make Stopwatch less ambiguous, add tests, update Builder.Jannis Pohlmann2011-12-064-59/+112
| |
| * Add Stopwatch class, write build times to $cache_prefix.meta.Jannis Pohlmann2011-12-064-0/+119
| | | | | | | | | | | | The Stopwatch class does not have unit tests yet and the build times stored in the cache for system images may be a little too fine-grained at the moment.
* | use external tar toolLars Wirzenius2011-12-061-10/+13
| | | | | | | | This saves a bunch of memory use.
* | add memory profiling to create_chunkLars Wirzenius2011-12-062-3/+10
| |
* | use tar command instead of Python's tarlibLars Wirzenius2011-12-061-3/+1
| | | | | | | | | | This saves a bunch of memory. tar seems to be much more efficient than tarlib, for extracting.
* | add more memory usage loggingLars Wirzenius2011-12-061-1/+3
| |
* | have git export directly to a tar fileLars Wirzenius2011-12-062-7/+2
| | | | | | | | Later, add compression by piping to a gzip process.
* | always create staging directoryLars Wirzenius2011-12-061-2/+2
| | | | | | | | | | Earlier, we created it only when we needed to build something. Since re-using cached blobs also require staging, need to always create it.
* | add memory usage logging to various stages of building a chunkLars Wirzenius2011-12-061-2/+18
| |
* | give Builder class the cliapp.Application as argumentLars Wirzenius2011-12-062-5/+6
| | | | | | | | | | This is simpler than giving each separate little thing we need from there.
* | add logging to debug failure to execute stuffLars Wirzenius2011-12-061-0/+6
|/ | | | | (The real fix was --keep-path. I wish we had bootstrapped Baserock already.)
* fix run_sequentially to not run everything under fakerotLars Wirzenius2011-12-021-4/+6
|
* create cachedir at startup if it does not existLars Wirzenius2011-12-015-11/+3
| | | | | | | We don't create it if running as root, since that would mean a typo creates a directory in a place that may be awkward. Anyone running builds as root can go create the directory themselves.
* make --git-base-url add a slash to the end, if missingLars Wirzenius2011-12-017-10/+21
|
* add test case for referring to a missing branch in the repoLars Wirzenius2011-12-013-0/+33
| | | | Have to make sure it is caught properly.
* fix build-system test related changed so tests actually passLars Wirzenius2011-12-014-2/+5
|
* add simple system image build testLars Wirzenius2011-12-012-0/+42
|
* add new test case for building a simple stratumLars Wirzenius2011-12-012-0/+35
|
* add a stratum morphology to the test git repoLars Wirzenius2011-12-011-1/+16
|
* remove old stratum building testLars Wirzenius2011-12-012-39/+0
|
* remove old chunk building test caseLars Wirzenius2011-12-012-50/+0
|
* add test case for building a chunkLars Wirzenius2011-12-012-0/+41
|
* remove unnecessary backslashes in the test morphologyLars Wirzenius2011-12-011-2/+2
| | | | Too many levels of escaping confuses tired minds.
* add a script to set up the git repository for testsLars Wirzenius2011-12-011-0/+69
|
* add script to run test suiteLars Wirzenius2011-12-011-0/+23
|
* use system tar instead of Python's tarfile library to extract tarballsLars Wirzenius2011-11-301-3/+2
|
* change bootstrap to use the morphs repo master branchLars Wirzenius2011-11-301-1/+1
|
* set $BOOTSTRAP when bootstrapping BaserockLars Wirzenius2011-11-281-0/+2
| | | | Some morphs need to do some different things in those cases
* Don't set BOOTSTRAP_TOOLS to NoneLars Wirzenius2011-11-281-1/+2
|
* Remove -n from ldconfig callLars Wirzenius2011-11-251-1/+1
|
* Create etc only if it does not existLars Wirzenius2011-11-251-1/+1
|
* Create tree/etc/ld.so.conf and run ldconfig in chrootLars Wirzenius2011-11-251-6/+19
|
* Fix calls to command running methods for build systemsLars Wirzenius2011-11-241-4/+4
|