Skip to content

test: delete three tests a sibling already covers - #1876

Merged
mergify[bot] merged 1 commit into
mainfrom
devs/jd/jd/mrgfy-10043-delete-tautological-tests/delete-three-tests-sibling-already-covers--e703b6e2
Oct 5, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
devs/jd/jd/mrgfy-10043-delete-tautological-tests/delete-three-tests-sibling-already-covers--e703b6e2

Conversation

@jd

@jd jd commented Oct 5, 2026

Copy link
Copy Markdown
Member

An audit of every test suite for tautological tests (MRGFY-10043) found
three tests here that cannot catch a defect the rest of the suite
misses:

  • recover_pending_rejects_plain_reason never reaches recover_pending's
    own logic, since plain text is rejected by parse() first.
    parse_plain_reason_returns_none covers that, and
    recover_pending_rejects_mismatched_last_entry covers the filter.
  • detect_local_timezone_returns_a_value exercises iana-time-zone and the
    host environment through a one-line wrapper. It fails only if the
    wrapper always errors.
  • skill_content_is_readable is strictly subsumed by
    skill_has_valid_frontmatter, which reads the same file and also needs
    its frontmatter.

Delete them.

Related to MRGFY-10043

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

An audit of every test suite for tautological tests (MRGFY-10043) found
three tests here that cannot catch a defect the rest of the suite
misses:

- recover_pending_rejects_plain_reason never reaches recover_pending's
  own logic, since plain text is rejected by parse() first.
  parse_plain_reason_returns_none covers that, and
  recover_pending_rejects_mismatched_last_entry covers the filter.
- detect_local_timezone_returns_a_value exercises iana-time-zone and the
  host environment through a one-line wrapper. It fails only if the
  wrapper always errors.
- skill_content_is_readable is strictly subsumed by
  skill_has_valid_frontmatter, which reads the same file and also needs
  its frontmatter.

Delete them.

Related to MRGFY-10043

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: Ie703b6e2f3da9b26092e71fca350d031f5331fd9
Copilot AI balanced review requested due to automatic review settings October 5, 2026 07:31
@mergify
mergify Bot deployed to Mergify Merge Protections October 5, 2026 07:31 Active
@jd
jd deployed to func-tests-live October 5, 2026 07:31 — with GitHub Actions Active
@mergify

mergify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 6 merge protections satisfied — ready to merge.

Show 6 satisfied protections

🟢 🤖 Continuous Integration

  • all of:
    • check-success=ci-gate

🟢 👀 Review Requirements

  • any of:
    • #approved-reviews-by>=2
    • author = dependabot[bot]
    • author = mergify-ci-bot
    • author = renovate[bot]

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:

🟢 🔎 Reviews

  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

The timezone test has no sibling coverage and its removal leaves the default-timezone path untested.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Removes three tests identified as redundant or low-value.

Changes:

  • Removes redundant revision-note and skill readability tests.
  • Removes the only test covering local timezone detection.
File Description
crates/​mergify-stack/​src/​revision_note.rs Removes a parse-path duplicate test.
crates/​mergify-freeze/​src/​common.rs Removes timezone detection coverage.
crates/​mergify-cli/​tests/​skill_references.rs Removes a test subsumed by frontmatter validation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread crates/mergify-freeze/src/common.rs
@mergify
mergify Bot requested a review from a team October 5, 2026 07:39
@jd
jd marked this pull request as ready for review October 5, 2026 08:14
@mergify
mergify Bot requested a review from a team October 5, 2026 12:32
@mergify

mergify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 6 minutes 24 seconds in the queue, including 6 minutes 3 seconds running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Oct 5, 2026
@mergify mergify Bot mentioned this pull request Oct 5, 2026
34 of 40 tasks
@mergify
mergify Bot merged commit f97f630 into main Oct 5, 2026
24 checks passed
@mergify
mergify Bot deleted the devs/jd/jd/mrgfy-10043-delete-tautological-tests/delete-three-tests-sibling-already-covers--e703b6e2 branch October 5, 2026 12:39
@mergify mergify Bot removed the queued label Oct 5, 2026

This branch was successfully deployed

2 active deployments
func-tests-live — c32b688e Deployed Oct 5, 2026 by jd via live-tests #1966
Mergify Merge Protections — c32b688e Deployed Oct 5, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants