Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Confusing message when autodeploy blocked by my own lock #92

Open
turadg opened this issue Jun 28, 2017 · 3 comments
Open

Confusing message when autodeploy blocked by my own lock #92

turadg opened this issue Jun 28, 2017 · 3 comments

Comments

@turadg
Copy link

turadg commented Jun 28, 2017

screen shot 2017-06-27 at 6 47 34 pm

It's good that the autodeploy is prevented by a lock, but this message is confusing. Maybe if it just said I was going to autodeploy… ?

@sumeet
Copy link
Contributor

sumeet commented Jun 28, 2017

if i locked production and then merged to master, i would actually hope that autodeploy would be locked down. even if it was me who did the merge. i think the expected workflow for this given the current behavior would be to manually /deploy after getting the notification.

because i have the expectation that a lock would block even my own merge from triggering autodeploy, the idea of changing this behavior scares me. i can see one might expect either behavior: locking allowing only the locker's mergers, or not. for a delicate operation like deployment, i would personally prefer to stay on the conservative end.

was the issue that you didn't see the slack notification about prod being locked until too late, blocking an important deploy? maybe there's another solution to the issue you had?

1.actually print on the github pull request page that if you merge the PR, it won't be autodeployed. idk how this could be possible. perhaps via commit status checks.
2. add a button to the "but it's currently locked" slack notification to override the lock.

@ejholmes
Copy link
Contributor

Agree with @sumeet. I think it'd be dangerous to let auto deploys go through, even if you hold the lock. The current behavior isn't an accident.

With that said, the messaging could definitely be improved, and we could also include a message button to force the deployment through.

I really like the idea of adding commit statuses for locks. It was brought up in #62, but I haven't really got around to implementing it.

@turadg
Copy link
Author

turadg commented Jun 28, 2017

Good point @sumeet. I agree so I'll revise title to make this a copy change.

@turadg turadg changed the title Deploy prevented by my own lock Confusing message when autodeploy blocked by my own lock Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants