Skip to content

Require regular release-note files for the tool-manifest CI exception #936

Open

Description

@akrock

PR #926 lets a change to .config/dotnet-tools.json use the direct patch gate when its only accompanying changes are newly added Markdown release entries. The selector checks each entry’s path and Git change kind. Its input carries no file type, so an added .md symlink qualifies even though the release composer rejects it. PR #926 · CI selector · Changed-path contract · Release composer

Required behavior. Grant the exception only when every accompanying release entry is positively identified as a regular file. If any entry is a symlink, another file type, or has unknown type, planning succeeds and selects normal CI. On a PR, that means Linux, Windows, and macOS native coverage plus v3 fan-in.

Change accompanying an otherwise qualifying manifest update requiresNativeCoverage
No release entries false
One or more qualifying entries, all confirmed regular files false
Any symlink, including one pointing to a regular Markdown file or a missing target true
Any other or unknown file type, including a release entry in an older path-only inventory true
A mixture of regular and ineligible entries, in any order true

Acceptance and verification

  1. GitHub event planning determines the entry type from the pinned event revision. A committed symlink selects normal CI even on a checkout that materializes it as a plain file. The planner classifies the link itself without reading its target.
  2. Local planning applies the same rule to committed, staged, unstaged, and untracked inputs. Missing type information in an otherwise valid inventory selects normal CI. Existing errors for malformed inventories still surface. Git change collector
  3. Extend the selector tests to assert the table above. Add Git-backed collector-to-planner tests for regular files, symlinks, and local changes. Verify the resulting selection.json so the tests cover the decision the workflow consumes. Selector tests · Collector tests
  4. Preserve all four producers, the 95% line and 85% branch thresholds, and the existing path, change-kind, and rename rules. Document the unknown-type fallback in the tool-manifest selection reference.

The release composer continues to own entry validation. This case is limited to CI selection and its tests and documentation. Reverting the selector change would restore #926’s path-based behavior.

Activity

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions