Giter Site home page Giter Site logo

Comments (4)

GrantBirki avatar GrantBirki commented on August 24, 2024

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.

Screenshot 2023-08-16 at 9 09 48 PM

from branch-deploy.

GrantBirki avatar GrantBirki commented on August 24, 2024

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! 👀

v7.2.2

from branch-deploy.

bzurkowski avatar bzurkowski commented on August 24, 2024

@GrantBirki The locking feature worked for me after upgrading to v7.2.2:

Screenshot 2023-08-18 at 12 30 17

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.

GrantBirki avatar GrantBirki commented on August 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.