Skip to content

Atlantis runs plans on PRs even when no files matching when_modified patterns have changed #5389

@knjoroge

Description

@knjoroge

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

Atlantis is running plans on all pull requests, even when no files matching the patterns in the when_modified configuration have been modified. This is causing unnecessary plan executions and blocking the auto-merging of pull requests. This configuration has been working just fine. This started occurring about a week or two ago. Have any recent updates introduced a bug?


Environment details

Atlantis version: 0.33.0
Deployment method: Terraform module https://github.com/runatlantis/terraform-gce-atlantis
VCS: GitHub
Terraform version: v1.6.3


Logs

Image

Image

atlantis-server.yaml file:

repos:
- id: github.com/xxxx/monorepo
  apply_requirements: [mergeable]
  allowed_overrides: [workflow]

Atlantis server flags:

ATLANTIS_SILENCE_VCS_STATUS_NO_PLANS = true
ATLANTIS_SILENCE_VCS_STATUS_NO_PROJECTS = true
ATLANTIS_SILENCE_NO_PROJECTS = true
ATLANTIS_HIDE_PREV_PLAN_COMMENTS = true
ATLANTIS_HIDE_UNCHANGED_PLAN_COMMENTS = true

atlantis.yaml file:

version: 3
projects:
- name: 6-app-test-sandbox
  dir: infrastructure-gcp/6-app-test/environments/sandbox
  autoplan:
    when_modified:
    - '*.tf'
    - ../../modules/**/*.tf
    - ../../6-app-modules/**/*.tf
    - '**/*.tfvars'
    - ../../config/**/*.yaml
    - ../../modules/**/*.yaml
  workspace: default
  workflow: default
  terraform_version: v1.6.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions