Permalink
Commits on Jan 1, 2017
  1. third_party: user: fix 32-bit build

    The test code apparently breaks on i596, fix it by not using strconv
    anymore.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Jan 1, 2017
Commits on Dec 30, 2016
  1. *: make coverage optional

    This makes the hack/test-* scripts work in a non-coverage mode that
    allows users to run hack/test-integration with a regular umoci binary.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 30, 2016
  2. README: update

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 30, 2016
  3. merge branch 'improve-unit-tests'

    Closes cyphar/umoci#68
    LGTMs: @cyphar
    committed Dec 30, 2016
Commits on Dec 29, 2016
  1. hack: make more non-coverprofile friendly

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 29, 2016
  2. *: further test improvements [82%]

    Removed unused code, added tests and cleaned up some test code. We've
    now hit the ~80% coverage target. So it's looking much better than
    before.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 29, 2016
  3. *: combine unit and integration coverage [77%]

    This means that we can compute the total coverage information for the
    whole codebase, which is hard to do otherwise.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 28, 2016
Commits on Dec 28, 2016
  1. *: add integration coverage stats [75%]

    This now includes all of the coverage stats for umoci during integration
    testing. This stilll needs to be combined with unit tests to get a
    proper sense of the overall statistics.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 28, 2016
  2. third_party: user: add upstream tests [60%]

    These tests are part of libcontainer/user, but they were dropped because
    I didn't bother to figure out why the build failed. I've figured it out,
    and now the tests build.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 28, 2016
  3. pkg: idtools: add tests [100%]

    This adds a set of tests to the fairly trivial idtools package, with
    100% test coverage.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 28, 2016
Commits on Dec 20, 2016
  1. merge branch 'unit-rpm-check-friendly'

    Closes: cyphar/umoci#65
    LGTMs: @cyphar
    committed Dec 20, 2016
  2. makefile: improve testing and building

    This includes stripping and also uses -cover for all unit tests.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 20, 2016
  3. makefile: make local-unit-tests work as root and non-root

    This is necessary for %check-style testing inside the openSUSE RPMs, so
    that we can make sure that everything works (or appears to work) when
    releasing packages.
    
    It also increases unit test coverage for the rootless case.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 20, 2016
Commits on Dec 19, 2016
  1. merge branch 'static-compilation'

    Closes: cyphar/umoci#64
    LGTMs: @cyphar
    committed Dec 19, 2016
  2. Makefile: fix static compilation

    The old setup didn't actually statically compile umoci, so we have to
    add CGO_ENABLED=0 in order to make the damn thing static. Also,
    installing dependencies is a bad idea.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 19, 2016
  3. VERSION: back to development

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 19, 2016
  4. VERSION: update to 0.0.0~rc3

    Most of the features are now done, most of the cleanup is now done.
    There are only a few outstanding issues, none of which are bugs.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 19, 2016
  5. merge branch 'gc-clean-tmpdirs'

    committed Dec 19, 2016
  6. oci: cas: add unit tests for GC locking

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 19, 2016
  7. test: add gc tests

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 19, 2016
  8. oci: cas: add internal GC method

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 19, 2016
  9. oci: cas: lock temporary directories

    This is necessary in order to sanely handle the garbage collection of
    temporary directories. It might also be a good idea to lock directories
    if we're reading or writing stuff...
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 19, 2016
Commits on Dec 18, 2016
  1. merge branch 'vendor-image-spec'

    committed Dec 18, 2016
  2. man: remove docs on resources flags

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 18, 2016
  3. hack: vendor opencontainers/image-spec@409e1a5

    This includes the removal of Config.{Memory{,Swap},CPUShares}, which is
    a long time coming, considering that it never made any sense.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 18, 2016
  4. *: drop support for resource configs

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 18, 2016
  5. merge branch 'hint-rootless'

    Closes: cyphar/umoci#60
    LGTMs: @cyphar
    committed Dec 18, 2016
  6. cmd: give 'helpful' hint about --rootless

    We still need to massively reduce the amount of dumb output we are
    spewing out. Logrus is both a blessing and a curse.
    
    Reported-by: Antonio Murdaca <runcom@redhat.com>
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 18, 2016
  7. merge branch 'xattr-implement-repack'

    Closes: cyphar/umoci#54
    LGTMs: @cyphar
    committed Dec 18, 2016
  8. test: add xattr {un,re}pack tests

    The main point of this test is to make sure that in addition to new
    xattrs being handled properly, they are also removed and updated as
    necessary.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 17, 2016
  9. cmd: hardcode go-mtree keywords

    Because vbatts/go-mtree#87 wasn't merged upstream (and I'm not sure if I
    want to carry that patch for other reasons), we have to just hardcode
    what go-mtree keywords we're going to use.
    
    Is it annoying that we can't use dh.UsedKeywords()? Yes. But there's not
    much else we can do.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 18, 2016
Commits on Dec 17, 2016
  1. oci: layer: add xattrs to new layers

    By necessity we have to ignore some xattrs (such as security.selinux),
    but hopefully this is a rare case of things we need to ignore -- I don't
    really want to have to maintain a set of xattrs that are and are not
    safe to handle.
    
    This also adds the "xattrs" keyword to the default set when doing
    unpack. Otherwise we won't get an InodeDelta for the file.
    
    Fixes: cyphar/umoci#52
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 17, 2016
  2. oci: layer: enable xattr extraction in --rootless

    In a lot of cases, we actually do want to extract xattrs that are set in
    the image in rootless mode. Though, we have to be careful to not break
    certain things.
    
    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 17, 2016
  3. *: add L*xattr to FsEval

    Signed-off-by: Aleksa Sarai <asarai@suse.com>
    committed Dec 17, 2016