Prisma1: prisma deploy --dry-run broken

Created on 17 Jan 2018  路  11Comments  路  Source: prisma/prisma1

Current behavior
prisma deploy --dry-run returns the following, even for a fresh service.

divyendusingh [prisma-101]$ prisma deploy --dry-run
Performing dry run for service `prisma-101` to stage `dev` on cluster `local` 329ms
Service is already up to date.

Reproduction

Initialize a project with prisma init.

Use prisma local nuke to clean up the local.

Try prisma deploy --dry-run.

Expected behavior?

prisma deploy --dry-run should show the actual deploy behavior as a dry run but it stats that everything is up to date even for a fresh service.

bu2-confirmed arecli areserver

Most helpful comment

It also seems that the CLI ignores unknown / misspelled arguments. I think this can lead to unintended consequences for example if one wants to run prisma deploy --dry-run --force to preview changes but accidentally types prisma deploy --dryrun --force the changes are immediately applied including potential data loss.

All 11 comments

@marktani is this still relevant?

Yes, I can still reproduce this issue.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Hello guys,

I always have this bug, can you re-open the issue?

@marktani @divyenduz

This is an example of a strange --dry-run (coupled with force).
It will remove useless type, but data exists, so I added the --force flag to see the changes expected, but the CLI said Service is already up to date.
(Is it maybe because just before I already made a prisma deploy -d?)

capture d ecran 2018-08-09 a 16 11 00

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Hello @marktani @divyenduz

Any news about this point?

I also just saw an other (potential) problem:
After the prisma deploy --dry-run, if the process don't throw an error, after displaying the Service is already up to date", it runs the differenthooks/post-deploy, but does it have to run? I personally use it to run anpm scriptsafter a deployment, but after a--dry-run`, I don't want it (it just to test and be sure of the modifications which will be apply).

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Go away stale bot!

Bump so this issue isn't marked as stale again.

It also seems that the CLI ignores unknown / misspelled arguments. I think this can lead to unintended consequences for example if one wants to run prisma deploy --dry-run --force to preview changes but accidentally types prisma deploy --dryrun --force the changes are immediately applied including potential data loss.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ragnorc picture ragnorc  路  3Comments

marktani picture marktani  路  3Comments

marktani picture marktani  路  3Comments

AlessandroAnnini picture AlessandroAnnini  路  3Comments

dohomi picture dohomi  路  3Comments