-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
v0.22.0+: approve_policies: results in error "Pull request must be mergeable before running apply." #2974
Comments
I wonder if this is a regression. Did you see this issue in previous versions? Is this issue present in v0.22.1 ? |
Looks like this is the case. I lowered version down to v0.20.0 and the problem went away. |
Could you try 0.22.1 and keep going lower until it's resolved? I'm curious where this regression came from. |
Here are some of the |
Worked my way up from |
Hmm and then if you have more time, to further see if we can identify the correct pr, could you check the following pre releases? this are the pre-releaes between v0.21.0 (nov 28) and v0.22.0 (jan 11)
Thank you |
@krrrr38 is it possible that this issue resulted after merging #2939 or #2877. I'm having trouble tracking down the exact change. atlantis/server/events/instrumented_project_command_runner.go Lines 76 to 80 in c94e63c
|
@pseudomorph is your PR mergeable? Were you able to run approve policies without needing your pr to be mergesble before? |
Ah thank you @krrrr38 so then this regression came from pr #2767 cc @Fabianoshz |
Wow. Awesome work and collaboration here y'all! |
Hi guys, that seems to be a quick fix, give me a minute and I will open a PR. |
it looks like @Fabianoshz fixed this issue very quickly. Nice job! @pseudomorph once the new image is uploaded, could you try the |
I tested against the built image and confirmed the issue is gone. |
Community Note
Overview of the Issue
Running
atlantis approve_policies
results in failed apply status messages.Reproduction Steps
Run no-op plan on stack, then approve policies.
Logs
error from stacktrace
Environment details
v0.22.2
atlantis server --config /app/files/config.yaml --repo-config /app/files/repositories.yaml --enable-policy-checks
Atlantis server-side config file:
Additional Context
The policy checks work as expected, but something seems to be triggering an apply in code. None of our default or custom workflows are specifying anything for apply workflow. I cannot find any connection which would implicate this behavior between workflow steps or command running in code. I'm a bit stumped.
The text was updated successfully, but these errors were encountered: