Skip to content

docs(live-tests): drop the mirror claims for deleted Python files - #1799

Open
jd wants to merge 1 commit into
devs/jd/fix/live-tests-tests-show-admin-token/move-tests-show-onto-admin-token--4e4c3e30from
devs/jd/fix/live-tests-tests-show-admin-token/drop-mirror-claims-deleted-python-files--dd9e1e28
Open

docs(live-tests): drop the mirror claims for deleted Python files#1799
jd wants to merge 1 commit into
devs/jd/fix/live-tests-tests-show-admin-token/move-tests-show-onto-admin-token--4e4c3e30from
devs/jd/fix/live-tests-tests-show-admin-token/drop-mirror-claims-deleted-python-files--dd9e1e28

Conversation

@jd

@jd jd commented Sep 4, 2026

Copy link
Copy Markdown
Member

The module header promised this file "deliberately mirrors the
Python version 1:1 ... so the port can't drift the contract by
accident", and named func-tests/test_live_smoke.py and
func-tests/conftest.py as what it mirrors. Both were deleted when
the port completed. Four helpers made the same promise individually
(Mirrors conftest.py::cli, Mirrors Python subprocess.run,
Matches Python result.stdout + result.stderr, and live_token's
"Mirrors Python live_token fixture").

AGENTS.md: "There is no Python: the port is complete ... If you
find a doc, comment, or rule mentioning [it], it is stale — fix
it." The harm is concrete rather than cosmetic: a maintainer
auditing which secret each test needs goes looking for the fixture
the header says pins that mapping, and there isn't one.

The header now states the invariant that actually holds — tests are
grouped by credential under a banner, and a test belongs under the
banner matching its helper — which is the thing a reader needs and
the thing the previous commit had to correct. It also spells
LIVE_TEST_MERGIFY_TOKEN_ADMIN out rather than abbreviating it to
_ADMIN, so grepping for either secret finds this file.

Left alone: the in-body notes recording which wire contracts were
preserved across the Python → Rust port. Those are provenance for
why a contract is shaped the way it is, not claims about a file
that no longer exists.

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01JBz3hxMUDCuWftT6qAHtnn

@jd

jd commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 fix(live-tests): move tests show onto the admin token #1798
2 docs(live-tests): drop the mirror claims for deleted Python files #1799 👈
3 test(live): cover the quarantine add/remove round-trip #1801

@mergify
mergify Bot had a problem deploying to Mergify Merge Protections September 4, 2026 14:39 Failure
@jd
jd deployed to func-tests-live September 4, 2026 14:39 — with GitHub Actions Active
@mergify

mergify Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 3 of 7 protections blocking · waiting on 👀 reviews and ⛓️ dependency

Protection Waiting on
🔴 ⛓️ Depends-On Requirements ⛓️ dependency
🔴 👀 Review Requirements 👀 reviews
🔴 🔎 Reviews 👀 reviews
🟢 🤖 Continuous Integration
🟢 Enforce conventional commit
🟢 📕 PR description
🟢 🚦 Auto-queue

🔴 ⛓️ Depends-On Requirements

Waiting for

This rule is failing.

Requirement based on the presence of Depends-On in the body of the pull request

🔴 👀 Review Requirements

Waiting for

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

🔴 🔎 Reviews

Waiting for

  • #review-requested = 0
This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

Show 4 satisfied protections

🟢 🤖 Continuous Integration

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

🟢 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)(?:\(.+\))?!?:

🟢 📕 PR description

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

🟢 🚦 Auto-queue

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

@mergify
mergify Bot requested a review from a team September 4, 2026 14:46
@jd
jd marked this pull request as ready for review September 4, 2026 15:21
Copilot AI lite review requested due to automatic review settings September 4, 2026 15:21

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.

🟢 Approval recommended

The change is documentation-only and the remaining feedback is limited to minor clarity/wording nits.

Pull request overview

Removes stale “mirrors the Python version” claims from the live smoke test module header and helper docs now that the Rust port is complete, while preserving useful provenance notes about wire-contract decisions.

Changes:

  • Updates the module-level docs in live_smoke.rs to remove references to deleted Python files/fixtures.
  • Rewords several helper doc comments to avoid implying a 1:1 Python mirror and instead document the current invariants (credential grouping).
File summaries
File Description
crates/mergify-cli/tests/live_smoke.rs Refreshes documentation to remove stale Python-mirroring assertions and clarify the current test grouping invariants.
Review details

Suppressed comments (2)

crates/mergify-cli/tests/live_smoke.rs:89

  • The doc comment uses a trailing semicolon and a lowercase continuation line, which reads like a sentence fragment. Consider making these two standalone sentences for clarity.
/// Closes stdin so an accidental interactive prompt fails fast
/// instead of blocking;
/// caps wall-clock at [`CLI_TIMEOUT`] so a pathological hang
/// doesn't drag the CI matrix down with it.

crates/mergify-cli/tests/live_smoke.rs:192

  • "the key scoped to what a CI job does" is a bit unclear; this comment can be tighter and consistent with the later "CI-scoped" wording.
/// Look up `LIVE_TEST_MERGIFY_TOKEN_CI`, the key scoped to what a
/// CI job does. Empty / unset = skip the test (early return with
/// `SKIP:` printed to stderr so the cargo test log shows what was
/// skipped).
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

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

Comment thread crates/mergify-cli/tests/live_smoke.rs Outdated
The module header promised this file "deliberately mirrors the
Python version 1:1 ... so the port can't drift the contract by
accident", and named `func-tests/test_live_smoke.py` and
`func-tests/conftest.py` as what it mirrors. Both were deleted when
the port completed. Four helpers made the same promise individually
(`Mirrors conftest.py::cli`, `Mirrors Python subprocess.run`,
`Matches Python result.stdout + result.stderr`, and `live_token`'s
"Mirrors Python `live_token` fixture").

AGENTS.md: "There is no Python: the port is complete ... If you
find a doc, comment, or rule mentioning [it], it is stale — fix
it." The harm is concrete rather than cosmetic: a maintainer
auditing which secret each test needs goes looking for the fixture
the header says pins that mapping, and there isn't one.

The header now states the invariant that actually holds — tests are
grouped by credential under a banner, and a test belongs under the
banner matching its helper — which is the thing a reader needs and
the thing the previous commit had to correct. It also spells
`LIVE_TEST_MERGIFY_TOKEN_ADMIN` out rather than abbreviating it to
`_ADMIN`, so grepping for either secret finds this file.

Left alone: the in-body notes recording which wire contracts were
preserved across the Python → Rust port. Those are provenance for
why a contract is shaped the way it is, not claims about a file
that no longer exists.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JBz3hxMUDCuWftT6qAHtnn

Change-Id: Idd9e1e28bfc50b8b71d07c5938b4fa89af2745ff
@jd
jd force-pushed the devs/jd/fix/live-tests-tests-show-admin-token/drop-mirror-claims-deleted-python-files--dd9e1e28 branch from 5524182 to 9b118fc Compare September 4, 2026 15:38
@jd

jd commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

Revision history

# Type Changes Reason Date
1 initial 5524182 2026-09-04 15:38 UTC
2 content 5524182 → 9b118fc review (copilot): spell LIVE_TEST_MERGIFY_TOKEN_ADMIN out in the header instead of abbreviating to _ADMIN, so a grep for either secret finds this file; and finish the sentence the removed 'Mirror… 2026-09-04 15:38 UTC

@jd
jd deployed to func-tests-live September 4, 2026 15:38 — with GitHub Actions Active
@mergify
mergify Bot had a problem deploying to Mergify Merge Protections September 4, 2026 15:38 Failure
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.

2 participants