Skip to content

Delete the pull-request concurrency text test - #737

Merged
leynos merged 4 commits into
mainfrom
drop-concurrency-text-test
Nov 24, 2026
Merged

leynos merged 4 commits into
mainfrom
drop-concurrency-text-test

Conversation

@leynos

@leynos leynos commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

The workflows already carry the reference block from leynos/mdtablefix#526 (with the github.run_id fallback). This deletes the contract that pins the block's text (test_pull_request_concurrency.py) and the developers' guide paragraph describing it, per the standing ruling that tests pinning workflow text are not wanted. The estate rule (leynos/concordat#388) is the contract.

Part of the estate sweep. make check-fmt and make test-workflow-contracts (289 passed) are green locally.

Summary by Sourcery

Remove the pull-request concurrency text contract and reorganize test-server launch handling.

Enhancements:

  • Extract server process launching into a dedicated module while preserving ephemeral-port allocation, readiness checks, cleanup, and retry behavior.

Documentation:

  • Remove the developers-guide description of the pull-request concurrency text contract.

Tests:

  • Delete the workflow contract test that pinned pull-request concurrency block text.

Chores:

  • Update the Cargo lockfile.

The workflows already carry the reference cancellation block. Delete the
contract that pins the block's text and the developers' guide paragraph
describing it, per the 17:52Z lead ruling that tests pinning workflow text
are not wanted.
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

This PR deletes tests/workflow_contracts/test_pull_request_concurrency.py and its paragraph in docs/developers-guide.md. The removed test checked the exact text of the pull-request concurrency block in workflows. The author states that the workflows already use the reference block from mdtablefix PR #526, including the github.run_id fallback. The estate rule in concordat issue #388 becomes the intended contract. Diff: 2 files, +0/−221 lines.

Walkthrough

The pull-request workflow concurrency contract test module and the developer-guide paragraph describing its checks are removed. No workflow files are changed.

Changes

Workflow contract removal

Layer / File(s) Summary
Remove concurrency contract checks
tests/workflow_contracts/test_pull_request_concurrency.py, docs/developers-guide.md
The test module that discovered pull_request workflows and checked their concurrency settings is deleted. The guide paragraph describing these checks is removed.

Possibly related PRs

  • leynos/rstest-bdd#970: Removes a similar pull-request concurrency contract test and its guide entry in another repository.
  • leynos/corbusier#292: Removes the corresponding workflow text-pinning test and guide section in another repository.
  • leynos/concordat#389: Adds pull-request run-cancellation rules that the PR context identifies as a replacement contract.

Suggested labels: Issue

Suggested reviewers: codescene-access

Change: Other

Merge Risk: Minimal · previous review 7d3a0

This PR removes a workflow-text-pinning test and its matching documentation paragraph. It changes no runtime behavior or workflows, and no actionable merge-blocking risk remains.

Pre-merge checks: Passed 14

Check name Status Explanation
Title check Passed The title states that the pull-request concurrency text test is deleted. The changeset deletes tests/workflow_contracts/test_pull_request_concurrency.py and removes its paragraph from the developers' …
Description check Passed The description states that the workflows already carry the reference block, and that the change deletes the contract pinning that block's text and the guide paragraph describing it. It also cites the…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Testing (Overall) Passed The check applies to new functionality or behavioural changes and requires tests to guard them. This pull request adds no functionality and changes no behaviour. The reviewed range (refs/coderabbit/pr…
User-Facing Documentation Passed The check is not applicable. The changed-file inventory for refs/coderabbit/pre-merge-check/base...head has two entries: - docs/developers-guide.md (modified): removes an 8-line paragraph describing…
Developer Documentation Passed The check applies to new or changed internal APIs, architectural boundaries, tooling or build requirements, and to completed roadmap items, execplans and ADRs. This pull request does not introduce any…
Module-Level Documentation Passed The check is PASS because this pull request adds no Python module that could lack a docstring. The changed-file inventory from `git diff --name-status refs/coderabbit/pre-merge-check/base refs/coderab…
Testing (Unit And Behavioural) Passed The check applies to changes that add or alter behaviour and their tests. This pull request (leynos/mxd #737, author leynos) changes only two files: it deletes `tests/workflow_contracts/test_pull_requ…
Testing (Property / Proof) Passed The check is not applicable to this pull request. The check asks for property-based or bounded proof testing when a change introduces an invariant over a range of inputs, states, orderings or transiti…
Testing (Compile-Time / Ui) Passed The check is not triggered by this pull request. The committed diff changes two files: docs/developers-guide.md (modified) and tests/workflow_contracts/test_pull_request_concurrency.py (deleted, 2…
Unit Architecture Passed The Unit Architecture check applies to code structure: query/command separation, injectable dependencies, composability, single responsibility, and test boundaries. This pull request does not add or c…
Domain Architecture Passed The check is not applicable to this pull request. The changed-file inventory (git diff --name-status between the review base and head) lists only two files: - docs/developers-guide.md (modified): …
Observability Passed The check is not applicable. The reviewed range changes only two files: docs/developers-guide.md (8 lines removed) and tests/workflow_contracts/test_pull_request_concurrency.py (213 lines removed)…
Full details: Title check

Explanation

The title states that the pull-request concurrency text test is deleted. The changeset deletes tests/workflow_contracts/test_pull_request_concurrency.py and removes its paragraph from the developers' guide, so the title matches the main change. It does not reference a roadmap item or issue number, and the title requirements do not call for one here, since the description links to an issue only as the rule source rather than as the issue being fixed.

Full details: Description check

Explanation

The description states that the workflows already carry the reference block, and that the change deletes the contract pinning that block's text and the guide paragraph describing it. It also cites the estate rule and reports local check results. This matches the changeset, which removes the test module and the guide paragraph.

Full details: Testing (Overall)

Explanation

The check applies to new functionality or behavioural changes and requires tests to guard them. This pull request adds no functionality and changes no behaviour. The reviewed range (refs/coderabbit/pre-merge-check/base to head) contains two changes only: - tests/workflow_contracts/test_pull_request_concurrency.py is deleted (213 lines). - docs/developers-guide.md loses the 8-line paragraph that described that test (lines around 1774). No workflow, source or configuration file changes. The concurrency block in the workflows is therefore unchanged. Removing the test reduces the test coverage of that text. The check does not require tests for removed tests, and it does not treat the removal as a behavioural change, so no failure condition applies.

Full details: User-Facing Documentation

Explanation

The check is not applicable. The changed-file inventory for refs/coderabbit/pre-merge-check/base...head has two entries: - docs/developers-guide.md (modified): removes an 8-line paragraph describing tests/workflow_contracts/test_pull_request_concurrency.py. This is developer documentation, not docs/users-guide.md. - tests/workflow_contracts/test_pull_request_concurrency.py (deleted): a test module that pinned workflow text. The PR adds or changes no user-facing functionality or behaviour. It therefore introduces no documentation obligation under the user's guide, migration document or README rules. The PR is authored by leynos (provider-reported primary author); author identity does not affect this check.

Full details: Developer Documentation

Explanation

The check applies to new or changed internal APIs, architectural boundaries, tooling or build requirements, and to completed roadmap items, execplans and ADRs. This pull request does not introduce any of these. The changed-file inventory has two entries: - tests/workflow_contracts/test_pull_request_concurrency.py is deleted. This removes a test. It adds no API, boundary, or build requirement. - docs/developers-guide.md loses an 8-line paragraph (+0/-8). The paragraph described the deleted test and its assertions. Removing the paragraph keeps the guide in line with the code. A repository-wide search finds no remaining references to test_pull_request_concurrency or pull_request_concurrency in docs/. The workflows keep the concurrency block that the deleted test pinned, so no new workflow or build requirement needs documenting. No roadmap item, execplan or ADR is affected by the diff. The developer's guide is therefore accurate after the change.

Full details: Module-Level Documentation

Explanation

The check is PASS because this pull request adds no Python module that could lack a docstring. The changed-file inventory from git diff --name-status refs/coderabbit/pre-merge-check/base refs/coderabbit/pre-merge-check/head contains two entries: - M docs/developers-guide.md: a Markdown document, not a module. The author removes an 8-line paragraph. - D tests/workflow_contracts/test_pull_request_concurrency.py: a deleted Python module. Deleting a module leaves no module without a docstring. No file is added or modified as a Python module, so the module-level documentation requirement does not apply to any changed module. Any missing docstrings in the remaining tests/workflow_contracts modules predate this pull request and fall outside its changes.

Resolution

None required.

Full details: Testing (Unit And Behavioural)

Explanation

The check applies to changes that add or alter behaviour and their tests. This pull request (leynos/mxd #737, author leynos) changes only two files: it deletes tests/workflow_contracts/test_pull_request_concurrency.py (213 lines) and removes an 8-line paragraph from docs/developers-guide.md. The diff contains no production code and no workflow file changes, so no new behaviour enters the codebase without tests. The check's failure conditions do not cover removing a test that pins workflow text. The author reports make check-fmt and make test-workflow-contracts (289 passed) as green. Advisory note: the deleted test was the only automated guard on the pull_request concurrency block. Before merge, confirm that the estate rule in concordat issue #388 and the workflows' reference block stay correct without it. This does not affect the verdict.

Full details: Testing (Property / Proof)

Explanation

The check is not applicable to this pull request. The check asks for property-based or bounded proof testing when a change introduces an invariant over a range of inputs, states, orderings or transitions, or introduces a lemma or proof assumption. This pull request adds no invariant, lemma or proof assumption. The diff is deletion-only (refs/coderabbit/pre-merge-check/base to head): - docs/developers-guide.md: M, +0/-8. It removes the paragraph that describes test_pull_request_concurrency.py. - tests/workflow_contracts/test_pull_request_concurrency.py: D, +0/-213. It removes a test module that pinned the text of the pull-request concurrency block. A check over the added lines returned no additions. The removed test checked fixed workflow text, not a property over generated inputs. Removing it does not create a new testing gap that a property test or proof would close. The author states that the workflows already carry the reference block, and that the estate rule in concordat issue #388 is the contract. That rationale is outside this check's scope.

Full details: Testing (Compile-Time / Ui)

Explanation

The check is not triggered by this pull request. The committed diff changes two files: docs/developers-guide.md (modified) and tests/workflow_contracts/test_pull_request_concurrency.py (deleted, 213 lines). The diff adds no compile-time behaviour, so the trybuild requirement does not apply. The deleted module is a pytest contract that checks YAML concurrency values by whole-value equality. It is not a snapshot test and it does not produce UI output. The snapshot guidance in the check is a recommendation ("should be recommended where appropriate"), not an explicit failure condition. Removing this test therefore does not introduce a violation of the stated criteria. The PR description reports make test-workflow-contracts passing (289 tests), but that run is not needed to decide this check.

Resolution

None required for this check.

Full details: Unit Architecture

Explanation

The Unit Architecture check applies to code structure: query/command separation, injectable dependencies, composability, single responsibility, and test boundaries. This pull request does not add or change any code unit. The diff, checked with git diff --name-status against the review base, has two entries: - M docs/developers-guide.md: removes 8 lines, the paragraph that describes test_pull_request_concurrency.py. - D tests/workflow_contracts/test_pull_request_concurrency.py: removes 213 lines, a workflow-text contract test. The deleted test checks workflow YAML text (trigger discovery and concurrency-block shape). It does not define production units, so the check's failure conditions do not apply to it. No query path gains a write, network call, clock dependency, or hidden dependency. No command path changes. No fallible operation loses explicit handling. The check asks reviewers to challenge changes that make responsibilities or fallibility less visible. This deletion removes a workflow-text assertion. It does not move any code responsibility or hide any fallible work. The author states that the workflows carry the reference block. That is a policy and test-coverage question, not an architecture defect under this check. Verdict: PASS. The check is inapplicable to this change, and no stated failure condition is introduced.

Full details: Domain Architecture

Explanation

The check is not applicable to this pull request. The changed-file inventory (git diff --name-status between the review base and head) lists only two files: - docs/developers-guide.md (modified): removes the paragraph that describes the pull-request concurrency test. - tests/workflow_contracts/test_pull_request_concurrency.py (deleted): removes a test that pins the text of the workflow concurrency block. Neither file contains domain logic, adapters, repositories, commands, or domain errors. The change does not add, move, or alter any coupling between a domain model and infrastructure. The Domain Architecture criteria therefore do not reach this change, and no failure condition is introduced.

Full details: Observability

Explanation

The check is not applicable. The reviewed range changes only two files: docs/developers-guide.md (8 lines removed) and tests/workflow_contracts/test_pull_request_concurrency.py (213 lines removed). Neither file alters operational behaviour. The deleted test pinned the text of GitHub Actions concurrency blocks in CI configuration. It did not run in production. No workflow file, application code, logging, metrics, tracing or alert changed, so no new failure mode is introduced. The observability criteria do not apply. Evidence: git diff --name-status over refs/coderabbit/pre-merge-check/base..head lists M docs/developers-guide.md and D tests/workflow_contracts/test_pull_request_concurrency.py. The PR author is leynos, as provider-reported.

A workflow test is now at rest
Its guide-side paragraph left the page
No workflow files changed in this exchange
The removed checks leave no new trace
The diff closes its quiet stage

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: 85e86717-e23c-4a29-9c80-8196275abd4a
Commits

Reviewing files that changed from the base of the PR and between 100bdb3 and 7d3a075.

Files selected for processing: 2

  • docs/developers-guide.md
  • tests/workflow_contracts/test_pull_request_concurrency.py
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Files with no reviewable changes: 2

  • docs/developers-guide.md
  • tests/workflow_contracts/test_pull_request_concurrency.py

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T03:32:48.494372Z 7d3a075 PR opened
🔒 Security Review ✅ Completed 2026-11-24T03:34:13.656773Z 7d3a075 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

codescene-access[bot]

This comment was marked as outdated.

@coderabbitai coderabbitai Bot added the Issue label Nov 24, 2026
The advisory predates this change and fails the dependency audit on every
pull request.
codescene-access[bot]

This comment was marked as outdated.

@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Sorry @leynos, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 2 days and 19 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer's Guide

Implementation

Extract server launch handling into helpers and a dedicated module while preserving readiness retries and failure cleanup.

  • test-util/src/server/launch.rs L1-135
  • test-util/src/server/mod.rs L8-148 (6 small edits)

Documentation

Remove the developers’ guide paragraph describing the deleted pull-request concurrency text contract.

  • docs/developers-guide.md L1777 (removed lines)

Tests

Delete the test that pinned the text of pull-request workflow concurrency blocks.

  • tests/workflow_contracts/test_pull_request_concurrency.py (deleted)

Lock files and vendored code

Update the lockfile metadata for the dependency bump.

  • Cargo.lock L1330-1332, L5170-5172

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

The rolling Whitaker suite flags the nested conditional logic in
launch_server_process (bumpy_road_function). Split the readiness mapping, port
reservation, spawn, readiness wait and cleanup into helpers with declared
outcomes; the retry behaviour is unchanged: a failure to bind or spawn is
returned at once and only an unready server is retried.
codescene-access[bot]

This comment was marked as outdated.

test-util's server module exceeded the 400-line module limit after the
launch_server_process split; the launch helpers now live in server/launch.rs.

@codescene-access codescene-access Bot 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.

Gates Passed
6 Quality Gates Passed

See analysis details in CodeScene

Quality Gate Profile: Pay Down Tech Debt
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.

@leynos
leynos merged commit 7dd7631 into main Nov 24, 2026
21 checks passed
@leynos
leynos deleted the drop-concurrency-text-test branch November 24, 2026 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant