Skip to content

ci: collapse the duplicate issue-form validation steps and derive their file list #70

Closed

Description

@kyle-sexton

Summary

In .github/workflows/ci.yml, the jsonschema job's issue-form validation (lines ~118–129) has two related redundancies:

  1. Two separate invocations of the same pinned action — "Validate issue forms" and "Validate issue-template chooser config" both call check-jsonschema, differing only in builtin-schema and files. They may be collapsible depending on whether the action accepts multiple schema/file pairings.

  2. The file list restates a glob. The files: >- folded list enumerates:

    .github/ISSUE_TEMPLATE/bug-report.yml
    .github/ISSUE_TEMPLATE/feature-request.yml
    .github/ISSUE_TEMPLATE/task.yml
    

    which is exactly .github/ISSUE_TEMPLATE/*.yml minus config.yml. A new issue form added tomorrow would be silently unvalidated until someone remembers to add it here — the failure mode is a missing check, which is invisible.

Note

The two schemas are genuinely different (vendor.github-issue-forms vs vendor.github-issue-config), so if the action takes only one schema per invocation, item 1 is not actionable and only item 2 stands.

Related

#57 is the same shape of problem in the ci-status job — a restated list that should be derived. Worth solving both with one convention.

Scope

Small.

Provenance

Surfaced as a deferred item by an automated repository-wide simplification sweep (/code-tidying:batch-simplify repo docs). .github/workflows/** is excluded from automated edits as enforcement configuration, so this is filed rather than fixed.

Activity

  1. added
    needs-triage
    on Aug 23, 2026
  2. added theissue type on Aug 23, 2026
  3. self-assigned this
    on Aug 23, 2026
  4. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  5. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage notes

    Verified. Read .github/workflows/ci.yml's jsonschema job directly: the "Validate issue forms" step's files: list is exactly .github/ISSUE_TEMPLATE/*.yml minus config.yml, confirming the report.

    Item 1 (collapsing the two invocations) is not actionable. Read the check-jsonschema composite action's contract in melodic-software/ci-workflows (.github/actions/check-jsonschema/action.yml): "One invocation = one schema source + one-or-more files; call once per schema group." builtin-schema and schemafile are documented mutually exclusive, and the two steps use different builtin schemas (vendor.github-issue-forms vs vendor.github-issue-config). Per the issue's own stated caveat, this confirms only item 2 (deriving the file list) is in scope.

    Redundancy check: no existing mechanism in this repo derives the issue-template file list; the enumeration is hand-maintained only in this one workflow step.

    Cluster check: #57 (same shape of problem, ci-status job's results: list) is already closed — no open decision to share. #69 (issue-template wording) and #68 (contact-address doc) touch adjacent files but a different concern (field content/docs, not this CI validation mechanism) — no shared decision, not clustered.

    No open design decision blocks this — briefing as delegable.

    Agent Brief

    Type: Task
    Summary: Derive the issue-forms validation step's target file list in the jsonschema CI lane from the actual issue-template files present, instead of hand-enumerating them.

    Current behavior:
    The jsonschema job's "Validate issue forms" step passes a hardcoded, hand-maintained list of issue-template file paths to the schema-validation action. Keeping the list correct requires remembering to edit this step whenever an issue-template file is added, renamed, or removed; a missed edit leaves the new file unvalidated while CI stays green — a silent gap, not a failure.

    Separately, "Validate issue forms" and "Validate issue-template chooser config" are two invocations of the same reusable schema-validation composite action against two different builtin schemas. That composite action's own contract is one schema source plus one-or-more files per invocation — schemas cannot be combined into a single call. Collapsing the two invocations is not achievable under the action's current contract and is explicitly out of scope for this brief. Only the file-list restatement is being addressed.

    Desired behavior:
    The issue-forms validation step's target file list is computed from the actual contents of the issue-template directory at CI run time — every issue-template file except the chooser config file — rather than hand-enumerated. Adding a new issue-template file requires no corresponding edit to this workflow for the new file to be picked up by this validation step. The chooser config file continues to be excluded from this step (it is validated separately, against a different schema, by the adjacent step) and that adjacent step's behavior is unchanged.

    Acceptance criteria:

    • The issue-forms validation step's file list is derived from the issue-template directory's actual contents at run time, not a hand-maintained enumeration.
    • A CI run on the PR shows the jsonschema job green, with the issue-forms step still validating every existing issue-template file except the chooser config.
    • Adding a placeholder issue-template file (temporarily, e.g. in a scratch verification run — not merged) demonstrates the step picks it up automatically, with no workflow edit required, proving the list is genuinely derived rather than a differently-shaped hardcoded list.
    • The chooser config file is still validated by its own separate step, unaffected by this change.

    Out of scope:

    • Collapsing the two check-jsonschema invocations into one — ruled out by the action's own one-schema-per-invocation contract; do not attempt it.
    • Any change to the melodic-software/ci-workflows repository or its reusable actions — this fix stays local to the calling workflow.
    • The unrelated results: list-restatement pattern in the same file's ci-status job (already tracked and resolved separately in ci: derive the ci-status lane list instead of restating it in results: #57).
  6. added
    status: ready
    agent-ready
    and removed
    needs-triage
    on Aug 23, 2026
  7. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI in the autonomous worker lane.

    Lease takeover. The prior lease on this item was held by MELO-LAP-001-triage-202608230449 and has expired — it was acquired and last renewed at the timestamp in that lease comment, with a 1-hour TTL, and was never renewed or released.

    Taking it over as melo-lap-001-worker-202608230449 to carry the item to a review-ready pull request.

    For the record, this is a lane-protocol observation rather than a collision: the triage lane takes a lease while triaging and does not release it when it flips an item to agent-ready, so every handed-off item is unavailable to the worker lane until its lease lapses about an hour later. Releasing the lease as part of the agent-ready flip would remove the delay entirely.

  8. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  9. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    Review-ready PR opened: #96 (branch ci/derive-issue-form-file-list-70) — roster derived at run time, item 1 confirmed not actionable per the brief.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readystatus: ready

Type

Fields

No fields configured for Task.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions