Skip to content

plugin-profiles: guard and remove always-on optional members (AC24, AC3 of #16428) #18124

Closed

Description

@kyle-sexton

Refs: #16428

Context

The #16428 close-out found two acceptance criteria of its Brief unmet on main, both about a profile's optional members:

  • AC24 ("no profile can exclude a member of the always-on profile"): excludedAlwaysOn checks only catalog.alwaysOn.plugins (plugins/plugin-profiles/lib/plan.mjs:67-68), so a profile can exclude an always-on optional member such as spelling@melodic-software (plugins/plugin-profiles/profiles/always-on.yaml). resolveCatalog already guards both sets (plugins/plugin-profiles/lib/profile-files.mjs:157), so the two checks disagree.
  • AC3 ("remove drops inherited ones, in every profile"): extend applies remove to plugins only (plugins/plugin-profiles/lib/profile-files.mjs:108-109) and merges optional as a plain union (:116), so an inherited optional member cannot be removed.

Done when

  • excludedAlwaysOn in plugins/plugin-profiles/lib/plan.mjs rejects an exclude of an always-on optional member as it does a plugins member
  • A remove line in a profile file drops an inherited optional member as well as an inherited plugins member (extend in plugins/plugin-profiles/lib/profile-files.mjs)
  • Tests in plugins/plugin-profiles cover both cases, fail on main and pass with the change
  • The plugin's changelog fragment records the fix

Activity

  1. added
    needs-triage
    on Nov 22, 2026
  2. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: two functions in the plugin-profiles plugin (plan.mjs, profile-files.mjs), their tests and a changelog fragment; read by anyone running plugin profiles.
    Reversible: yes; revert the change.
    Open questions: none
    I understood this as two defects left from #16428: a profile can exclude an always-on optional member, and remove does not drop inherited optional members. The done-when items are exact. I found no duplicate or merged fix; #16428 is the parent issue this refers to.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 22, 2026
  4. melodic-automation-lanes commented on Nov 22, 2026

    @melodic-automation-lanes
    Contributor

    {"v":1,"actor_id":337595936,"title_sha256":"0b96c10621dbe26a3e5fc2199ffeefb953579da764683d5e7ae7b7d4b8337f97","body_sha256":"7d607a1c99ba9cd77c444b6d042d9d48d11ced1d4a73d20ebe3225376e97a73e"}

  5. github-actions commented on Nov 22, 2026

    @github-actions
    Contributor
    No description provided.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    needs-triage

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions