You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CI: Add an environment option for build cache index update behavior (spack#51817)
* CI: Add an environment option for build cache index update behavior
Signed-off-by: Ryan Krattiger <ryan.krattiger@kitware.com>
* Remove unused default cleanup-job
The default cleanup job was using gitlab specific variables and
variables that were unexpanded by gitlab CI. Drop this as it is related
to a long since removed legacy feature "artfacts-buildcache" which has
been deprecated and removed for a few years.
Signed-off-by: Ryan Krattiger <ryan.krattiger@kitware.com>
* Add mirror metadata formatting. Display view in pruning
Views are optional metadata. Provide a way to conditionally format
mirror metadata to print view information if it exists.
Signed-off-by: Ryan Krattiger <ryan.krattiger@kitware.com>
* Add docs on new environment variable
Signed-off-by: Ryan Krattiger <ryan.krattiger@kitware.com>
---------
Signed-off-by: Ryan Krattiger <ryan.krattiger@kitware.com>
Copy file name to clipboardExpand all lines: lib/spack/docs/pipelines.rst
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -704,3 +704,15 @@ Optional.
704
704
Only needed if you want ``spack ci rebuild`` to trust the key you store in this variable, in which case, it will subsequently be used to sign and verify binary packages (when installing or creating build caches).
705
705
You could also have already trusted a key Spack knows about, or if no key is present anywhere, Spack will install specs using ``--no-check-signature`` and create build caches using ``-u`` (for unsigned binaries).
706
706
707
+
``SPACK_CI_BUILDCACHE_VIEW``
708
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
709
+
710
+
Optional.
711
+
Only needed when using a ``buildcache-destination`` mirror that points at a build cache view.
712
+
This option affects the behavior the ``reindex`` job (:ref:`rebuild_index`) can have the values ``force`` or ``append`` which mirror behavior described by ref:`cmd-spack-buildcache-update-view`.
713
+
The default option is ``append`` because that is what is used by the Spack build farm.
714
+
715
+
.. warning::
716
+
717
+
Using the ``append`` option with build cache index views is a non-atomic operation.
718
+
It is up to the CI maintainer to ensure that concurrent writes to the build cache are handled appropriately.
0 commit comments