Skip to content

sync-org-labels fails every run since v4.33.0: release: deps-only description exceeds GitHub's 100-character limit #402

Closed

Description

@Shinrai

Summary

Every org label sync since 2026-10-12 has failed. The last run ended with Changed: 0, Clean: 0, Skipped: 102, Errors: 214: every active repo in the org counts as errored, and none come out clean.

Cause

data/github-labels.json gained release: deps-only in v4.33.0 (0f1667d, from #370). Its description is 124 characters:

Release PR whose pending range only touches devDependencies, lockfiles and CI configuration — held, not offered as a release

GitHub rejects label descriptions over 100 characters (HTTP 422). Pass 2 of .github/actions/github/jobs/sync-org-labels/sync.mjs tries to create the label in every repo, every create fails, and one failed write marks the whole repo as errored, so the job exits 1. It is the only catalog entry that breaks a GitHub label limit (names up to 50 characters, colours as 6 hex digits, descriptions up to 100 characters); all 56 entries were checked.

The first red run was the first one after v4.33.0 shipped; the run a week earlier was green.

Impact

Why it went unnoticed

syncRepo() collects per-repo errors into report.errors and writes them only to $GITHUB_STEP_SUMMARY. The job log shows only Processing: <repo> lines and the final totals, so the 422 is invisible unless someone opens the summary page.

Fix

  1. Shorten the description to 100 characters or fewer, e.g. Release PR with only devDependency, lockfile or CI changes — held, not offered as a release (90).
  2. Log each error to the console (console.error) as well as the step summary, so a red run explains itself.
  3. Check the catalog before touching any repo: fail fast, once, with a clear message, if any entry breaks a GitHub label limit (name length, 6-hex colour, description length, duplicate name or alias across entries).
  4. Optionally, add the same check as a test or CI lint on data/github-labels.json, so a bad entry can't reach @v4.

Activity

  1. added
    type: bug
    priority: medium
    type: ci
    status: not started
    status: in progress
    and removed
    status: not started
    on Oct 31, 2026
  2. Shinrai commented on Nov 1, 2026

    @Shinrai
    ContributorAuthor

    The shorter description and the console logging already shipped in v4.34.0 via #398. #412 does the rest: the sync now checks the catalog (name/description length, 6-hex colour, a name or alias owned by two labels) and exits before touching any repo. data/github-labels.test.mjs uses the same validator.

  3. added
    status: implemented
    and removed
    status: in progress
    on Nov 1, 2026
  4. cldmv-bot commented on Nov 1, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #412, merged into next. This issue closes automatically when that work ships to the default branch.

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

    priority: mediumstatus: implementedtype: bugtype: ci

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions