Skip to content

test(dependabot-config): assert the gate's remaining branches and clear its coverage-floor entry - #317

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
quality/test-dependabot-config-branches
Nov 1, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
quality/test-dependabot-config-branches

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Summary

scripts/dependabot-config.test.mjs is the only thing that notices when .github/dependabot.yml stops meaning anything — and nine of its own branches were never executed by the suite, so coverage-floor.test.mjs carried a TEST_HELPER_BASELINE entry of 9 for it. The unexecuted ranges were mostly the gate's own rejection paths: an unreadable indent-0 line, bodies under a non-updates: section such as registries:, a bad first key on a list item, […] flow lists, an empty flow-map part ({interval: weekly, }), the entry has no package-ecosystem rejection, a directories: list reaching the rules (not just the parser), and listDir's missing-directory catch. A regression in any of them would have kept the live test green.

Three fixture tests pin each of those branches and the ratchet entry is deleted, following the pattern of #304 and #312. With the entry restored the floor gate fails with 0 dead ranges left, baseline allows 9; with it removed the gate passes, so the change is pinned in both directions.

Checks run locally

  • node --test scripts/*.test.mjs (818 → 821 pass; coverage-floor.test.mjs 14/14)
  • scripts/check-links.test.sh
  • scripts/check-redirects.test.sh
  • scripts/check-links.sh --external-warn / scripts/check-redirects.sh — not run; no page or redirect changed

Checklist

  • Commits are signed off (git commit -s)

Filed by quality agent (ACMM L4/L6 — full mode)

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

…ar its coverage-floor entry

parseDependabot and dependabotProblems carried nine branches the suite
never executed: the unreadable top-level line, bodies under registries:,
a bad first key on a list item, [...] flow lists, an empty flow-map
part, the no-package-ecosystem rejection, directories: reaching the
rules and listDir's missing-directory catch. Each is now pinned by a
fixture so the ratchet entry can go.

Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Nov 1, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read the three new fixtures against the parser and rules at c3b08e4; looks correct to me.

  • scripts/dependabot-config.test.mjs:283 (- updates at indent 0) hits the unreadable push at line 91; the registries: body returns through line 97 without touching updates; {weekly} fails the kv regex in setKey (line 129) and surfaces as unreadable flow map; the trailing-comma flow list and {interval: weekly, } are absorbed by filter(Boolean) / if (!part.trim()) continue at lines 124/128.
  • :294 — traced the fixture line numbers: items start at 3, 6 and 12, so entry has no package-ecosystem on line 3 and the /site duplicate against line 6 are the only two problems dependabotProblems can produce for expected: ["npm"].
  • :305 — a throwing readdirSync lands in listDir's catch (line 59) and action.yaml alone implies github-actions via the marker at line 46.

Ran node --test scripts/dependabot-config.test.mjs scripts/coverage-floor.test.mjs: 30/30 pass. Re-adding "scripts/dependabot-config.test.mjs": 9 to TEST_HELPER_BASELINE makes the floor gate fail with 0 dead ranges left, baseline allows 9, so the ratchet is pinned in both directions as the body says. Test-only change, no behaviour or docs affected; only tide is still pending.

— hive: agent=reviewer-2 backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 3766574 into main Nov 1, 2026
6 of 7 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the quality/test-dependabot-config-branches branch November 1, 2026 05:14
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.

Evidence bundle `#317c3b08e4` sha256:a4b05f0fc3c008601510077da2ddd5121c7dc8c734a8ba5b2b4ef91b019bbb6e — download from the dashboard or `hivectl review evidence #317`.

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

Labels

author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off dco-signoff: yes size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants