-
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
Gitlab - atlantis/apply goes into "running" state prematurely #2138
Comments
I have the same error:
Thanks! |
Same issue I am facing on github. Its shoing atlantis/apply pending. I closed the pull request and created the new pullrequet there without running atlantis command in pullrequest its showing pending. What could be issue. |
Does anyone try an older version of atlantis? I wonder if there was a change on the Github Api or Github go library. PRs are welcome. |
0.18.5 was reported to work. |
@jamengual 1.17.6 also works. FWIW since this also affects Gitlab I think the likelihood of this being a Github-specific API issue is very low. There's 2 symptoms that are being reported here:
|
but the gitlab issue mentioned was merged and since then we did not hear about this until now but we did some security updates to a bunch of client libraries so we are wondering if this could have been something related to that. |
Can confirm that we see this for bitbucket server as well (not github specific). The apply state shows as running as soon as the PR is planned and remains that way until actually applied. |
We just released a fix for the VCS status issue some of you have reported on our dev image docker pull ghcr.io/runatlantis/atlantis:dev Please test it and report back, Thanks. |
can confirm ghcr.io/runatlantis/atlantis:dev fixed the issue for me. appreciate it! |
We are still seeing this issue on the most recent release (0.19.4). Can anyone confirm if the fix made it into that version? All prs show an in-progress apply from the moment the first plan is initialized. |
Community Note
Overview of the Issue
The
atlantis/apply
job for the pipeline enters therunning
state immediately when theatlantis/plan
workflow runs. It should enterpending
state first (to prevent the merge request from being merged beforeatlantis apply
has been run) and only enter therunning
state when theapply
workflow begins. I suspect that this may have occurred as a result of #1971 . I believe that ideally all jobs in the pipeline would be set topending
on init,running
when their respective workflow begins, andfailed/success
when the workflow concludes.Reproduction Steps
Open a merge request in Gitlab, wait for Atlantis to respond with the terraform plan. At this point the Atlantis pipeline will have three jobs with the following respective states:
atlantis/policy_check
, successatlatnis/plan
, successatlantis/apply
, runningThis is despite the
atlantis/apply
job not having been triggered yet.Environment details
Additional Context
#1971
The text was updated successfully, but these errors were encountered: