docs(agent): the rust recipe's nextest and cargo2junit commands could never run - #12509
Open
mergify-ci-bot wants to merge 1 commit into
Open
Conversation
Contributor
Merge Protections🔴 1 of 6 protections blocking · waiting on 👀 reviews
🔴 🔎 ReviewsWaiting for
This rule is failing.
Show 5 satisfied protections🟢 🤖 Continuous Integration
🟢 👀 Review Requirements
🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 📕 PR description
🟢 🚦 Auto-queueWhen all merge protections are satisfied, this pull request will be queued automatically. |
Comment on lines
+108
to
+123
| ## Environment Variables | ||
|
|
||
| | Variable | Purpose | Default | | ||
| |----------|---------|---------| | ||
| | `MERGIFY_TOKEN` | API authentication token | **Required** | | ||
| | `MERGIFY_API_URL` | API endpoint location | `https://api.mergify.com` | | ||
| | `PYTEST_MERGIFY_ENABLE` | Force-enable outside CI | `false` | | ||
| | `PYTEST_MERGIFY_DEBUG` | Print spans to console | `false` | | ||
| | `MERGIFY_TRACEPARENT` | W3C distributed trace context | Optional | | ||
| | `MERGIFY_TEST_JOB_NAME` | Test job name identifier | Optional | | ||
|
|
||
| :::tip | ||
| The plugin auto-activates in CI environments (detected via the `CI` | ||
| environment variable). To enable it outside CI, set | ||
| `PYTEST_MERGIFY_ENABLE=true`. | ||
| ::: |
Contributor
There was a problem hiding this comment.
this is now common to each framework, maybe we can make it a part to be sue on each tool page ?
JulianMaurin
approved these changes
Aug 25, 2026
jd
approved these changes
Aug 26, 2026
Contributor
Author
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Rust recipe got JUnit XML out of cargo-nextest with
cargo nextest run --message-format junit, and out ofcargo testby piping--nocaptureoutput into cargo2junit. Neither works. Nextest has no JUnitflag; its documentation enables the report through a
[profile.<name>.junit]block in
.config/nextest.toml, written totarget/nextest/<profile>/junit.xml. cargo2junit converts cargo's JSONoutput from stdin, needing
-Z unstable-options --format json --report-timeand
RUSTC_BOOTSTRAP=1to unlock that on stable. Both recipes then handed theupload step a
junit.xmlnothing had written. The cargo2junitinstall was wrong too:
taiki-e/install-action's tool list has no cargo2junit,so the job failed before the tests. The page now carries the config form, the
JSON pipeline, a plain
cargo install, and matching upload paths.The NUnit console example was
--result=junit.xml;format=junit. The runner'sdocumented
--resultformats arenunit3andnunit2only, and the unquotedsemicolon splits the command in most shells. It now uses the
transform=formNUnit documents, quoted, with the
nunit3-junit.xsltNUnit publishes.Pest's "configure logging in your
Pest.php" snippet calledTestSuite::getInstance()->log(...).TestSuitehas nologmethod, so thatfile would fatal on load.
The Vitest page documented
VITEST_MERGIFY_DEBUGandMERGIFY_TEST_JOB_NAME.Neither appears in the shipped reporter or its core dependency: the debug switch
is
MERGIFY_CI_DEBUG, as the Playwright page already says, and there is nojob-name support. MSTest and NUnit now say where the JUnit logger puts its file,
since
LogFilePathresolves against the test project's directory, not therepository root.
Open question: nothing here executes these recipes. Every claim was checked
against each tool's published documentation or shipped package, but someone who
runs Rust, .NET or PHP CI should confirm them end to end.