IMPROVE: change the PackId construction
The PackageId is build as follow:
RepoName - DepsHash - JobHash - ProdHash
The JobHash is build as follow:
ImgHash - ParamHash - ArchHash
After discussing with @kmakan, we realized that KuFair Packages are implemented in two ways:
- further development of sources, new version of package, new features...
- changing parameters, changing input data, changing archives, for the same job
Therefore we would like the PackageHashId to somehow represent this
Here is the new PackageId suggestion:
RepoName - InputHash - JobHash - ProdHash
Where InputHash
consists of:
ParamHash - DepsHash - ArchiveHash
and JobHash
ImgHash
This means that as long as the image stay the same the JobHash remain the same helping identifying package of the same version with only inputs and parameter differences.
[repo-aaaa-mmmm-xxxx] (parent package for job mmmm)
[repo-bbbb-mmmm-yyyy] (another set of inputs)
[repo-aaaa-nnnn-zzzz] (new version of mmmm with same parameters aaaa)
make ParamHash and Deps-Hash together.
Edited by Yori Fournier