Actions
Story #8638
closedBasic support for "static_context" in modulemd documents
Start date:
Due date:
% Done:
100%
Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 96
Quarter:
Description
In libmodulemd, it is planned to introduce an extension to version 2 of modulemd documents which differ slightly from the current v2. A new, optional field is added, called "static_context", described thusly:
# context:
# Module context flag
# The context flag serves to distinguish module builds with the
# same name, stream and version and plays an important role in
# automatic module stream name expansion.
#
# If 'static_context' is unset or equal to FALSE:
# Filled in by the buildsystem. A short hash of the module's name,
# stream, version and its expanded runtime dependencies. The exact
# mechanism for generating the hash is unspecified.
#
# Type: AUTOMATIC
#
# Mandatory for module metadata in a yum/dnf repository.
#
# If 'static_context' is set to True:
# The context flag is a string of up to thirteen [a-zA-Z0-9_] characters
# representing a build and runtime configuration for this stream. This
# string is arbitrary but must be unique in this module stream.
#
# Type: MANDATORY
static_context: false
context: c0ffee43
(see that commit also for document examples, and the names of libmodulmd functions)
We need to add the model fields/migration and code necessary to support reading and writing this metadata (sync, upload and publish).
Related issues
Actions
Taught pulp-rpm about the 'static_context' attribute of modules.
The included test relies on a new fixture, and will fail without it.
closes #8638 Required PR: https://github.com/pulp/pulp-fixtures/pull/213