Questions tagged [dry-run]

Features related to running a command in a manner that merely previews its intended operation.

A dry-run allows a user to preview the outcome of a command or set of commands. This is usually done to test an actual command that may be difficult/impossible to be rolled back later, like file & directory deletions.

For instance, use this tag for questions related to PowerShell's -WhatIf common parameter.

16 questions
6
votes
1 answer

Performing a dry run of a Powershell script that uses Chocolatey

I'm working on a script to automate setting up new machines to a certain specification, which includes downloading a bunch of programs and changing user preferences. I would just set a variable for the downloads and registry edits but most of the…
Matt
  • 109
  • 1
  • 10
3
votes
4 answers

Is there something like `git reset --hard --dry-run`?

As I know that git reset --hard can potentially cause unwanted data loss because it may make changes that cannot be undone, is there a way to check what it would do before I execute it? Basically I'm looking for something that would be logically git…
Mikko Rantalainen
  • 14,132
  • 10
  • 74
  • 112
2
votes
2 answers

PowerShell to add date to all filenames in a folder

I have three files named First_File.txt Second_File.txt Thrid_File.txt in a folder named C:\01Source I want to add the current date to the filenames so they look like this: First_File_20220909.txt The terminal output is this: What if: Performing…
Philip Noah
  • 81
  • 1
  • 3
  • 10
2
votes
1 answer

What is the different --dry-run opportunities?

What is the different between --dry-run --dry-run=client --dry-run=server opportunities? And is there any purpose other than create a definition file? Thank you for your time.
Alidmrc
  • 21
  • 2
2
votes
0 answers

How to check for not pushed changes to Gerrit

When working with regular git and pushing to master you can easily know what you're about to push. Even better if you simply check for not pushed changes. When working with Gerrit on the other hand you want to see if your changes are present in your…
Maciej Załucki
  • 464
  • 1
  • 4
  • 15
1
vote
1 answer

rsync deleting files despite --dry-run

When I run rsync with --delete and --dry-run specified, deleted local files are actually deleted on the remote. Command output includes (DRY RUN) at the end, but the remote files are deleted. Command I'm running: rsync \ -azv --dry-run --delete…
Trevithick
  • 21
  • 3
1
vote
1 answer

How to create mult-container pods using --dry-run=client?

I am working on practicing for the CKAD exam and ran into an interesting problem with a multi-container pod that I can't seem to find an answer to. Lets say I run this imperative command to create a pod.yaml: kubectl run busybox --image=busybox…
humiliatedpenguin
  • 235
  • 1
  • 2
  • 7
1
vote
0 answers

Cannot use dry-run parameter with big_query hook

Bigquery query job provides a choice to dry-run the query before actually running it. It helps in having an idea of the billing and how much data is going to be processed in BigQuery. Below is the snippet of the QueryRequest: { "kind": string, …
1
vote
3 answers

Is possible to apply undo with dryRun?

Good Morining, We are using flyway with a Java API. flyway version: 6.5.0 Enterprise. database: h2 (version 1.4.197). We are trying to apply undo operation programmatically setting a number of a version and applying undo until the current version…
1
vote
1 answer

Ruby: how to implement 'dry_run option'?

I have a class: class MyExecutor @@dry_run = false @@shared_instance = nil def self.shared_instance @@shared_instance ||= setup_new_instance() end # setup def self.setup_new_instance (dry_run = false) @@dry_run = dry_run …
gaussblurinc
  • 3,642
  • 9
  • 35
  • 64
0
votes
2 answers

Is there dry_run functionality for APN?

While implementing notification sending functionality for android and ios, I ran into the issue where dry run is needed. For FCM, this solved the problem but the issue still remains for APN. Is there the dry run functionality for APN?
0
votes
1 answer

Is there an alternative to the serverless-cloudformation-changesets? for serverless version 3

Problem Im just trying to deploy serveless-cloudformation-changesets on AWS codebuild But the build failed because of versioning error Serverless Error --------------------------------------- The Serverless version (1.83.3) does not satisfy…
0
votes
0 answers

BigQueryInsertJobOperator dryRun is returning success instead of failure on composer (airflow)

When using BigQueryInsertJobOperator and setting the configuration to perform a dry run on a faulty .sql file/ a hardcoded query, the task succeeds even though it should fail. The same error gets properly thrown out by task failure when running with…
Suga Raj
  • 481
  • 3
  • 15
0
votes
1 answer

dry run of nump's vectorize

When I run a function, which is vectorized with numpy it is always executed once more than I would expect. Thus, before the actual calling starts, there seems to be a dry run. Recently, I run into trouble because of this. See the following minimal…
0
votes
2 answers

NPM Package Install Affected Dependencies List

This is probably a total noob question about npm, but I'm wondering how I can extract the dependencies that would be installed when doing an install, for instance with dry-run. The reasoning is that I want to know which packages are going to be…
Slinger Jansen
  • 237
  • 2
  • 14
1
2