Repository navigation
test(infra): docker, tf, watchers and Argo CRD tests run on edge fakes - #3857
Merged
Merged
Conversation
await_workflow waits on the clock seam and raises ArgoWorkflowTimeoutError. The command prints the error. The CRD tests run on the Kubernetes API fake.
find_matching_records and delete_dns_records are public functions of cloudflare/dns.py. The command renders the result. The matching cases run over the HTTP fake.
…on edge fakes The tests use process_fake, keyring_store, docker_daemon, clock, cli and mcp_dispatcher in place of patches. Each file sits at the mirror path of its source.
…, the clock and cli DockerEngineService reads time through the clock seam. The tests patch no name.
The 1,385-line engine test file becomes seven files under tests/docker/ and one command test file. No test changes in this commit.
Owner
Author
|
Results of the full
Review fixes in the last commits: wiring tests for One review note not fixed: |
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 Docker engine endpoint and cache, the watchers, OpenTofu cost, cosign and workload sandbox now run on the edge fakes: the process fake, the DNS fake, the clock, the Kubernetes API fake and the Docker engine fake. They no longer patch internal names.
To make this possible, the Argo workflow wait and the Cloudflare DNS record matching move out of the commands into public functions of
argo/workflows.pyandcloudflare/dns.py. The commands become thin adapters that render the result. The wait and the matching rules have their own tests on the fakes. The commands keep wiring tests for--wait,--forceand--type.The fakes gain a few hooks for this:
ClockFake.after_each_sleep,DockerEngineFake.script_every_run,fail(method, error)on the Kubernetes API fake andextra_allowed_envon a recorded process call.docs/TESTING.mdnames them.Closes #3751
Change:
openspec/changes/archive/2026-11-06-3751-infra-tests-on-edge-fakes/