| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
run-in-artifact-with-different-artifacts test
|
|
|
|
|
| |
Previously, we were building a disk image, and that had a factory sub-volume,
but now we're building a rootfs tarball instead, and that doesn't have a factory.
|
|
|
|
|
|
| |
make-patch needs to be changed to work with rootfs-tarball systems,
instead of disk images. This is not happening any time soon, so disable
the test for now.
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
'baserock/richardholland/add-metadata-dir-setting-to-branch-from-image'
Reviewed-by: Jonathan Maw <jonathan.maw@codethink.co.uk>
|
| | |
|
|\ \
| | |
| | |
| | | |
Reviewed-By: concensus
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
Conflicts:
morphlib/bins_tests.py
Reviewed-By: consensus
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Allowed values:
staging: build with a staging chroot (default)
test: build with the host's tools
bootstrap: build with the host's tools, and do not include this
chunk in the final stratum artifact
In the past, 'normal mode' has been used to describe building a chunk
with the host's tools. We don't want that mode to ever be used,
because it is a huge hole in reproducability, but we need to keep it
around to avoid making Morph's cmdtest suite depend on Baserock.
Hopefully naming it 'test' should discourage potential abusers.
It is unfortunate that the build tests now take a separate code path
compared to real-world usage of Morph. However, this is necessary to
avoid a circular dependency between Morph's test suite and the
build-essential stratum in Baserock.
We do whole-build testing of Baserock, too, so the 'staging' code path
is still tested outside of Morph. However, testing a staging area
requires populating it with at minimum a working shell, and this is a
bit too complex to go in Morph's test suite.
|
| | |
| | |
| | |
| | |
| | |
| | | |
That means that bootstrapping Baserock is currently not possible with
this branch of Morph, but there's no reason it cannot be bootstrapped
using an older version of Morph instead.
|
| | | |
|
|\ \ \
| |_|/
|/| | |
|
| |/
| |
| |
| | |
This will speed up the test suite a little bit.
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This adds a `run-in-artifact` command which allows another command
to be run in a system.
There is also a `content-manifest` command which gives a
manifest of the artifacts, which commits they were built from,
and if possible, a version.
This adds a morphlib.bins.call_in_artifact_directory() method
to run a command inside an artifact and to generate a manifest.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The test builds a system, makes a commit to mainline, then branches
from the system and checks whether it is petrified to the exact commits
that the system was built from by checking the morphology contents and
rebuilding the system.
|
|/ |
|
|\ |
|
| | |
|
|\ \ |
|
| |/ |
|
|\ \
| |/
|/|
| |
| |
| | |
'origin/baserock/richardmaw/temp-build-ref-commit-fix'
Broke a long line to make test suite pass.
|
|/
|
|
| |
This was the only case found which was fixed by the previous commit.
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
ssh://git.baserock.org/baserock/baserock/morph
This includes the following fixups:
- altering the bootstrap script to install ordereddict and simplejson.
- Adding a comment to clarify that it is intentional to use simplejson
if collections does not have OrderedDict
- Amending the copyright years to include 2013
|
|/
|
|
|
| |
As we use ordererdict for python < 2.7 as well
See 37f8d84d7ab356169bf7c04bdecb39a61b85c88d
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This changes the cache key generation so that it will ignore unimportant
fields of the morphology, e.g. description, build-depends, chunks.
description is unimportant because it does not affect building, and
build-depends/chunks are unimportant because they are already considered
|
|
|
|
| |
Includes new test.
|
|
|
|
| |
Code to generate system images was being duplicated in each test needlessly.
|
|
|
|
| |
Be consistent about placement of test description, blank lines, etc.
|
|
|
|
|
|
|
|
| |
Most of the bespoke logic for the version check is unnecessary,
since the output to display can be easily inferred from the filename.
This fixes some test failures where the version check would cat a
file to fake the output, but fail because the file was removed.
|
|
|
|
|
| |
This is for users who prefer the old behaviour of building from the
remote repos.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This means that Morph no longer requires changes to be pushed in order
to build them.
The repos from the system branch are currently cached in the local
repo cache as part of the build process, which is far from ideal.
Tests for 'morph build' now test build without push. The build
metadata now includes a repo path that is inside the TMPDIR, so the
tests have been rewritten to avoid having any hardcoded cache keys
because the cache keys are no longer static.
|
|
|
|
| |
Some tests were using test:morphs-repo instead.
|
| |
|
|
|
|
|
|
| |
This reduces the space required from the full size of the compressed
disk image, which meant that tests could not be run on systems where
TMPDIR is a smallish tmpfs.
|
|
|
|
|
|
| |
This is intended to for human consumption, with the full set of
metadata in /baserock/system-artifact-name.meta. It currently lists
system name, the symbolic ref of the system morphology and build date.
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
git://git.baserock.org/baserock/morph
This includes a fixup of shell quoting in tests.as-root/lib.
Tests needs to be run with a larget TMPDIR than systemd's default,
since system images can be large.
|
|/
|
|
|
|
|
|
| |
This makes it easier to identify what version of a system we are running.
Tests are updated to check inside the contents of the rootfs we created,
and the code to mount the rootfs as a loopback device was extracted out
into tests.as-root/lib
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The make-patch test assumes system images will be mountable. This
patch disables that part of the test and adds a warning that we
need to sort this out longer-term.
|