-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that branch has been updated to point off of master #35
Comments
Comment by @grobie That wouldn't work well for us. While we don't have a company-wide monorepo, we do have one for all infrastructure changes. There can be tens of unrelated commits in the same repository per hour. A better approach would be to ensure that the commit of the latest applied state is in the history of the current commit. I'll explain that tomorrow in our call. |
Comment by @lkysow Ahh interesting, I should have thought of that. Right now Atlantis just uses a file-based key-value store which is "okay" to lose because all it records are locks. It might be dangerous to rely on that store for looking up commit => state information. At some point we'll move to an actual DB which might enable that better. I agree that that would be the most exact way to ensure the pull request is up to date. |
I think there is some middle ground here since at least in the case of github that is a type of branch protection. If its enabled we should honor it and not allow the plan to run and otherwise give people enough rope to hang themselves. |
I think it would be great to attempt to auto-rebase on master. This is a feature that a tool like Jenkins supports. |
Ya auto rebase off master when possible would be awesome. |
The original issue was about warning users if they were generating a plan from a pull request that was out of date with master. This hasn't been solved so I don't think it makes sense to close the issue. Even with the warning, we have to find a way to deal with the case of users who don't use |
Sure, the branch could be configurable, but if you just supported rebasing onto whatever that branch is out of the box it would resolve both cases. I don't understand how this is a desirable feature, but #374 was not |
We can query the repo for the name of the |
Issue by @lkysow
Tuesday Sep 05, 2017 at 01:54 GMT
Migrated from hootsuite/atlantis#143
Why was it migrated?
Right now we don't check whether a branch has been updated to the latest master. We should just error out if it hasn't, otherwise the plan will be weird.
The text was updated successfully, but these errors were encountered: