-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terragrunt project failing to apply due to locks acquired when planning PR #1590
Comments
Hi there, thanks for reporting! Seems you are using digger in backendless mode. Any more context around your workflow file and digger.yml would help debug firthwr the issue |
This is my ---
allow_draft_prs: true
generate_projects:
blocks:
- block_name: fastnorth
root_dir: organizations/fastnorth/
terragrunt: true
terragrunt_parsing:
parallel: true
createProjectName: true
auto_merge: true And this is my workflow file: ---
name: Digger terraform CI
on:
pull_request:
branches: ["main"]
types: [closed, opened, synchronize, reopened]
issue_comment:
types: [created]
if: contains(github.event.comment.body, 'digger')
workflow_dispatch:
jobs:
digger:
permissions:
actions: write # required for plan persistence
contents: write # required to merge PRs
id-token: write # required for workload-identity-federation
pull-requests: write # required to post PR comments
statuses: write # required to validate combined PR status
runs-on: ubuntu-latest
timeout-minutes: 60 # Same as the OIDC validtity time for now
steps:
- name: digger run
uses: diggerhq/digger@v0.5.11
with:
setup-aws: true
aws-role-to-assume: "arn:aws:iam::************:role/tf/github-terraform-digger"
setup-terraform: false
setup-tfenv: true
setup-terragrunt: true
terragrunt-version: 0.58.14
configure-checkout: true
no-backend: true
cache-dependencies: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_CONTEXT: ${{ toJson(github) }}
TF_VAR_github_token: ${{ secrets.ADMIN_TOKEN }} |
One more piece of information. |
I am having a similar issue, when I create a pull request my plan runs. But if i were to commit again to the same pull request, i have to unlock manually and then manually run |
I rolled back to v0.5.10 and it's working as expected now. So the issue seens to have been introduced on 0.5.11 |
Thanks folks for chiming in with these details to repro. Thanks @carcunha for helping pinpoint the version of the error. I'm suspecting its related to our recently introduced flag in digger.yml to disable locking from there #1586 #1578 so will start to look from there for something that could have caused it. |
I had this project that is failing to apply, seems to be around the locks due to the messages posted on the logs.
I checked the code, and it gets past line
digger/cli/pkg/digger/digger.go
Line 392 in 77ee0b1
The text was updated successfully, but these errors were encountered: