Skip to content
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

GitHub: Checks rerunning on duplicate PR's #2189

Open
snorlaX-sleeps opened this issue Apr 7, 2022 · 2 comments
Open

GitHub: Checks rerunning on duplicate PR's #2189

snorlaX-sleeps opened this issue Apr 7, 2022 · 2 comments
Labels
bug Something isn't working help wanted Good feature for contributors

Comments

@snorlaX-sleeps
Copy link
Contributor

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request. Searching for pre-existing feature requests helps us consolidate datapoints for identical requirements into a single place, thank you!
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Overview of the Issue

This may not be a valid case, but noticed while testing an Atlantis installation:

  • I have a main branch where Atlantis is integrated, which plans successfully, no applies run yet.
  • Created a duplicate branch from this branch and created a PR - atlantis unlock was run on the initial branch.

When running plans on the duplicate branch (by duplicate I mean the same commits), both branches report the same status checks at the bottom:

  • so when I forgot to atlantis unlock the original PR, both branches reported failures
  • when I successfully plan on the second PR, both branches report a success

I am wondering if this is because of how status checks are reported? Is it based on the latest commit ID?
I have only noticed this happening since the individual "plan" status checks for each workspace / project were added, unsure if it was occurring before.
Also note this is during an Atlantis installation, so I am modifying every workspace in my repo.

This installation is a Kubernetes statefulset
Looking on the Atlantis pod, I can see the initial PR's workspaces have all been deleted after the unlock, leaving only the "default"

Reproduction Steps

  1. Create a branch, run some atlantis plans
  2. Create a second branch from the first (pointing to the same "source" branch, in my case main)
  3. Run atlantis plan
  4. Both branches should report the status from the second branch

Logs

Logs look like standard plan and apply logs, there is the commit ID mentioned when doing pulls and plans.

Environment details

Kubernetes version: v1.21

Running a statefulset with a lot of environment variables

Atlantis version: latest / v0.19.2

Repo Config:

repos:
- id: /.*/
  apply_requirements: [approved, mergeable]
  allowed_overrides: [apply_requirements, workflow, delete_source_branch_on_merge]
  allow_custom_workflows: true

Additional Context

Both PR's showing identical status checks while planning
image

@snorlaX-sleeps snorlaX-sleeps added the bug Something isn't working label Apr 7, 2022
@jamengual
Copy link
Contributor

is this still happening in v0.19.8?

@jamengual jamengual added the waiting-on-response Waiting for a response from the user label Aug 26, 2022
@snorlaX-sleeps
Copy link
Contributor Author

Unsure @jamengual - we are still using the nightly build created by this PR: #2180
So haven't got any new features.
We require parallel plans to support workspaces with the same name aka <product>-<region_code> and need that change in before we can upgrade.

@jamengual jamengual added help wanted Good feature for contributors and removed waiting-on-response Waiting for a response from the user labels Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Good feature for contributors
Projects
None yet
Development

No branches or pull requests

2 participants