Skip to content

test(cli): cloudflare, valkey and other command tests patch no names - #4100

Merged
dan-petty merged 4 commits into
mainfrom
test/3769-remaining-command-tests-on-edge-fakes
Nov 8, 2026
Merged

dan-petty merged 4 commits into
mainfrom
test/3769-remaining-command-tests-on-edge-fakes

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Group 4 of #3769. Twelve command test files now use the shared edge fakes (web, config, keyring_store, valkey, process_fake, otlp, docker_daemon) in place of patches of devops_cli names. The files cover Cloudflare, Valkey, Vault, TLS, uv, kustomize, telemetry, pipeline, Docker, config and local AI dry runs.

A patch of an in-process name hides the edge that the command reaches. A mutation of the HTTP request, the Valkey command or the keyring write could pass. Now such a mutation fails a test.

The tests hold 389 node ids before and after. Three names change, because no test mocks any more. The patch count of group 4 goes from 328 to 222. The proposal gives the reason that each remaining file stays.

Closes #4088

Change: openspec/changes/archive/2026-11-07-4088-remaining-command-tests-on-edge-fakes/

Group 4 of #3769 moves 106 string patches of a devops_cli name out of 12 command test files. The tests now reach the Cloudflare API, Valkey, Vault, the keyring, programs, OTLP and the Docker engine through the shared edge fakes, and the settings through the config fixture.
@dan-petty dan-petty added type/test Type test: a new or changed test scope/cli Core CLI framework, Typer subcommands, options, and tables labels Nov 8, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Results of the local runs:

  • Focused run after the rebase onto origin/main 120598e: the 12 migrated files and tests/invariants pass (1011 tests).
  • A full devops ci run on the code before the last small fix ended with exit 0. That run took 27m on the loaded host, so the test row went over the 5-minute budget. The slowest tests are not in the files of this change, except test_local_ai_commands_run_cleanly (176 s on the loaded host).
  • The last commits before the archive only change one private import in test_valkey.py, two test names in test_telemetry_cmd.py and the OpenSpec text. CI of this pull request runs the full gate on the final code.

Review findings:

  • Fixed: test_valkey_fixture uses the public resolve_valkey_client().
  • Fixed: the two telemetry tests lose "mocked" from their names (design decision 4).
  • Fixed: the proposal gives a reason for each group of remaining patches. The counts are 328 before and 222 after.
  • Fixed: the branch is rebased on the current origin/main.
  • Skipped: a check of the Authorization header in a CLI Cloudflare test. tests/cloudflare/test_client.py owns that check, and the old tests did not check it.

@dan-petty
dan-petty marked this pull request as ready for review November 8, 2026 00:35
@dan-petty
dan-petty merged commit 20743d6 into main Nov 8, 2026
24 checks passed
@dan-petty
dan-petty deleted the test/3769-remaining-command-tests-on-edge-fakes branch November 8, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/cli Core CLI framework, Typer subcommands, options, and tables type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(cli): cloudflare, valkey and other command tests patch no names

1 participant