Open paymog opened 3 months ago
❮❮❮ kubectl exec --namespace default -it statefulset/atlantis -- /bin/bash
atlantis-0:/$ terraform workspace list
* default
It seems the default workspace does exist.
The path printed in the error does not exist though
atlantis-0:/$ cd /atlantis-data/repos/goldsky-io/goldsky-infra/
atlantis-0:/atlantis-data/repos/goldsky-io/goldsky-infra$ ls
atlantis-0:/atlantis-data/repos/goldsky-io/goldsky-infra$
ah, removing
ATLANTIS_INCLUDE_GIT_UNTRACKED_FILES: true
seems to fix the issue, now my logs say
atlantis-0 atlantis {"level":"info","ts":"2024-08-06T20:47:20.823Z","caller":"events/working_dir.go:235","msg":"creating dir '/atlantis-data/repos/goldsky-io/goldsky-infra/1286/default'","json":{"repo":"goldsky-io/goldsky-infra","pull":"1286"}}
but there are other issues for me to work though.
It seems that ATLANTIS_INCLUDE_GIT_UNTRACKED_FILES
doesn't properly account for creating the missing directory (or there's other config I need which isn't well documented)
I just ran into this. Why is this no longer marked as a bug?
If include-git-untracked-files
is set, Atlantis will try to check for untracked files before it checks out the PR:
2024-11-14T00:29:29.769Z events/project_command_builder.go:330 'include-git-untracked-files' option is set, getting
untracked files
2024-11-14T00:29:29.770Z events/instrumented_project_command_builder.go:75 Error building plan commands: checking i
f workspace exists: stat /home/deploy/.atlantis/repos/foo/bar/123/default: no such file or directory
github.com/runatlantis/atlantis/server/events.(*InstrumentedProjectCommandBuilder).buildAndEmitStats
github.com/runatlantis/atlantis/server/events/instrumented_project_command_builder.go:75
github.com/runatlantis/atlantis/server/events.(*InstrumentedProjectCommandBuilder).BuildPlanCommands
github.com/runatlantis/atlantis/server/events/instrumented_project_command_builder.go:35
github.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).run
github.com/runatlantis/atlantis/server/events/plan_command_runner.go:195
github.com/runatlantis/atlantis/server/events.(*PlanCommandRunner).Run
github.com/runatlantis/atlantis/server/events/plan_command_runner.go:307
github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand
github.com/runatlantis/atlantis/server/events/command_runner.go:367
(This is with Atlantis 0.28.5. I could try 0.30.0, but I don't see any bug fixes that seem relevant in the changelog.)
Community Note
Overview of the Issue
My PRs get comments of
My helm values are as follows
I'm using a custom docker image like so
I'm trying to follow the docs for getting CDKTF working.
I have the following
atlantis.yaml
in my repoLogs
Additional Context
Using helm chart 5.4.4