Skip to content

fleet gate B13: low follow-ups from the #289 cross-review #290

Backlog

Description

@frostyard-machines

Follow-up from the cross-review of #289 (row B13 in the organization gate, ADR-0092). The reviewer found no blocking point. These are its low, non-blocking findings, filed here so that #289 keeps its reviewed head.

Owner: Core maintainer.

  1. missingEcosystems (scripts/lib/dependabot.mjs) reads package-ecosystem with a regex anchored at \s*$. A trailing comment (package-ecosystem: "npm" # note) makes it report no entry for npm although the entry exists. ungroupedEntries strips comments, so the 2 readers disagree. Now that a required check uses the reader, this is a false positive in fleet-conventions.
  2. fetchTreeFiles (scripts/lib/fleet-conventions.mjs) passes a listing that is not truncated and has tree: []. A listing that does not hold .github/dependabot.yml cannot be the tree of a repository whose contents API returned that file, so the gate should fail closed on it.
  3. ADR-0092 Consequences: state that the gate does not weigh a repository's own ADR that needs a second entry, which ADR-0089 calls a sweep "conflict" finding.
  4. scripts/check-fleet-conventions.mjs header comment: cite ADR-0092 (the gate check) beside ADR-0089.
  5. ADR-0092 Consequences: "2 more GitHub API requests" is a maximum (a missing file skips the tree request). Write "up to 2". Because ADRs are immutable once accepted, this needs a link-only-safe wording or a note in the design doc.

Acceptance

  • A test in test/repository-baseline.test.mjs passes package-ecosystem: "npm" # note to missingEcosystems and expects no gap. It fails on the current regex. The fix (a comment-tolerant regex, or the yaml parser as entryGaps uses) keeps every existing B13 test green.
  • A test in test/fleet-conventions.test.mjs gives a tree listing with no .github/dependabot.yml blob and expects <owner>/<name>: git tree listing is not readable. It fails before the fix.
  • The header comment of scripts/check-fleet-conventions.mjs cites ADR-0092.
  • Items 3 and 5 are recorded in docs/design/quality-loop.md, or in an ADR that is not yet accepted, without a change of meaning to accepted ADR-0092.
  • make ci passes, and node scripts/check-fleet-conventions.mjs exits 0 for the enabled repositories.

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