Skip to content

docs: add deprecation workarounds documentation for allow_inplace_checks #7215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Syffe
Copy link
Contributor

@Syffe Syffe commented May 27, 2025

As we're going to deprecate allow_inplace_checks, we need to create a documentation so the users can implement a workaround. The link to this documentation will be inserted in the deprecation notice afterward.

Copy link
Contributor

mergify bot commented May 27, 2025

Merge Protections

Your pull request matches the following merge protections and will not be merged until they are valid.

🔴 👀 Review Requirements

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

🔴 🔎 Reviews

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

🟢 🤖 Continuous Integration

Wonderful, this rule succeeded.
  • all of:
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • -head-repo-full-name~=^Mergifyio/
      • check-success=Cloudflare Pages

🟢 Changelog requirements

Wonderful, this rule succeeded.
  • any of:
    • -title ~= ^feat
    • label = need changelog
    • label = skip changelog

🟢 Enforce conventional commit

Wonderful, this rule succeeded.

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

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

…ecks`

As we're going to deprecate `allow_inplace_checks`, we need to create
a documentation so the users can implement a workaround.
The link to this documentation will be inserted in the deprecation notice afterward.
@Syffe Syffe force-pushed the allow_inplace_depre branch from cede93f to 8b5a390 Compare May 27, 2025 13:31
@mergify mergify bot requested a review from a team May 27, 2025 13:32
Comment on lines +114 to +117
2. If draft PRs are not an issue for you, but you want to preserve you commit history by avoiding merge commit shas,
you can setup your merge queue to use the `fast-forward` mode for the attribute `merge_method`.
This way, the merge queue will keep the linearity of your commit history.
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2. If draft PRs are not an issue for you, but you want to preserve you commit history by avoiding merge commit shas,
you can setup your merge queue to use the `fast-forward` mode for the attribute `merge_method`.
This way, the merge queue will keep the linearity of your commit history.
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details.
2. If draft PRs are not an issue for you, but you want to preserve your the sha used to run CI jobs,
you can setup your merge queue to use the `fast-forward` mode for the attribute `queue_branch_merge_method`.
This way, no untested commit sha will be merged.
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details.

@mergify mergify bot requested a review from a team May 27, 2025 14:43
Comment on lines +119 to +124
3. If draft PRs are not an issue for you, but you want to limit their amount, you can choose to leverage
the `batch_size` and `speculative_checks` attributes in your `queue_rules`.
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details.

For any further questions, feel free to <a href="mailto:[email protected]">Contact our support</a>.

Copy link
Member

Choose a reason for hiding this comment

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

I don't think the amount is a new problem.

Suggested change
3. If draft PRs are not an issue for you, but you want to limit their amount, you can choose to leverage
the `batch_size` and `speculative_checks` attributes in your `queue_rules`.
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details.
For any further questions, feel free to <a href="mailto:[email protected]">Contact our support</a>.
For any further questions, feel free to <a href="mailto:[email protected]">contact our support team</a>.

@mergify mergify bot requested a review from a team May 27, 2025 14:44
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details.

3. If draft PRs are not an issue for you, but you want to limit their amount, you can choose to leverage
the `batch_size` and `speculative_checks` attributes in your `queue_rules`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't mention speculative checks. First, because we should use max_parallel_checks instead of speculative_checks. And parallel checks create more draft PRs. The only option that reduces draft PRs is batch_size.

@mergify mergify bot requested a review from a team May 27, 2025 14:46

Choose a reason for hiding this comment

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

I would suggest a different format, with subtitles instead of numbers and more details/information to help users to understand the change

Suggested change
### `allow_inplace_checks` deprecation notice
/a small note about the motivation of the change/
#### Preserving commit history
Set up your merge queue to use the `fast-forward` mode for the attribute `queue_branch_merge_method`.
This way, no untested commit SHA will be merged.
See the `queue_rules` [documentation](/configuration/file-format/#queue-rules) for more details.
#### Preventing Mergify draft PRs
/a small note to encourage users to adopt the draft PR, finishing by something like "but since we understand that it could be an issue for your workflow, there is an alternative .../
... you can leverage the [Workflow Automation](/workflow/) feature with the [rebase](/workflow/actions/rebase/) and [merge](/workflow/actions/merge/) actions. This way, once a pull request validates your rules, you can directly rebase and merge it.

@mergify mergify bot requested a review from a team June 5, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants