atlantis icon indicating copy to clipboard operation
atlantis copied to clipboard

Regression: Using max-comments-per-command breaks hide-prev-plan-comments=true

Open mubarak-j opened this issue 5 months ago • 1 comments

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

We recently tested the new flag ATLANTIS_MAX_COMMENTS_PER_COMMAND=1 released in v.029 and we were already using ATLANTIS_HIDE_PREV_PLAN_COMMENTS=true to reduce the clutter in Pull Requests comments. However, we found that when combining these two flags (environment variables in our case), we noticed that Atlantis no longer hides previous plan comments and therefore breaks the existing behavior for --hide-prev-plan-comments=true.

Reproduction Steps

  1. Configure Atlantis pod with the following environment variables: ATLANTIS_HIDE_PREV_PLAN_COMMENTS=true ATLANTIS_MAX_COMMENTS_PER_COMMAND: 1

  2. Run multiple atlantis plan commands in pull request

  3. Observe previous comments not being auto-hidden by Atlantis.

Logs

No relevant details were found in the logs.

Environment details

environment:

  AWS_REGION: us-east-1
  ATLANTIS_ALLOW_COMMANDS: "version,plan,apply,unlock,approve_policies,import,state"
  ATLANTIS_DISABLE_AUTOPLAN_LABEL: "no-autoplan"
  ATLANTIS_DISABLE_UNLOCK_LABEL: "do-not-unlock"
  ATLANTIS_EMOJI_REACTION: "eyes"
  ATLANTIS_ENABLE_REGEXP_CMD: "true"
  ATLANTIS_PARALLEL_POOL_SIZE: 7
  ATLANTIS_HIDE_PREV_PLAN_COMMENTS: "true"
  ATLANTIS_MAX_COMMENTS_PER_COMMAND: 1
  • EKS v1.29
  • Helm Chart v5.5.0
  • Atlantis v0.29.0

Additional Context

NA

mubarak-j avatar Sep 13 '24 19:09 mubarak-j