Skip to content

v0.1.10-pre.2

@matthewgrossman matthewgrossman tagged this 19 Nov 12:44
* refactor(tmachine): keep setup layers under disks/setup

Install layers already live in disks/install. Give setup layers a
sibling directory so the CI cache path names the setup layers directly
and a wider glob cannot pull install layers into it.

Existing local setup layers in disks/ are no longer found and are
rebuilt once; they can be deleted.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* ci(e2e): key the tmachine disk cache on the setup layer hash

Add `tmachine layer-key <environment>`, which prints the hash tmachine
names the environment's setup layer after, or `none` when the
environment has no setup playbooks, without starting a VM. setup() now
derives its layer name from the same function.

Key the e2e-suites disk cache on that value instead of a hand-written
hashFiles list, so a new setup input changes the key without a workflow
edit. Skip the cache for environments without a setup layer.

Closes #5627

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* ci(integration): key the tmachine disk cache on the setup layer hash

The integration runner cached all of ~/.cache/tmachine, install layers
included, under one fixed key per OS and arch, and skipped ubuntu-k3s.
Cache only the setup layers and key them on `tmachine layer-key`, as
e2e-suites.yml does.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

* refactor(tmachine): simplify the layer-key command

Print the setup-layer hash for every environment instead of `none` for
environments without setup playbooks, and drop the workflow checks for
it. Expose the existing hash function directly, and drop the tests and
the Ansible hashing split that only they needed.

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>

---------

Signed-off-by: Evan Lezar <elezar@nvidia.com>
Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
Co-authored-by: Evan Lezar <elezar@nvidia.com>
Assets 2
Loading