test(queue): add live smoke test for queue show#1408
Open
Conversation
Member
Author
|
This pull request is part of a Mergify stack:
|
This was referenced May 11, 2026
Contributor
Merge ProtectionsYour pull request matches the following merge protections and will not be merged until they are valid. 🔴 ⛓️ Depends-On RequirementsWaiting for
This rule is failing.Requirement based on the presence of
🔴 👀 Review RequirementsWaiting for
This rule is failing.
🔴 🔎 ReviewsWaiting for
This rule is failing.
🟢 🤖 Continuous IntegrationWonderful, this rule succeeded.
🟢 Enforce conventional commitWonderful, this rule succeeded.Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 📕 PR descriptionWonderful, this rule succeeded.
|
80f3f59 to
4ceec24
Compare
Member
Author
Revision history
|
4ceec24 to
9712abd
Compare
5f46f32 to
fe2d5a6
Compare
9712abd to
ca322fe
Compare
ca322fe to
bea6443
Compare
04d5e60 to
8c3dfb2
Compare
bea6443 to
2d08ea5
Compare
There was a problem hiding this comment.
Pull request overview
Adds a live functional smoke test to lock in the expected behavior of mergify queue show when the merge-queue pull endpoint returns a 404, ensuring the upcoming Python → Rust port preserves both the user-facing message and exit-code mapping.
Changes:
- Add a new live smoke test that calls
mergify queue showwith a very high PR number to force the 404 path. - Assert the CLI exits with
MERGIFY_API_ERROR(6) and prints “not in the merge queue” (case-insensitive, stdout/stderr combined).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8c3dfb2 to
c2389e7
Compare
2d08ea5 to
9bbe2bc
Compare
Pins the contract for ``mergify queue show`` 404 handling before the Rust port lands on top. Same test exercises Python at this PR's CI and Rust on the port commit's rebase. Uses a PR number far above the test repo's actual PR count to force the 404 path. That's robust against the test repo's queue state (PR #1 may or may not be queued at any given moment) and exercises the parts that would silently break on URL or schema drift: endpoint reachability, auth, and 404 → ``MERGIFY_API_ERROR`` exit code (6) mapping with the ``not in the merge queue`` message. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Change-Id: I944234ba2d22d99b410f4b8c91e56f0d8a49a9f7
9bbe2bc to
85a46d3
Compare
c2389e7 to
16faa08
Compare
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.
Pins the contract for
mergify queue show404 handlingbefore the Rust port lands on top. Same test exercises Python
at this PR's CI and Rust on the port commit's rebase.
Uses a PR number far above the test repo's actual PR count to
force the 404 path. That's robust against the test repo's queue
state (PR #1 may or may not be queued at any given moment) and
exercises the parts that would silently break on URL or schema
drift: endpoint reachability, auth, and 404 →
MERGIFY_API_ERRORexit code (6) mapping with the
not in the merge queuemessage.Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com
Depends-On: #1366