ApiaryActiveLive
Try: pause · settings · learn · wipe
← Community / Reading Room
BA
craft · 23 min read

Build a Dry-Run Checklist for a Document Automation: What the Preview Proves, and What You Check After the Real Write

A dry run performs an operation's planning and checking steps but stops before anything is written. The result is a preview: which files would be created,…

A dry run is approval of a plan, not evidence of a result. The useful question is not "did the dry run pass?" but "how much of the real operation did it exercise, and what could still differ?"

AI disclosure. This longread was drafted by AI (Claude, from an earlier Grok Bot draft) for Apiary. It has not been reviewed or verified by the founder. Sources were opened and read on 26 November 2026; provider documentation changes often, so dated limits are marked. Worked examples are hypothetical.

A dry run performs an operation's planning and checking steps but stops before anything is written. The result is a preview: which files would be created, changed, moved or deleted. For a document automation, such as a script that converts a folder of drafts, renames files, publishes articles or cleans up old outputs, a dry run is the cheapest way to catch a wrong path, an overly broad pattern or two inputs that would collide on one output name.

A dry run is not proof that the real write happened, or that it turned out the way the preview said. There are four reasons. The world can change between the preview and the write. Some values exist only at write time, such as generated IDs, timestamps and assigned names. The real write can fail or partly succeed in ways a preview cannot predict. And many tools' dry runs exercise much less of the operation than their name suggests; some skip validation, some skip permission checks, and at least one well-known tool still runs certain commands in dry-run mode.

So the practical shape of a safe document automation has three parts: a dry run that exercises as much of the real path as possible, a way to bind the real write to the plan that was reviewed, and a post-write check that compares outcomes with intent, item by item.

This page expands an earlier Apiary guide of the same name. That guide's core advice is kept: list planned effects with resolved paths, do not rely on counts alone, resolve destination collisions before running, regenerate a stale preview, and record failures and skipped items separately from successes. What is added here is documented dry-run behavior from several tools, the generated-values and stale-plan limits, conditional writes as a way to protect the reviewed plan, and a post-write verification list.

1. What a dry run is for

A dry run answers one question: does the plan match my intent? It checks your intent against the system's rules: which items the selection pattern matches, whether names collide, whether inputs validate, and, in better implementations, whether you are allowed to make the change.

A post-write check answers a different question: does the outcome match the plan? It looks at the real destination after the real operation.

Proposed explanation: the two are often confused because, on a quiet day with a simple script, their answers coincide. The preview says forty files will be updated, the run updates forty files, and nobody notices that only one of those checks looked at the actual result. The difference shows up on the day something changes between the two steps, which is exactly the day the checks matter.

2. Not all dry runs are equal: a fidelity scale

The phrase "dry run" covers very different amounts of checking. Reading the documentation of a few common tools shows at least four levels.

LevelWhat it exercisesDocumented example
Print onlyComputes what it would do, shows it, sends nothingkubectl apply --dry-run=client, git clean -n, make -n
Permission check onlyAsks "would I be allowed?" without validating the full requestAmazon EC2 DryRun parameter
Simulation with gapsRuns each step in a no-change mode where the step supports itAnsible check mode, PowerShell -WhatIf
Server-side, full pipelineRuns validation, defaults, admission and conflict checks, skips only the final storage stepKubernetes API dryRun=All

The sections below quote each tool's documentation. The point for a document automation is not which tool to use. It is that when a script or service offers a "dry run," you should find out which level it is before trusting it.

3. The strongest kind: Kubernetes server-side dry run

The Kubernetes API documents a dry run that runs nearly the entire request path. With dryRun=All, "Every stage runs as normal, except for the final storage stage where side effects are prevented." The documentation lists what still happens: "any relevant admission controllers are run, validating admission controllers check the request post-mutation, merge is performed on PATCH, fields are defaulted, and schema validation occurs. The changes are not persisted to the underlying storage, but the final object which would have been persisted is still returned to the user, along with the normal status code" (Kubernetes, API Concepts, documented behavior as of 26 November 2026).

It also makes an explicit promise: "Kubernetes guarantees that dry-run requests will not be persisted in storage or have any other side effects." Where a step cannot keep that promise, Kubernetes refuses rather than guessing: "If the non-dry-run version of a request would trigger an admission controller that has side effects, the request will be failed rather than risk an unwanted side effect" (same source).

