| |
@@ -6,11 +6,28 @@
|
| |
|
| |
properties:
|
| |
id:
|
| |
- description:
|
| |
- The package group is identified by assigned side-tag.
|
| |
+ description: |
|
| |
+ The ID is a SHA256 hash. The hash is counted as a concatenation
|
| |
+ of alphabetically sorted strings of IDs (converted to string)
|
| |
+ of all builds in the group.
|
| |
+
|
| |
+ For example if the builds in the sidetag have IDs 1343344
|
| |
+ and 1323323, the sorted concatenation of them is
|
| |
+ "1323323" + "1343344", i.e. "13233231343344". The SHA256 digest
|
| |
+ from this string is prefixed with "sha256:" string.
|
| |
+
|
| |
+ Example using Python:
|
| |
+
|
| |
+ import hashlib
|
| |
+
|
| |
+ identifiers = ["1343344", "323323"]
|
| |
+ concatenation = ''.join(sorted(identifiers))
|
| |
+ digest = hashlib.sha256(concatenation.encode('utf-8').hexdigest())
|
| |
+
|
| |
examples:
|
| |
- - selinux-update-345
|
| |
+ - sha256:fc5883ecb0bd9086b73aa27878682e44bf14f561eefc28b2727089ea4d3223a7
|
| |
type: string
|
| |
+ pattern: "sha256:[A-Fa-f0-9]{64}"
|
| |
type:
|
| |
description:
|
| |
Artifact type.
|
| |
As discussed on the UMB stakeholder meeting, we need to change
the ID to something "unique".
Described how the hash is counted and fixed all examples.
Signed-off-by: Miroslav Vadkerti mvadkert@redhat.com