Skip to content

ci: replace paired-test label with Pairs-with body parsing for integration#463

Merged
steiler merged 1 commit into
mainfrom
ci/integration-pairs-with
Jul 1, 2026
Merged

ci: replace paired-test label with Pairs-with body parsing for integration#463
steiler merged 1 commit into
mainfrom
ci/integration-pairs-with

Conversation

@steiler

@steiler steiler commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Replaces the paired-test label + same-branch-name convention introduced in #447 with a simpler, more explicit mechanism: Pairs-with: trailers in the PR body.

How it works

Add one line per paired repo to the PR description:

Pairs-with: sdcio/config-server#455
Pairs-with: sdcio/integration-tests#107

CI (resolve-paired-refs job) reads the PR body, looks up each referenced PR number, resolves its branch to the required ref format, and passes it to the integration-tests reusable workflow:

Paired repo Resolution Used as
sdcio/config-server PR# → branch → full SHA GHCR image tag + checkout ref
sdcio/integration-tests PR# → branch name checkout ref for Robot test code

No Pairs-with: lines → all paired repos fall back to main.

Changes

What's gone

  • No more paired-test label needed on data-server PRs
  • No more branch name alignment required across repos
  • The paired-test label on this repo can be deleted after both companion PRs merge

Merge order

  1. ci: add integration_tests_ref input to reusable single.yml workflow integration-tests#107 must merge first (adds the integration_tests_ref input to single.yml)
  2. This PR
  3. sdcio/config-server companion PR (replaces Fix lint failure from unchecked deferred Stop() errors in GNMI stream tests #455)

Example PR body for a 3-repo feature

## My feature

Changes data-server northbound API and requires new integration tests.

Pairs-with: sdcio/config-server#500
Pairs-with: sdcio/integration-tests#110

Branch names on config-server and integration-tests can be anything — the PR number is the link.

Companion PRs:

Made with Cursor

…ation

Drop the label + same-branch-name convention. CI now resolves paired repo
refs from "Pairs-with: sdcio/<repo>#<PR>" lines in the PR description:

- sdcio/config-server#NNN → branch → full SHA (GHCR image tag)
- sdcio/integration-tests#NNN → branch name (checkout ref for test code)

Falls back to main for any repo not listed. workflow_dispatch keeps explicit
override inputs (configserver_version, integration_tests_ref) for manual runs.

Branch name alignment across repos is no longer required.
Passes integration_tests_ref to single.yml (sdcio/integration-tests#107).

Co-authored-by: Cursor <cursoragent@cursor.com>
@steiler steiler requested a review from a team as a code owner July 1, 2026 07:51
@steiler steiler merged commit ae73da2 into main Jul 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant