-
Notifications
You must be signed in to change notification settings - Fork 561
Closed
Description
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
log.Printf("Skipping plan policy checks because plan storage is not configured.") |
Following commands are going to be executed:
project: organizations_fastnorth_repositories_github-actions: commands: "digger apply",
project: organizations_fastnorth_repositories_github-docker-build: commands: "digger apply",
project: organizations_fastnorth_repositories_github-ecs-deploy: commands: "digger apply",
project: organizations_fastnorth_repositories_github-ecs-job-controller: commands: "digger apply",
project: organizations_fastnorth_repositories_github-stats: commands: "digger apply",
project: organizations_fastnorth_repositories_github-tf-static-analysis: commands: "digger apply",
project: organizations_fastnorth_repositories_github-utils: commands: "digger apply",
Running 'digger apply' for project 'organizations_fastnorth_repositories_github-actions' (workflow: default)
PR status, mergeable: true, merged: false
Skipping plan policy checks because plan storage is not configured.
Lock fastnorth/terraform-github#organizations_fastnorth_repositories_github-actions
Lock result: false
Running 'digger apply' for project 'organizations_fastnorth_repositories_github-docker-build' (workflow: default)
PR status, mergeable: true, merged: false
Skipping plan policy checks because plan storage is not configured.
Lock fastnorth/terraform-github#organizations_fastnorth_repositories_github-docker-build
Lock result: false
Running 'digger apply' for project 'organizations_fastnorth_repositories_github-ecs-deploy' (workflow: default)
PR status, mergeable: true, merged: false
Skipping plan policy checks because plan storage is not configured.
Lock fastnorth/terraform-github#organizations_fastnorth_repositories_github-ecs-deploy
Lock result: false
Running 'digger apply' for project 'organizations_fastnorth_repositories_github-ecs-job-controller' (workflow: default)
PR status, mergeable: true, merged: false
Skipping plan policy checks because plan storage is not configured.
Lock fastnorth/terraform-github#organizations_fastnorth_repositories_github-ecs-job-controller
Lock result: false
Running 'digger apply' for project 'organizations_fastnorth_repositories_github-stats' (workflow: default)
PR status, mergeable: true, merged: false
Skipping plan policy checks because plan storage is not configured.
Lock fastnorth/terraform-github#organizations_fastnorth_repositories_github-stats
Lock result: false
Running 'digger apply' for project 'organizations_fastnorth_repositories_github-tf-static-analysis' (workflow: default)
PR status, mergeable: true, merged: false
Skipping plan policy checks because plan storage is not configured.
Lock fastnorth/terraform-github#organizations_fastnorth_repositories_github-tf-static-analysis
Lock result: false
Running 'digger apply' for project 'organizations_fastnorth_repositories_github-utils' (workflow: default)
PR status, mergeable: true, merged: false
Skipping plan policy checks because plan storage is not configured.
Lock fastnorth/terraform-github#organizations_fastnorth_repositories_github-utils
Lock result: false
Commands executed successfully
Digger finished successfully
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
motatoes commentedon Jun 25, 2024
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
carcunha commentedon Jun 25, 2024
This is my
digger.yml
:And this is my workflow file:
carcunha commentedon Jun 25, 2024
One more piece of information.
I just tried issueing a
digger unlock
first. And then anotherdigger apply
. Then it works.But the lock was acquired when the PR was opened, and I believe that a digger apply for that same PR should re-use that same lock, and unlock when it's finished applying, and then merge.
opp-svega commentedon Jun 25, 2024
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
digger plan
before a plan run agains. Once i have a successful plan, i have to rundigger unlock
and thendigger apply
to apply my terraform.carcunha commentedon Jun 26, 2024
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
motatoes commentedon Jun 27, 2024
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.