Project

Profile

Help

Story #8638

closed

Basic support for "static_context" in modulemd documents

Added by dalley almost 3 years ago. Updated almost 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
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

Source: https://github.com/fedora-modularity/libmodulemd/commit/2000e88d48a7b8d9fba1f7866d3709035dd2b957#diff-f693f5c1bd57e7782999ed7d59a4e2cdb1548c6d5e2e4663265f2165a949effeR81-R96

(see that commit also for document examples, and the names of libmodulmd functions)

See also: https://github.com/fedora-modularity/libmodulemd/commit/0132015b5729b6077d49fc5beb2c662a563c6e6d#diff-f693f5c1bd57e7782999ed7d59a4e2cdb1548c6d5e2e4663265f2165a949effe

We need to add the model fields/migration and code necessary to support reading and writing this metadata (sync, upload and publish).


Related issues

Copied to RPM Support - Story #8741: Full support for "static_context" in modulemd documentsCLOSED - CURRENTRELEASEggainey

Actions
Actions #1

Updated by dalley almost 3 years ago

  • Tracker changed from Issue to Story
  • % Done set to 0
  • Severity deleted (2. Medium)
  • Triaged deleted (No)
Actions #2

Updated by dalley almost 3 years ago

  • Description updated (diff)
Actions #3

Updated by dalley almost 3 years ago

  • Description updated (diff)
Actions #4

Updated by dalley almost 3 years ago

  • Description updated (diff)
Actions #5

Updated by dalley almost 3 years ago

  • Groomed changed from No to Yes
  • Sprint set to Sprint 95
Actions #6

Updated by rchan almost 3 years ago

  • Sprint changed from Sprint 95 to Sprint 96
Actions #7

Updated by pulpbot almost 3 years ago

  • Status changed from NEW to POST
Actions #10

Updated by ggainey almost 3 years ago

  • Assignee set to ggainey
Actions #11

Updated by dalley almost 3 years ago

  • Copied to Story #8741: Full support for "static_context" in modulemd documents added

Added by ggainey almost 3 years ago

Revision 94317791 | View on GitHub

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

Actions #12

Updated by ggainey almost 3 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #13

Updated by ttereshc almost 3 years ago

  • Sprint/Milestone set to 3.11.0
Actions #14

Updated by pulpbot almost 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF