Repository navigation
test(k8s): k8s command tests patch no devops_cli names - #4105
Merged
Merged
Conversation
Delete _K8sModule and its name sets, which only the command tests needed. Read the contexts and the nodes through KubernetesService, delete _k8s_clients, and start the port-forward child through spawn_detached. Refs #4086
Move the tests of tests/commands/k8s to the shared fakes: process_fake, cluster, web, scanner_fake, keyring_store, clock and a new tcp_probe fixture. Hold the directory to zero string patches of a devops_cli name with an invariant test. Plan the change as 4086 and replace the stale plan of 1323. Refs #4086
Owner
Author
|
Check results (local, on the final code, after the rebase onto origin/main):
Review fixes after the independent review:
Known leftovers, for later items:
|
dan-petty
marked this pull request as ready for review
November 8, 2026 01:39
This was referenced Nov 9, 2026
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 tests of the
devops k8sgroup now patch nodevops_cliname. They use the shared fakes for the process, the cluster, HTTP, the keyring and the clock. A newtcp_probefixture answers the TCP probes that no seam reaches.The product code loses the test accommodations that the patches needed: the
_K8sModulepatch forwarding,_k8s_clientsand a directPopencall. A test intests/invariants/test_source_tree.pykeeps the group at zero string patches.Closes #4086
Change:
openspec/changes/archive/2026-11-08-4086-k8s-command-tests-on-edge-fakes/