Store CI values relative to specific versions into directories

This MR is a proposal for answering sylva-projects/sylva-core#1550 (closed)

CI values are now in different folders:

  • a folder common for all values usable in any case
  • a folder current for values usable on main and dev branches
  • a folder per specific versions (currently 1.1.1)

Sylva-core side implementation uses filenames to apply a given change:

  • if a requested file exists in common, it will be applied first
  • if the same file exists in specific version, it will also be applied afterwards

So CI values can be stored with the following logic:

  • if a value file is suitable for any version, it can simply be stored in common
  • if a value file is partially suitable for any version but some changes/patch are needed for some specific versions, the file can be put in common folder and a file with the same name containing only changes can be put in version folder(s)
  • If a value file is only suitable for current version (main and dev branches) it can be store in current folder
  • If a value file is completely different between current and previous versions (no easy value overwrite), files with same name but different values can be stored in each version folders.

The sylva-core side implementation is done in sylva-projects/sylva-core!2960 (merged). This MR mainly changes the update_values_file to be able to apply required values files based on this name and tested version.

Closes sylva-projects/sylva-core#1550 (closed)

Edited by Médéric de Verdilhac

Merge request reports

Loading