Joey McDaniel
03/12/2024, 8:42 PMundiverged behavior that is preventing me from moving forward. An issue as in - it just flat doesn't work. This is pretty important functionality to have I would think as you can make some big mistakes by either seeing the wrong plan or your apply being destructive. I have the following requirements set in my repo config:
plan_requirements: [undiverged]
apply_requirements: [approved, mergeable, undiverged]
import_requirements: [approved, mergeable, undiverged]
as I understand, the checkout strategy for undiverged also has to be set to merge, so I have changed that behavior as well:
ATLANTIS_CHECKOUT_STRATEGY: merge
I am also using GitHub.
In a PR that is behind the base branch (main), I type atlantis plan and the plan just plans when it shouldn't. It also applies when it shouldn't as well. There's no checking going on that the branch is dirty and needs to be rebased. To troubleshoot, I dug around github issues and found https://github.com/runatlantis/atlantis/issues/4051, which has a very similar issue that I am experiencing. They suggested it might be due to parallel planning/applying, so I also disabled any parallelization around those actions. Unfortunately, without success.
I also found this thread here: https://atlantis-community.slack.com/archives/C5MGGAV0C/p1709226454828869, but there wasn't anything in here that I haven't already tried.
Does this feature work at all?Luke Massa
03/13/2024, 2:39 AMLuke Massa
03/13/2024, 2:42 AMJoey McDaniel
03/13/2024, 12:49 PM$ atlantis version
atlantis v0.27.0 (commit: bb08b7d) (build date: 2023-12-12T18:50:23.560Z)Luke Massa
03/13/2024, 2:52 PMLuke Massa
03/13/2024, 2:53 PMAlberto Rojas
04/29/2024, 10:42 AMAlberto Rojas
04/29/2024, 10:46 AMJoey McDaniel
04/29/2024, 12:55 PMAlberto Rojas
04/29/2024, 1:21 PMLuke Massa
04/29/2024, 2:00 PMLuke Massa
05/01/2024, 1:22 AMundiverged as a "plan requirement" at allLuke Massa
05/01/2024, 1:23 AMLuke Massa
05/01/2024, 1:23 AMLuke Massa
05/01/2024, 1:23 AMundiverged plan requirement should do at allLuke Massa
05/01/2024, 1:27 AMmerge strategy what happens is:
1. Cut branch from main
2. Make a few commits to branch
3. Push branch up, it runs a plan by creating atlantis-merge as an essentially "empty commit" on top of branch
4. Move main forward one commit
5. Run atlantis plan again, it will create a new atlantis-merge commit as a merge of main and branchLuke Massa
05/01/2024, 1:28 AMundiverged, but I'm not actually sure what undiverged should mean at all if you have merge strategy, since it's doing what it's supposed to be doing and incorporating changes from mainLuke Massa
05/01/2024, 1:30 AMundiverged as a "plan requirement" and change the docs. Thoughts?Luke Massa
05/01/2024, 3:28 AM