Comments (4)
While testing out this bug, I think I found another with the .lock
command 😱.
.lock <environment> --reason <text>
does actually claim a lock but it does a .wcid
(where can I deploy) or .lock --info
style command instead. This is certainly a bug.
from branch-deploy.
My bug was a rather silly one, and one that was really rare to begin with and I just happened to run into it. My bug is now resolved but I still need to test out the logic that you are doing here to see what is happening. In my PR (linked above), I did add a whole bunch of additional "lock" related debug logging. Please upgrade to the following version and re-run your command with debug logs enabled and I'll take a look! 👀
from branch-deploy.
@GrantBirki The locking feature worked for me after upgrading to v7.2.2
:
Below are the logs that you requested.
Lock
Run github/[email protected]
##[debug]comment body does not start with trigger: ".deploy app"
##[debug]comment body does not start with trigger: ".plan app"
✅ comment body starts with trigger: ".lock app"
##[debug]comment body does not start with trigger: ".unlock app"
##[debug]comment body does not start with trigger: ".help app"
##[debug]comment body does not start with trigger: ".wcid"
##[debug]Found environment target for lock request: app-dev
##[debug]lock() called with ref: test-issueops
##[debug]lock() called with sticky: true
##[debug]lock() called with environment: null
##[debug]lock() called with detailsOnly: false
##[debug]lock() called with postDeployStep: false
##[debug]detected lock env: app-dev
##[debug]detected lock global: false
##[debug]constructed lock branch name: app-dev-branch-deploy-lock
##[debug]checking if lock file exists on branch: global-branch-deploy-lock
lock file does not exist on branch: global-branch-deploy-lock
##[debug]checking if branch app-dev-branch-deploy-lock exists...
##[debug]lock branch app-dev-branch-deploy-lock does not exist
##[debug]attempting to create lock branch: app-dev-branch-deploy-lock...
Created lock branch: app-dev-branch-deploy-lock
##[debug]attempting to create lock...
global lock: false
deployment lock obtained
deployment lock is sticky
##[debug]Node Action run completed with exit code 0
##[debug]Save intra-action state isPost = true
##[debug]Save intra-action state actionsToken = xxx
##[debug]Save intra-action state comment_id = xxx
##[debug]Save intra-action state reaction_id = xxx
##[debug]Save intra-action state bypass = true
##[debug]Set output comment_body = .lock app app-dev
##[debug]Set output comment_body = .lock app app-dev
##[debug]Set output comment_body = .lock app app-dev
##[debug]Set output comment_body = .lock app app-dev
##[debug]Set output comment_body = .lock app app-dev
##[debug]Set output comment_body = .lock app app-dev
##[debug]Set output type = lock
##[debug]Set output triggered = true
##[debug]Set output comment_id = xxx
##[debug]Set output initial_reaction_id = xxx
##[debug]Set output actor_handle = bzurkowski
##[debug]Set output actor = bzurkowski
##[debug]Finishing: Gate branch deployment
Unlock
Run github/[email protected]
##[debug]comment body does not start with trigger: ".deploy app"
##[debug]comment body does not start with trigger: ".plan app"
##[debug]comment body does not start with trigger: ".lock app"
✅ comment body starts with trigger: ".unlock app"
##[debug]comment body does not start with trigger: ".help app"
##[debug]comment body does not start with trigger: ".wcid"
##[debug]Found environment target for unlock request: app-dev
successfully removed lock
##[debug]Node Action run completed with exit code 0
##[debug]Save intra-action state isPost = true
##[debug]Save intra-action state actionsToken = ***
##[debug]Save intra-action state comment_id = xxx
##[debug]Save intra-action state reaction_id = xxx
##[debug]Save intra-action state bypass = true
##[debug]Set output comment_body = .unlock app app-dev
##[debug]Set output comment_body = .unlock app app-dev
##[debug]Set output comment_body = .unlock app app-dev
##[debug]Set output comment_body = .unlock app app-dev
##[debug]Set output comment_body = .unlock app app-dev
##[debug]Set output comment_body = .unlock app app-dev
##[debug]Set output type = unlock
##[debug]Set output triggered = true
##[debug]Set output comment_id = xxx
##[debug]Set output initial_reaction_id = xxx
##[debug]Set output actor_handle = bzurkowski
##[debug]Set output actor = bzurkowski
##[debug]Finishing: Gate branch deployment
from branch-deploy.
@bzurkowski Hooray! Actually, looking at your logs and comment, since you had -d
in your message... you were indeed also running into the same bug that has now been fixed!
This was the PR that fixed both your problem, and mine -> #187
Closing this issue out ✅
from branch-deploy.
Related Issues (20)
- `.lock` and `.unlock` commands not working with `--reason` HOT 2
- When there are no checks deployment isn't allowed HOT 4
- Is it possible to limit environment deployments to a specific `base_ref`? HOT 5
- Hubot Style Deploy Locking HOT 1
- `merge_deploy_mode = true` don't update the current branch deployed HOT 2
- Multiple `production_environment` HOT 7
- Ability to disable "naked" `.deploy` HOT 1
- Support deploying a specific SHA or branch HOT 2
- Unsafe SHA Deployments
- Removing non-sticky lock when retrying a failed job in multi-job workflows fails HOT 5
- Checking if files have changed in PR branch deploy HOT 2
- Disallow deploying branches out-of-date with `main` HOT 5
- How is the locking mechanism implemented? HOT 2
- Bug: Reference does not exist HOT 3
- Merge deploy mode skips deployment status update HOT 4
- Error: TypeError: Cannot read properties of undefined (reading 'body') using v9.1.3 HOT 8
- Explain intended usage of storing secrets in environment and making them available to deployment workflow HOT 4
- Rollback uses merge commit instead of commit from PR HOT 4
- How to prevent the action marking the whole workflow as successful before it finishes? HOT 3
- Deploy not occurring due to out-of-date branch when `update_branch` is set to `disable` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from branch-deploy.