Skip to content

chore(ci): align backport labels with namespaced label convention #2585

Closed

Description

Context

.github/labels.yml opens with a header declaring that label names follow the Kubernetes scheme (kind/, priority/, triage/, lifecycle/, area/, do-not-merge/, security/, size/). Two labels currently violate that scheme:

  • backport — top-level, no namespace. Upstream Kubernetes uses kind/backport (kubernetes/test-infra/label_sync/labels.yaml) for "issues or PRs requiring backports". Our current label means the same thing and should match.
  • backport-previous — top-level, no namespace. Cozystack-specific (k8s has no two-line release model), but still needs a namespace per the file header. Reasonable options: backport/previous + a sibling backport/current (new namespace dedicated to release-line targeting), or fold into kind/ (kind/backport-previous, kind/backport-current).

Discovered while reviewing #2584 (which fixes the cascade and is unblocked by this).

Scope

Single PR, label-only. Two files to touch:

  1. .github/labels.yml — rename both labels and use the aliases: mechanism so EndBug/label-sync preserves history on already-tagged PRs/issues. Also worth deciding whether the top-level release label belongs under area/release or a new namespace while the file is open.
  2. .github/workflows/backport.yaml — every reference to the literal label strings 'backport' and 'backport-previous' must be updated in lockstep with the rename. References as of today: lines 21, 22, 23, 39, 40 in backport.yaml. The trigger filter in pull-requests-release.yaml is unrelated (the word "backport" there is in a comment, not a label match).

No other workflow consumes these labels.

Acceptance criteria

  • .github/labels.yml namespaces both labels per the file header, with aliases: covering the old names.
  • .github/workflows/backport.yaml references the new names everywhere.
  • EndBug/label-sync run on the PR completes without dropping history on existing labeled PRs.
  • Decision on the top-level release label is captured in the PR (either renamed or explicitly left alone with reasoning).

Activity

  1. added
    kind/cleanupCategorizes issue or PR as related to cleanup of code, process, or technical debt
    area/ciIssues or PRs related to CI workflows, GitHub Actions, automation
    area/releaseIssues or PRs related to release tooling (changelog, backport, release pipeline)
    triage/acceptedIndicates an issue is ready to be actively worked on
    priority/backlogGeneral backlog priority. Lower than priority/important-longterm
    on May 6, 2026
  2. added a commit that references this issue on Aug 27, 2026
    3d12ece
  3. added a commit that references this issue on Sep 7, 2026
    338a4c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/ciIssues or PRs related to CI workflows, GitHub Actions, automationarea/releaseIssues or PRs related to release tooling (changelog, backport, release pipeline)kind/cleanupCategorizes issue or PR as related to cleanup of code, process, or technical debtpriority/backlogGeneral backlog priority. Lower than priority/important-longtermtriage/acceptedIndicates an issue is ready to be actively worked on

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions