Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add method to compute recursive cache id | Lars Wirzenius | 2011-12-09 | 8 | -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 it | Lars Wirzenius | 2011-12-09 | 3 | -3/+10 |
| | | | | Signed-off-by: Lars Wirzenius <liw@liw.fi> | ||||
* | Unify the display of the build time delta to be %.4f. | Jannis Pohlmann | 2011-12-08 | 1 | -1/+1 |
| | |||||
* | Add Stopwatch.start_stop_seconds(), don't use timedelta.total_seconds(). | Jannis Pohlmann | 2011-12-08 | 3 | -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 set | Lars Wirzenius | 2011-12-07 | 1 | -0/+3 |
| | |||||
* | Fix typos in README and make the suggested config match the command line ↵ | Richard Maw | 2011-12-07 | 1 | -5/+5 |
| | | | | options given on the wiki | ||||
* | rewrite README to match the current state of the world | Lars Wirzenius | 2011-12-07 | 1 | -179/+164 |
| | |||||
* | disable distcc for checks | Lars Wirzenius | 2011-12-06 | 4 | -4/+4 |
| | | | | We can't assume the host has distcc installed while running the checks. | ||||
* | Merge remote-tracking branch 'quarry/liw/distcc-support' | Lars Wirzenius | 2011-12-06 | 2 | -0/+6 |
|\ | |||||
| * | add --no-distcc option to disable distcc | Lars Wirzenius | 2011-12-06 | 2 | -1/+3 |
| | | |||||
| * | set CCACHE_PREFIX to distcc | Lars Wirzenius | 2011-12-06 | 1 | -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 always | Lars Wirzenius | 2011-12-06 | 1 | -3/+2 |
| | | |||||
| * | preserve DISTCC_HOSTS in the environment | Lars Wirzenius | 2011-12-06 | 1 | -0/+3 |
| | | |||||
* | | Merge branch 'master' of gitorious.org:baserock/morph | Lars Wirzenius | 2011-12-06 | 4 | -1/+176 |
|\ \ | |/ | |||||
| * | Only write build times if rebuilding, not when fetching from cache. | Jannis Pohlmann | 2011-12-06 | 1 | -4/+9 |
| | | |||||
| * | Only call save_build_times() once. | Jannis Pohlmann | 2011-12-06 | 1 | -1/+0 |
| | | |||||
| * | Use assertEqual and drop has_keys(). | Jannis Pohlmann | 2011-12-06 | 2 | -5/+5 |
| | | |||||
| * | Make Stopwatch less ambiguous, add tests, update Builder. | Jannis Pohlmann | 2011-12-06 | 4 | -59/+112 |
| | | |||||
| * | Add Stopwatch class, write build times to $cache_prefix.meta. | Jannis Pohlmann | 2011-12-06 | 4 | -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 tool | Lars Wirzenius | 2011-12-06 | 1 | -10/+13 |
| | | | | | | | | This saves a bunch of memory use. | ||||
* | | add memory profiling to create_chunk | Lars Wirzenius | 2011-12-06 | 2 | -3/+10 |
| | | |||||
* | | use tar command instead of Python's tarlib | Lars Wirzenius | 2011-12-06 | 1 | -3/+1 |
| | | | | | | | | | | This saves a bunch of memory. tar seems to be much more efficient than tarlib, for extracting. | ||||
* | | add more memory usage logging | Lars Wirzenius | 2011-12-06 | 1 | -1/+3 |
| | | |||||
* | | have git export directly to a tar file | Lars Wirzenius | 2011-12-06 | 2 | -7/+2 |
| | | | | | | | | Later, add compression by piping to a gzip process. | ||||
* | | always create staging directory | Lars Wirzenius | 2011-12-06 | 1 | -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 chunk | Lars Wirzenius | 2011-12-06 | 1 | -2/+18 |
| | | |||||
* | | give Builder class the cliapp.Application as argument | Lars Wirzenius | 2011-12-06 | 2 | -5/+6 |
| | | | | | | | | | | This is simpler than giving each separate little thing we need from there. | ||||
* | | add logging to debug failure to execute stuff | Lars Wirzenius | 2011-12-06 | 1 | -0/+6 |
|/ | | | | | (The real fix was --keep-path. I wish we had bootstrapped Baserock already.) | ||||
* | fix run_sequentially to not run everything under fakerot | Lars Wirzenius | 2011-12-02 | 1 | -4/+6 |
| | |||||
* | create cachedir at startup if it does not exist | Lars Wirzenius | 2011-12-01 | 5 | -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 missing | Lars Wirzenius | 2011-12-01 | 7 | -10/+21 |
| | |||||
* | add test case for referring to a missing branch in the repo | Lars Wirzenius | 2011-12-01 | 3 | -0/+33 |
| | | | | Have to make sure it is caught properly. | ||||
* | fix build-system test related changed so tests actually pass | Lars Wirzenius | 2011-12-01 | 4 | -2/+5 |
| | |||||
* | add simple system image build test | Lars Wirzenius | 2011-12-01 | 2 | -0/+42 |
| | |||||
* | add new test case for building a simple stratum | Lars Wirzenius | 2011-12-01 | 2 | -0/+35 |
| | |||||
* | add a stratum morphology to the test git repo | Lars Wirzenius | 2011-12-01 | 1 | -1/+16 |
| | |||||
* | remove old stratum building test | Lars Wirzenius | 2011-12-01 | 2 | -39/+0 |
| | |||||
* | remove old chunk building test case | Lars Wirzenius | 2011-12-01 | 2 | -50/+0 |
| | |||||
* | add test case for building a chunk | Lars Wirzenius | 2011-12-01 | 2 | -0/+41 |
| | |||||
* | remove unnecessary backslashes in the test morphology | Lars Wirzenius | 2011-12-01 | 1 | -2/+2 |
| | | | | Too many levels of escaping confuses tired minds. | ||||
* | add a script to set up the git repository for tests | Lars Wirzenius | 2011-12-01 | 1 | -0/+69 |
| | |||||
* | add script to run test suite | Lars Wirzenius | 2011-12-01 | 1 | -0/+23 |
| | |||||
* | use system tar instead of Python's tarfile library to extract tarballs | Lars Wirzenius | 2011-11-30 | 1 | -3/+2 |
| | |||||
* | change bootstrap to use the morphs repo master branch | Lars Wirzenius | 2011-11-30 | 1 | -1/+1 |
| | |||||
* | set $BOOTSTRAP when bootstrapping Baserock | Lars Wirzenius | 2011-11-28 | 1 | -0/+2 |
| | | | | Some morphs need to do some different things in those cases | ||||
* | Don't set BOOTSTRAP_TOOLS to None | Lars Wirzenius | 2011-11-28 | 1 | -1/+2 |
| | |||||
* | Remove -n from ldconfig call | Lars Wirzenius | 2011-11-25 | 1 | -1/+1 |
| | |||||
* | Create etc only if it does not exist | Lars Wirzenius | 2011-11-25 | 1 | -1/+1 |
| | |||||
* | Create tree/etc/ld.so.conf and run ldconfig in chroot | Lars Wirzenius | 2011-11-25 | 1 | -6/+19 |
| | |||||
* | Fix calls to command running methods for build systems | Lars Wirzenius | 2011-11-24 | 1 | -4/+4 |
| |