https://www.runatlantis.io/ logo
Title
t

Tyler Allen

04/12/2023, 3:41 PM
šŸ‘‹ I had a user run an invalid plan command, inputting a wrong directory in the merge comments, now it is showing as a "failed" plan which blocks the merge is there anyway to undo that or remove that pipeline job
I just deleted the pipeline in gitlab to redo the plan, all is good for the moment, wondering how we can prevent that šŸ¤”
d

Dylan Page

04/12/2023, 3:47 PM
You should be able to re-run a new plan command to "refresh" the commit status
t

Tyler Allen

04/12/2023, 3:48 PM
doing a normal plan leaves the "erroneous" created plan in the pipeline
d

Dylan Page

04/12/2023, 3:51 PM
Hmm, can you file an issue with screenshots? It doesn't sound like an easy fix off the top of my head
t

Tyler Allen

04/12/2023, 3:51 PM
yeah sorry lol i deleted the pipeline before thinking about it
d

Dylan Page

04/12/2023, 3:51 PM
no worries lol
t

Tyler Allen

04/12/2023, 3:53 PM
but the scenario is as follows. ā€¢ Auto Plan has 9 Projects ā€¢ User wants to only replan one of those (mistypes the directory) and hits enter ā€¢ Atlantis tries to run the plan from the given directory (A pipeline stage is created) (it errors) ā€¢ The stage remains So i just deleted the pipeline and reran which is alost better than having the developer recreate an MR šŸ˜› but yeah was just curious not a big deal in any scenario, I may take a look at the code to see if potentially have atlantis send post back after some test or something
d

Dylan Page

04/12/2023, 4:00 PM
Yeah unfortunately there isn't much that I can think of in terms of a user command error that we could prevent without impacting usability. It would take some serious thought
t

Tyler Allen

04/12/2023, 4:00 PM
Oh i def understand, like i said everything is good, if anything this thread can be a reference for anyone that has it and can just handle it on the VCS side, I appreciate the chat Dylan means alot to me
šŸ™Œ 1
d

Dylan Page

04/12/2023, 4:00 PM
Not a problem Tyler, take care šŸ™‚
ā¤ļø 1