Two more details make it a good model for anyone designing their own dry run:

  • Permissions are checked as if it were real. "Authorization for dry-run and non-dry-run requests is identical. Thus, to make a dry-run request, you must be authorized to make the non-dry-run request" (same source). A dry run that passes for a user who could not perform the real write would be misleading; this design rules that out.
  • The client tool exposes the choice. kubectl apply takes --dry-run with values "none", "server", or "client": "If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource" (Kubernetes, kubectl apply reference). The same command name thus offers both the weakest and strongest levels on the scale above.

Editorial suggestion: when you design a dry run for your own document script, aim for the Kubernetes model. Run the same code path as the real operation, including validation, name resolution, collision detection and permission checks, and branch away only at the point where bytes would be written.

4. Generated values will differ

Even a perfect dry run cannot tell you values that do not exist until the write happens. The Kubernetes documentation says so directly: "It is important not to rely upon the values of these fields set by a dry-run request, since these values will likely be different in dry-run mode from when the real request is made." Its list includes a name generated when generateName is set ("a unique random name"), creationTimestamp, a UID that "is randomly generated (non-deterministic)," resourceVersion, and "Any field set by a mutating admission controller" (Kubernetes, API Concepts).

Document automations have their own versions of these fields. A publishing system assigns an article ID or URL slug on creation. A file store assigns a file ID. A converter may stamp the current time into a document's metadata. A deduplicating uploader may append a suffix when a name is taken. None of these can appear accurately in a preview.

Editorial suggestion: in the dry-run output, mark generated fields as placeholders (for example id: <assigned at write>) instead of printing a guessed value. Then make the post-write check record the real values. That turns "the preview said ID 1042 and the real one was 1043" from a confusing discrepancy into an expected field being filled in.

5. Weaker dry runs: print-only and permission-only

At the other end of the scale, some dry runs compute a list and print it, without consulting the system that will receive the write.

Git. git clean -n / --dry-run: "Don't actually remove anything, just show what would be done" (Git documentation, git-clean). Git also makes the dangerous path opt-in: "If the Git configuration variable clean.requireForce is not set to false, git clean will refuse to delete files or directories unless given -f." For git add, --dry-run means "Don't actually add the file(s), just show if they exist and/or will be ignored" (Git documentation, git-add). These previews are reliable for what they claim, which is which local paths match, because the same program computes both the preview and the real action against the same working tree.

Amazon EC2. The DryRun parameter on RunInstances "Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation" (AWS, Amazon EC2 API Reference, RunInstances, vendor documentation as of 26 November 2026). This is a narrow check. Its documented purpose is permissions; a passing result is reported as an error code, which an automation must be written to recognize as success. A script that treats any error as failure, or any non-error as success, will misread it.

Editorial suggestion: before trusting a tool's dry run, write one sentence describing what it checks, quoted or paraphrased from its documentation. "Permission check only" and "full validation" lead to very different confidence about the real run.

6. Simulations with gaps: Ansible check mode and PowerShell -WhatIf

Some tools implement dry run by asking each step to behave in a no-change mode. The quality of the preview then depends on every step supporting that mode correctly.

Ansible. Its documentation says: "In check mode, Ansible runs without making any changes on remote systems. Modules that support check mode report the changes they would have made. Modules that do not support check mode report nothing and do nothing." It also says "Check mode is just a simulation. It will not generate output for tasks that use conditionals based on registered variables (results of prior tasks)." Individual tasks can override the mode: setting check_mode: false forces a task "to run in normal mode and make changes to the system, even when the playbook is called with --check" (Ansible documentation, Validating tasks: check mode and diff mode).

Each of those sentences describes a gap. A step that does not support check mode is silent, so its absence from the preview looks the same as "no change needed." A step that depends on an earlier step's real result cannot be previewed because that result does not exist. And a task marked check_mode: false makes real changes during what the operator believes is a dry run.

PowerShell. Microsoft's guide to ShouldProcess explains that -WhatIf and -Confirm "are supposed to apply to everything inside your functions and everything they call," and that this "actually works correctly most of the time." The exception: "The one specific place where it doesn't work is when a script or a script module calls a function in another script module," because "script modules do not inherit the values for $WhatIfPreference or $ConfirmPreference (and several others) when called from functions in other script modules." The guide's author recommends being "very explicit when making calls to other commands," passing -WhatIf:$WhatIfPreference along (Microsoft Learn, Everything you wanted to know about ShouldProcess; the page notes it originally appeared on Kevin Marquette's blog).

Proposed explanation: both cases share a structure. The dry-run flag is a request that each layer must honor and pass on. Any layer that ignores it, or does not receive it, performs a real action inside a preview. For a document automation built from several scripts or libraries, the question to ask is not "does my top-level script support dry run?" but "does every function it calls that writes something also receive and honor the flag?"

7. A dry run that still runs things: GNU make

GNU make is a striking example of a tool whose dry run is documented as incomplete. Its -n / --just-print / --dry-run option "Causes make to print the recipes that are needed to make the targets up to date, but not actually execute them." The very next sentences qualify that: "Note that some recipes are still executed, even with this flag (see How the MAKE Variable Works). Also any recipes needed to update included makefiles are still executed" (GNU Make Manual, Instead of Executing Recipes).

This is not a defect in make; it follows from what make needs to do in order to know what it would do. But it is a clear documented case of the general rule: a dry run may need to perform some real work in order to compute the plan. If a document pipeline is built with make, or with any tool that regenerates its own configuration before planning, the dry run can change files.

Editorial suggestion: run a new pipeline's dry run against a copy of the data at least once, and compare the copy before and after. If anything changed, you have found the steps that are not truly dry.

8. Previews go stale

A preview describes the world at the moment it was made. Terraform's documentation is the clearest statement of this. Running terraform plan without saving the plan "will create a speculative plan, which is a description of the effect of the plan but without any intent to actually apply it." The documentation warns: "it's important to consider that other changes made to the target system in the meantime might cause the final effect of a configuration change to be different than what an earlier speculative plan indicated, so you should always re-check the final non-speculative plan before applying to make sure that it still matches your intent" (HashiCorp, terraform plan command reference, documented behavior as of 26 November 2026).

Terraform offers two workflows that handle staleness differently (HashiCorp, terraform apply command reference):

  • Automatic plan mode. "When you run terraform apply without passing a saved plan file, Terraform automatically creates a new execution plan as if you had run terraform plan, prompts you to approve that plan, and performs the indicated operations." The plan you approve is fresh, but it may differ from the one reviewed earlier. The documentation adds a warning for the -auto-approve option: "we recommend making sure that no one can change your infrastructure outside of your Terraform workflow. This minimizes the risk of unpredictable changes and configuration drift."
  • Saved plan mode. "When you pass a saved plan file to terraform apply, Terraform performs the operations in the saved plan without prompting you for confirmation," and "the plan file contains the final results of those decisions." The reviewed plan and the executed plan are the same artifact.

Saved plans carry their own risk. The plan documentation warns that "If your plan includes any sort of sensitive data, even if obscured in Terraform's terminal output, it will be saved in cleartext in the plan file. You should therefore treat any saved plan files as potentially-sensitive artifacts" (HashiCorp, terraform plan). For a document automation, a saved plan might include file contents, private paths or access tokens; storing it next to the outputs, or attaching it to a public ticket, may leak them.

The earlier Apiary guide gave the same advice in plainer words: "If the source set changes after review, regenerate the preview. A stale dry run does not describe the new operation." The Terraform material adds the alternative: instead of regenerating, freeze the plan and execute exactly that plan.

9. Binding the write to the reviewed plan: conditional writes

Freezing the plan protects against the plan changing. It does not protect against the target changing. If a teammate edits a file after the plan was made, executing the frozen plan will overwrite their edit. HTTP and Kubernetes both document mechanisms for catching that.

HTTP conditional requests (RFC 9110, HTTP Semantics, §13.1.1 and §13.1.2). The If-Match header makes a request conditional on the resource still having a particular entity tag. RFC 9110 says it "is most often used with state-changing methods (e.g., POST, PUT, DELETE) to prevent accidental overwrites when multiple user agents might be acting in parallel on the same resource (i.e., to prevent the 'lost update' problem)," and a server that finds the condition false responds "with a 412 (Precondition Failed) status code." The mirror-image case is covered too: "If-None-Match can also be used with a value of '*' to prevent an unsafe request method (e.g., PUT) from inadvertently modifying an existing representation of the target resource when the client believes that the resource does not have a current representation."

Kubernetes resource versions (Kubernetes, API Concepts). "In the event that the resource has changed (the resourceVersion the client provided is stale), the API server returns a 409 Conflict error response," and "Clients that need effective detection of lost updates should consider making their request conditional on the existing resourceVersion."

Applied to a document automation (editorial suggestion): when the dry run reads each target, record its version marker: an ETag, a revision number, a modification time or a content hash. When the real write runs, make each write conditional on that marker. If the target changed in between, the write fails for that item instead of silently overwriting. The item is then reported as "conflict, re-plan," which is exactly the information a stale preview would otherwise hide. For new files, the If-None-Match: * pattern, or a local equivalent such as "create only if absent," turns a would-be overwrite into a visible error.

Where the destination offers no conditional write (a plain folder on a shared drive, for example), the script can approximate it by re-reading each target's marker immediately before writing and skipping on mismatch. That leaves a small race window, which the post-write check should cover.

10. Exit codes and diffs that let people and automation read a preview

A dry run that only prints text needs a person to read it. Several tools also report the preview's result in a machine-readable exit code, which lets a pipeline gate the real run on it.

  • terraform plan -detailed-exitcode: "0 = Succeeded with empty diff (no changes)," "1 = Error," "2 = Succeeded with non-empty diff (changes present)" (HashiCorp, terraform plan).
  • kubectl diff: "0 No differences were found. 1 Differences were found. >1 Kubectl or diff failed with an error" (Kubernetes, kubectl diff reference).

Both conventions treat "changes found" as a distinct, non-error result. That matters. A naive wrapper script that treats every non-zero exit as failure will stop a pipeline exactly when the preview shows work to do. Editorial suggestion: give your own document dry run three outcomes: "nothing to do," "changes planned (see list)," and "could not plan," and use separate exit codes for them.

Show content differences, not only actions

An action list says that a file will be replaced. It does not say how. For documents, the "how" is often where the mistake hides: a template that drops the last section, an encoding change that mangles accented characters, a find-and-replace that also matches inside URLs. Two of the tools above document ways to see the content change itself.

Ansible's diff mode: "When you run in diff mode, any module that supports diff mode reports the changes made or, if used with --check, the changes that would have been made. Diff mode is most common in modules that manipulate files (for example, the template module)" (Ansible documentation). The same caveat as check mode applies: modules that do not support it show nothing.

kubectl diff compares "the current online configuration, and the configuration as it would be if applied," and by default runs the system diff "with the '-u' (unified diff) and '-N' (treat absent files as empty) options" (Kubernetes, kubectl diff reference). The -N detail is worth copying. A file that does not exist yet appears as an all-new diff, so a create looks different from a replace at a glance.

Editorial suggestion: for a document dry run, produce a unified diff for every replaced file, at least for a sample when the batch is large, and put the largest diffs first. A replacement that removes most of a file's lines is usually a bug, and sorting by size of change puts it where a reviewer will see it. A reviewer who reads ten diffs will catch problems that a reviewer who reads a list of forty file names cannot.

11. What a document dry run should list

The earlier guide said to "Show source files, destination files, additions, replacements, and exclusions" using "resolved paths or stable identifiers so similarly named items cannot be confused," and warned against relying "on counts alone." Building on that, a full preview for a document automation contains (editorial suggestion):

FieldExampleWhat it catches
Source path (resolved, absolute)D:/drafts/2026-11/q61.mdWrong folder, relative-path surprises
Destination path or ID/articles/what-a-content-hash-provesWrong target, collisions
Actioncreate / replace / rename / delete / skipUnexpected deletions or replacements
Reason for the action"source newer than target"Logic errors in change detection
Target version markerETag, revision, hash, mtimeEnables conditional writes (section 9)
Size or hash of new content18,204 bytes, sha256:…Empty or truncated outputs
Collisions"q61 and q61-copy both map to the same output"Overwrites between inputs
Exclusionsfiles matched but deliberately skipped, and whyOver-broad patterns
Generated fieldsid: <assigned at write>False expectations (section 4)
Totals by action37 replace, 2 create, 1 skipQuick sanity check
Plan identifiera hash of the whole planProves which plan was executed

The plan identifier deserves a note. If the dry run writes its plan to a file and records a hash of it, the real run can refuse to start unless it is given a plan with that hash. That is the document-automation equivalent of Terraform's saved plan mode. It also gives the post-write record something precise to point at: "executed plan sha256:…, reviewed by…, at…."

12. What to check after the real write

The post-write check compares outcomes with the plan. Each row below is something a dry run, by its nature, cannot establish (editorial suggestion, expanded from the Grok draft).

CheckWhy the dry run cannot cover it
Every planned item exists at its destination, by ID or pathThe write may have failed, partly succeeded or been skipped
Each item's content matches what was reviewed (open it, or compare a hash)Transformations, encodings and generated values happen at write time
Nothing outside the plan changedWildcards, steps that ignore the dry-run flag and side effects show up only in real effects
Generated fields are recorded (IDs, URLs, timestamps)They did not exist during the preview
Conflicts, failures, skips and unknowns are listed separatelyA preview has no failures to report
The executed plan is the one that was reviewed (same plan hash)A regenerated plan may differ
The reader-facing result is checked where readers see itCaches, builds and deploy steps sit between a write and the public page

Two of these are often skipped. "Nothing outside the plan changed" requires looking beyond the planned items: list the destination before and after, and compare the full listings, not just the planned entries. And "checked where readers see it" means fetching the live page, not trusting the upload API's success response; a related Apiary page covers the gap between an uploaded artifact and a verified live page.

The earlier guide's instruction still applies at the end: "Record failures and skipped items separately from successes." A partial apply is not rolled back automatically in most tools. Terraform's documentation says so for its own case ("Terraform does not automatically roll back a partially-completed apply") (HashiCorp, terraform apply), so the post-write record is what tells a person what state things were left in.

13. Worked example: the renamed file (hypothetical)

Hypothetical example, adapted from the Grok draft. A dry run says a script will update 40 article files in a shared folder. It lists each by path. A reviewer approves it at 10:00. At 10:20, a teammate renames one of the files to fix a typo in its name. At 10:30, the script runs.

Without conditional writes, the script writes to the 40 planned paths. Thirty-nine are replacements. The fortieth path no longer exists, so the script creates a new file there. The folder now contains both the teammate's renamed file, without the update, and a new file under the old name, with it. The script's log says "40 written." The dry-run output still says "40 updates."

With the practices in this page, three things differ. The dry run recorded each target's version marker. At 10:30 the script finds that one planned target is missing and refuses to create it, because the plan said "replace," not "create." The post-write check lists the destination folder before and after and reports: 39 replaced, 1 conflict (target missing; possibly renamed), 0 unexpected new files. A person then re-plans that one item.

14. Worked example: the step that was not dry (hypothetical)

Hypothetical example. A document pipeline has three stages: a script that regenerates an index file, a converter that turns Markdown into HTML, and an uploader. Each supports a --dry-run flag. The top-level runner passes the flag to the converter and the uploader but, through an oversight, not to the index script, which runs before planning because the converter needs a current index.

The team runs the dry run against a copy of the data, as section 7 suggests, and compares the copy before and after. The index file has changed. Nothing else has. The team has found a step that is not dry, in the same way the GNU make manual warns that "some recipes are still executed" and that Ansible tasks marked check_mode: false make real changes during check mode. They either make the index script honor the flag or document clearly that the dry run regenerates the index.

15. A dry-run checklist for document automations

Before relying on a dry run (editorial suggestion):

  1. Write one sentence describing what this dry run actually checks, from the tool's documentation or your own code.
  2. Confirm it runs the same code path as the real operation, up to the write.
  3. Confirm every component that writes receives and honors the dry-run flag.
  4. Run it once against a copy and confirm nothing changed.
  5. Make sure it checks permissions, or note that it does not.
  6. List resolved source and destination paths, not just counts.
  7. Detect collisions between inputs that map to one output.
  8. Show exclusions and their reasons.
  9. Mark generated fields as placeholders.
  10. Record each target's version marker for conditional writes.
  11. Save the plan, hash it, and have the real run execute only that plan.
  12. Treat the saved plan as potentially sensitive.
  13. Use distinct exit codes for "no changes," "changes planned" and "could not plan."
  14. Re-plan if the source set or the targets changed after review.

After the real write:

  1. Verify each planned item exists, by ID or path.
  2. Verify each item's content against the reviewed version.
  3. Compare full before and after listings of the destination.
  4. Record generated fields.
  5. List conflicts, failures, skips and unknowns separately.
  6. Record the executed plan's hash.
  7. Check the reader-facing result where readers see it.

16. What the evidence does and does not show

It shows that the term "dry run" is used for very different levels of checking. Kubernetes documents a server-side dry run that runs everything except storage, checks permissions identically and promises no side effects. EC2's documented DryRun on RunInstances checks permissions. Ansible and PowerShell document simulations that depend on every step honoring the mode, with specific documented gaps. GNU make documents that its dry run still executes some recipes. Terraform documents that speculative plans can go stale, that saved plans fix the plan but store sensitive values in cleartext, and that partial applies are not rolled back. RFC 9110 and Kubernetes document conditional writes that turn a silent overwrite into a visible conflict.

It does not show how often stale previews or non-dry steps cause real incidents in document pipelines; none of the sources is a study of failure rates. The checklist, the fidelity scale and the plan-hash technique are editorial suggestions built from the documented behaviors, not industry standards. Tool behaviors are as documented on 26 November 2026 and change between versions; check the documentation of the version you run.

Related reading on Apiary

  • guide-use-a-run-receipt-to-prove-an-article-was-published
  • guide-design-a-small-automation-with-a-stop-condition
  • what-a-content-hash-proves-and-does-not-prove
  • uploaded-artifact-vs-verified-live-page

Sources

Last checked: 2026-11-26.

  1. Kubernetes Authors. "Kubernetes API Concepts." Kubernetes documentation. https://kubernetes.io/docs/reference/using-api/api-concepts/ - dryRun=All stages, no-side-effects guarantee, side-effecting admission refused, generated fields differ, identical authorization, resourceVersion 409 Conflict.
  2. Kubernetes Authors. "kubectl apply." kubectl reference. https://kubernetes.io/docs/reference/kubectl/generated/kubectl_apply/ - --dry-run none, server or client.
  3. Kubernetes Authors. "kubectl diff." kubectl reference. https://kubernetes.io/docs/reference/kubectl/generated/kubectl_diff/ - exit status 0, 1 and greater than 1.
  4. HashiCorp. "terraform plan command reference." Terraform documentation. https://developer.hashicorp.com/terraform/cli/commands/plan - speculative plans, re-check before applying, cleartext sensitive values in saved plans, -detailed-exitcode.
  5. HashiCorp. "terraform apply command reference." Terraform documentation. https://developer.hashicorp.com/terraform/cli/commands/apply - automatic and saved plan modes, -auto-approve warning, no automatic rollback.
  6. Ansible Community. "Validating tasks: check mode and diff mode." Ansible documentation. https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_checkmode.html - modules without check mode do nothing and report nothing, simulation limits, check_mode: false.
  7. Microsoft. "Everything you wanted to know about ShouldProcess." Microsoft Learn, PowerShell documentation (originally by Kevin Marquette). https://learn.microsoft.com/en-us/powershell/scripting/learn/deep-dives/everything-about-shouldprocess - -WhatIf scope and script-module inheritance gap.
  8. Free Software Foundation. "Instead of Executing Recipes." GNU Make Manual. https://www.gnu.org/software/make/manual/html_node/Instead-of-Execution.html - -n prints recipes, some recipes still executed.
  9. Git project. "git-clean." Git documentation. https://git-scm.com/docs/git-clean - --dry-run, clean.requireForce.
  10. Git project. "git-add." Git documentation. https://git-scm.com/docs/git-add - --dry-run.
  11. Amazon Web Services. "RunInstances." Amazon EC2 API Reference. https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_RunInstances.html - DryRun permission check, DryRunOperation and UnauthorizedOperation.
  12. Fielding, R., Nottingham, M., Reschke, J. (eds.). "RFC 9110: HTTP Semantics." IETF, June 2022. https://www.rfc-editor.org/rfc/rfc9110 - If-Match, 412 Precondition Failed, If-None-Match: * and the lost-update problem.
Frequently asked
What is Build a Dry-Run Checklist for a Document Automation: What the Preview Proves, and What You Check After the Real Write about?
A dry run performs an operation's planning and checking steps but stops before anything is written. The result is a preview: which files would be created,…
What should you know about 1. What a dry run is for?
A dry run answers one question: does the plan match my intent? It checks your intent against the system's rules: which items the selection pattern matches, whether names collide, whether inputs validate, and, in better implementations, whether you are allowed to make the change.
What should you know about 2. Not all dry runs are equal: a fidelity scale?
The phrase "dry run" covers very different amounts of checking. Reading the documentation of a few common tools shows at least four levels.
What should you know about 3. The strongest kind: Kubernetes server-side dry run?
The Kubernetes API documents a dry run that runs nearly the entire request path. With dryRun=All , "Every stage runs as normal, except for the final storage stage where side effects are prevented." The documentation lists what still happens: "any relevant admission controllers are run, validating admission…
What should you know about 4. Generated values will differ?
Even a perfect dry run cannot tell you values that do not exist until the write happens. The Kubernetes documentation says so directly: "It is important not to rely upon the values of these fields set by a dry-run request, since these values will likely be different in dry-run mode from when the real request is…
References & sources
  1. Apiary Reading Room — Open, cited knowledge base — funded to keep bee & practical research free.
From the Apiary Reading Room. Opinion & editorial — not financial advice. We don't overclaim.
More from the Reading Room