-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(SIMP-7974) Add new GLCI pipeline features
The patch adds enhanced features to SIMP Puppet modules' standardized GitLab CI pipeline: * spec and acceptance tests _only_ run when relevant files have changed * The CI variable `SIMP_FULL_MATRIX` is replaced by `SIMP_MATRIX_LEVEL` * spec and acceptance tests run at or above their `SIMP_MATRIX_LEVEL` * Jobs and the pipeline default to `SIMP_MATRIX_LEVEL` 1 * The pipeline's `SIMP_MATRIX_LEVEL` can be changed via CI variable (via triggers, group/project settings, etc) * In the pipeline-triggering commit message, adding a line that starts with `CI: MATRIX LEVEL 0` or `CI: SKIP MATRIX` will suppress all steps with `SIMP_MATRIX_LEVEL` 1-3 There is an important caveat: because of the way GitLab CI pipelines determine `changes`, a file that hasn't changed between `--amend` + force-pushed updates _will not trigger the matrix again_. This affects scheduled and triggered pipelines. * To solve this scenario, setting the CI variable `SIMP_FORCE_MATRIX = yes` in a scheduled pipeline or pipeline trigger will ensure that all jobs at the current `SIMP_MATRIX_LEVEL` are run, regardless of what has changed (or not). SIMP-8004 #close [SIMP-7974] #comment Add file-match CI runs to pupmod-simp-simpkv [SIMP-7975] #comment Add `SIMP_MATRIX_LEVEL` checks to pupmod-simp-simpkv [SIMP-7974]: https://simp-project.atlassian.net/browse/SIMP-7974 [SIMP-7975]: https://simp-project.atlassian.net/browse/SIMP-7975
- Loading branch information
Showing
3 changed files
with
267 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.