diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-01-22 14:48:29 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-01-22 15:48:06 +0000 |
commit | e30b0c73cb6805689c58b3ed9d5dd091218e2df3 (patch) | |
tree | 44ad4e0a87c20cfd1635c691dbbb26c99a66bdd9 /yarns/regression.yarn | |
parent | 52e2b4aa1463e0247b6d1ef1653bbacc5dc0e02c (diff) | |
download | morph-e30b0c73cb6805689c58b3ed9d5dd091218e2df3.tar.gz |
yarns: Add regression test for cache-key clash
Diffstat (limited to 'yarns/regression.yarn')
-rw-r--r-- | yarns/regression.yarn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/yarns/regression.yarn b/yarns/regression.yarn index 49c663ec..71431ff7 100644 --- a/yarns/regression.yarn +++ b/yarns/regression.yarn @@ -46,6 +46,25 @@ area, hence their results cannot be trusted. AND the user attempts to build the system bootstrap-system in branch master THEN the build error message includes the string "No non-bootstrap chunks found" +When we started allowing multiple artifacts, a long-standing bug in +cache-key computation was discovered, it didn't include artifact names, +which would cause a collision if a morphology changed which artifacts +from a source it depended on, but not the number of artifacts from that +source it depended on. + + SCENARIO changing the artifacts a system uses + GIVEN a workspace + AND a git server + AND system test-system uses test-stratum-runtime from test-stratum + AND stratum test-stratum has match rules: [{artifact: test-stratum-runtime, include: [.*-(bins|libs|locale)]}, {artifact: test-stratum-devel, include: [.*-(devel|doc|misc)]}] + WHEN the user checks out the system branch called master + GIVEN a cluster called test-cluster for deploying only the test-system system as type tar in system branch master + WHEN the user builds the system test-system in branch master + GIVEN stratum test-stratum in system branch master has match rules: [{artifact: test-stratum-runtime, include: [.*-(bins|libs|misc)]}, {artifact: test-stratum-devel, include: [.*-(devel|doc|locale)]}] + WHEN the user builds the system test-system in branch master + AND the user deploys the cluster test-cluster in branch master with options system.location="$DATADIR/test.tar" + THEN tarball test.tar contains baserock/test-chunk-misc.meta + Implementations --------------- |