Skip to content

merge queue: embarking main (1caca40) and #1382 together#1454

Closed
mergify[bot] wants to merge 2 commits into
mainfrom
mergify/merge-queue/7d261a0a01
Closed

merge queue: embarking main (1caca40) and #1382 together#1454
mergify[bot] wants to merge 2 commits into
mainfrom
mergify/merge-queue/7d261a0a01

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify Bot commented May 21, 2026

🎉 This pull request has been checked successfully and will be merged soon. 🎉

Branch main (1caca40) and #1382 are embarked together for merge.

This pull request has been created by Mergify to speculatively check the mergeability of #1382.
You don't need to do anything. Mergify will close this pull request automatically when it is complete.

Required conditions of queue rule default for merge:

Required conditions to stay in the queue:

---
checking_base_sha: 1caca400507eda74656c1ae23d259037e3e032c6
previous_failed_batches: []
pull_requests:
  - number: 1382
    scopes: []
scopes: []
...

remyduthu and others added 2 commits May 21, 2026 16:41
Wraps two CI Insights endpoints into a single batch command:

- `GET /v1/ci/{owner}/repositories/{repo}/search/tests` resolves test
  identities by name (glob-aware) on the default branch. Filters
  (`test_name`, `pipeline_name`, `job_name`, …) travel as repeated
  query parameters; page size travels as `per_page`.
- `GET /v1/ci/{owner}/repositories/{repo}/tests/{test_id}` returns the
  full health/metrics payload for one identity.

The search is a true batch API — pass one or more `<NAME>` positionals
(globs allowed) and one block per match is rendered. `--json` emits a
single `{"tests": [...]}` document; the human renderer hides metadata
lines for absent fields rather than printing placeholders. Exit code
reflects the worst health observed across results (0 = healthy or
unknown, 1 = any flaky, 6 = any broken).

`split_owner_repo` lives in `detector.rs` next to the existing
`owner/repo` validators so callers can interpolate the segments into
request paths without re-escaping. A new `HttpClient::get_with_query`
helper percent-encodes values and preserves repeated keys in caller
order, which the search endpoint relies on for `test_name` repetition.

Also adds a live-smoke case that exercises the search endpoint with a
guaranteed-nonexistent name so the round-trip stays independent of
canary repository state.

Fixes: MRGFY-7166

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Change-Id: Iafe286495b7842079e9c63b437a6305926fc22a5
@mergify mergify Bot deployed to Mergify Merge Protections May 21, 2026 15:30 Active
@mergify mergify Bot temporarily deployed to func-tests-live May 21, 2026 15:30 Inactive
@mergify mergify Bot closed this May 21, 2026
@mergify mergify Bot deleted the mergify/merge-queue/7d261a0a01 branch May 21, 2026 15:48
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.

1 participant