Skip to content

Make artifact repository priority configurable via environment variable #4498

@vaibhavdaren

Description

@vaibhavdaren

Problem

The artifact plugin currently sets a hardcoded high priority for shared artifact repositories (e.g. brew/koji). While useful in some cases, this can:

  • Mask packages from system or other repos
  • Break workflows that require testing updates, downgrades, or different NVRs
  • Force users into workarounds (manual repo edits, disabling repos)

Community feedback suggests repo priority should be configurable, not fixed.


Proposal

Introduce an environment variable to override artifact repo priority:

  • TMT_ARTIFACT_REPO_PRIORITY

    • If set, overrides the default priority (e.g. 50)
    • If unset, keeps the current behavior (no breaking changes)

This preserves existing defaults while allowing flexibility for advanced and generic integrations (e.g. Testing Farm API).


Acceptance Criteria

  • Env var overrides artifact repo priority
  • Unset env var retains current behavior

Metadata

Metadata

Assignees

Labels

plugin | artifactRelated to the `prepare/artifact` plugin.

Projects

Status

implement

Status

triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions