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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Atlantis erroring on self when commands are run on closed PRs #3559

Closed
wyardley opened this issue Jun 28, 2023 · 1 comment
Closed

Atlantis erroring on self when commands are run on closed PRs #3559

wyardley opened this issue Jun 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@wyardley
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

Possible regression of #533
When running a command on a closed pull request, Atlantis seems to error on its own command with
Error parsing command: EOF found when expecting closing quote

Reproduction Steps

  1. Run atlantis plan

Logs

Logs
{
  "insertId": "dskqyz7hf6wgdbhr",
  "jsonPayload": {
    "ts": "2023-06-28T18:02:41.150Z",
    "level": "info",
    "msg": "command was run on closed pull request",
    "caller": "events/command_runner.go:409",
    "json": {
      "repo": "xxx/yyy",
      "pull": "2087"
    }
  },
  "resource": {
    "type": "k8s_container",
    "labels": {
      "location": "us-west2",
      "pod_name": "atlantis-0",
      "project_id": "xx",
      "namespace_name": "atlantis",
      "cluster_name": "infra-cluster-01",
      "container_name": "atlantis"
    }
  },
  "timestamp": "2023-06-28T18:02:41.150929969Z",
  "severity": "INFO",
  "labels": {
    "compute.googleapis.com/resource_name": "gke-infra-cluster-01-default-node-poo-37d84d77-8qqr",
    "k8s-pod/statefulset_kubernetes_io/pod-name": "atlantis-0",
    "k8s-pod/app": "atlantis",
    "k8s-pod/controller-revision-hash": "atlantis-6fdf9d5cb7"
  },
  "logName": "projects/xxx/logs/stderr",
  "receiveTimestamp": "2023-06-28T18:02:43.480767837Z"
}
{
  "insertId": "8ofssrzueseixwub",
  "jsonPayload": {
    "ts": "2023-06-28T18:02:42.472Z",
    "level": "info",
    "caller": "events/events_controller.go:549",
    "json": {
      "gh-request-id": "X-Github-Delivery=f9bccdc0-15dd-11ee-9556-84ca52f9d5ee"
    },
    "msg": "parsed comment as <nil>"
  },
  "resource": {
    "type": "k8s_container",
    "labels": {
      "location": "us-west2",
      "container_name": "atlantis",
      "cluster_name": "infra-cluster-01",
      "pod_name": "atlantis-0",
      "namespace_name": "atlantis",
      "project_id": "xxx"
    }
  },
  "timestamp": "2023-06-28T18:02:42.472837417Z",
  "severity": "INFO",
  "labels": {
    "compute.googleapis.com/resource_name": "gke-infra-cluster-01-default-node-poo-37d84d77-8qqr",
    "k8s-pod/controller-revision-hash": "atlantis-6fdf9d5cb7",
    "k8s-pod/statefulset_kubernetes_io/pod-name": "atlantis-0",
    "k8s-pod/app": "atlantis"
  },
  "logName": "projects/xxx/logs/stderr",
  "receiveTimestamp": "2023-06-28T18:02:43.480767837Z"
}

Environment details

  • Atlantis version: v0.24.3
  • Deployment method: GCS (via Flux)
  • If not running the latest Atlantis version have you tried to reproduce this issue on the latest version:
  • Atlantis flags: server

Atlantis server-side config file:
let us know if you need more config details

Repo atlantis.yaml file:
let us know if you need more details

Additional Context

image
@wyardley wyardley added the bug Something isn't working label Jun 28, 2023
@wyardley
Copy link
Contributor Author

wyardley commented Jul 5, 2023

We disabled autoplan globally, which, from my perspective, at least, is Good Enough (TM)

@wyardley wyardley closed this as completed Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant