Skip to content

fix(e2e): import kubectl_json in kubernetes_shared_supervisor_ha - #6147

Merged
matthewgrossman merged 1 commit into
mainfrom
fix/6146-kubectl-json-import/matthewgrossman
Dec 2, 2026
Merged

matthewgrossman merged 1 commit into
mainfrom
fix/6146-kubectl-json-import/matthewgrossman

Conversation

@matthewgrossman

Copy link
Copy Markdown
Member

Summary

e2e/rust/tests/kubernetes_shared_supervisor_ha.rs calls kubectl_json in assert_spread but never imports it, so the test does not compile with --features e2e-kubernetes-shared-supervisor-ha. #5436 added the call and #4732 dropped the import.

PR CI missed it because the file is gated by #![cfg(feature = "e2e-kubernetes-shared-supervisor-ha")], and the e2e check and clippy run without that feature, so the file compiles to nothing.

Related Issue

Closes #6146

Changes

  • Add kubectl_json to the use shared_supervisor::{...} list (rustfmt rewrapped the list).

Testing

In e2e/rust:

  • Before the fix, cargo check --locked --tests --features e2e-kubernetes-shared-supervisor-ha fails with E0425: cannot find function kubectl_json. After the fix it passes.

  • cargo check --locked --tests --all-targets --all-features passes.

  • cargo fmt --check passes.

  • cargo clippy --locked --test kubernetes_shared_supervisor_ha --features e2e-kubernetes-shared-supervisor-ha -- -D warnings and the CI command cargo clippy --manifest-path e2e/rust/Cargo.toml --all-targets -- -D warnings pass.

  • Checks appropriate to the affected code and behavior pass

  • Unit tests added/updated (if applicable)

  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Matthew Grossman <mgrossman@nvidia.com>
@matthewgrossman matthewgrossman added test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage labels Dec 1, 2026
@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Dec 1, 2026

@gator-review-bot gator-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

gator-agent

PR Review Status

The import restores access to the existing kubectl_json helper in the Kubernetes HA test and addresses the compilation issue in #6146. The code review found no blocking issues.

Gator metadata
  • Validation: Focused test compilation fix for #6146. The PR Issue Acceptance check passed.
  • Docs: Fern updates are unnecessary for this test-only import.
  • Checks: DCO and Helm Lint passed. Branch Checks and E2E are pending. The required Maintainer Approval check is red before the approval handoff.
  • E2E: The run selected by the existing test:e2e and test:e2e-kubernetes labels is queued.
  • Head SHA: e5cfef224e639b04811409205f223315fb194d9c
  • Base SHA: 594e6df3cde060608b57779d67160a4ee3414471
  • Merge base SHA: 594e6df3cde060608b57779d67160a4ee3414471
  • Patch ID: aad804d0e42d58b8f596bfa25995f2eb88504bdf
  • Gator payload: 19
  • Review mode: initial
  • Previous reviewed SHA: none
  • Review budget exhausted: no
  • Maintainer decision required: no
  • Next state: gator:watch-pipeline

@gator-review-bot gator-review-bot Bot added the gator:watch-pipeline Gator is monitoring PR CI/CD status label Dec 1, 2026

@FrostGod FrostGod left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gator-review-bot gator-review-bot Bot added gator:blocked Gator is blocked by process or repository gates and removed gator:watch-pipeline Gator is monitoring PR CI/CD status labels Dec 1, 2026
@matthewgrossman
matthewgrossman added this pull request to the merge queue Dec 2, 2026

@gator-review-bot gator-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

gator-agent

Gator Approval

Gator review is complete and required CI has passed.

@gator-review-bot gator-review-bot Bot added gator:merge-ready and removed gator:blocked Gator is blocked by process or repository gates labels Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 2, 2026
@matthewgrossman
matthewgrossman added this pull request to the merge queue Dec 2, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Dec 2, 2026
@matthewgrossman
matthewgrossman added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit 3352181 Dec 2, 2026
527 of 540 checks passed
@matthewgrossman
matthewgrossman deleted the fix/6146-kubectl-json-import/matthewgrossman branch December 2, 2026 19:46
@gator-review-bot

Copy link
Copy Markdown

gator-agent

Monitoring Complete

Monitoring is complete because this PR was merged. Gator recorded a clean code review and submitted a separate App approval on the reviewed head. The required OpenShell / Maintainer Approval check passed after the App approval. The active Gator label is being cleared.

Gator metadata
  • Head SHA: e5cfef2
  • Gator payload: 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:accepted A maintainer decided OpenShell should pursue this issue test:e2e Requires end-to-end coverage test:e2e-kubernetes Requires Kubernetes end-to-end coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(e2e): kubernetes_shared_supervisor_ha doesn't compile on main

2 participants