rpm-ostree/tests/compose-tests
Colin Walters e7a42f70a9 compose: Add rpmostree.rpmmd-repo metadata to commits by default
This is a revisit of a PR for client-side layering: https://github.com/projectatomic/rpm-ostree/pull/1072
Here though we're doing this by default for server-side composes.
There are a few reasons to do this; first, I'm seeing an issue
in some of our Jenkins jobs for Fedora that hit "mirror roulette"
and end up creating commits that "revert" to older versions temporarily.

While I've [certainly pitched](https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/IMPE6KCRBHCEJH5VBE6ZFIRLPAD743JT/) this as a feature, I think
we really want something like `--force-older-timestamp` - basically
error out if the timestamps on one or more input repos were older.
Not doing that in this patch, but it paves the way to do so.

Second, I'd like to use this data in the `ostree.source-title`
metadata key down the line.  Something like:

`└ rpmmd: fedora-26 (20170310), fedora-26-updates (20171101)`

(This could be a lot nicer if we drive versioning in to the rpm-md repo info,
 and e.g. there's some friendly "week number" style versioning for the updates
 repo now that it's batched...for now we have timestamps)

For CentOS/RHELAH this gets interesting and potentially more verbose,
to the point where we may want to render it more explicitly.

But anyways, let's do this now, as it will be useful even without
an explicit rendering, since users can do e.g. `ostree show` on
a base commit hash to dump the data.

I had a concern that some users may not want to emit this metadata;
they can currently do `--add-metadata-string rpmostree.rpmmd-repos ''`
and that will "win".

Closes: #1079
Approved by: jlebon
2017-11-04 21:02:56 +00:00
..
libcomposetest.sh bin/compose: Expose phases as [install, postprocess, commit] cmds 2017-10-25 17:43:09 +00:00
test-basic.sh compose: Add rpmostree.rpmmd-repo metadata to commits by default 2017-11-04 21:02:56 +00:00
test-boot-location-new.sh Rework treecompose kernel processing 2017-09-12 14:26:44 +00:00
test-install-langs.sh postprocess: Unlink our treecompose-post out of the final /bin 2017-08-31 03:06:11 +00:00
test-installroot.sh bin/compose: Expose phases as [install, postprocess, commit] cmds 2017-10-25 17:43:09 +00:00
test-misc-tweaks.sh compose: Copy in additional files before postprocessing 2017-09-28 15:38:55 +00:00
test-mutate-os-release.sh ci: unite testsuites and run vmcheck on centos 2017-07-18 13:58:38 +00:00