Commit Graph

810 Commits

Author SHA1 Message Date
Florent Monbillard
1594fc2f83 GitLab's Merge Requests are using ! not # 2020-05-28 17:09:59 -04:00
tammert
856170821c Changed default log level for web requests from INFO to DEBUG 2020-05-26 19:52:13 +02:00
Luke Kysow
df21016f81 Merge pull request #1049 from runatlantis/auto-generate-commit
Update go-github, empty automerge commit
2020-05-25 16:56:05 -07:00
Luke Kysow
7b2a0efc82 Merge pull request #1048 from runatlantis/update-pegomock
Update pegomock
2020-05-25 16:55:45 -07:00
CJ Ketchum
d7ce63742e Add test for plan-draft behavior 2020-05-25 16:45:38 -07:00
Christopher Ketchum
c300dee745 Add flag to toggle autoplanning on draft PRs 2020-05-25 16:28:55 -07:00
Luke Kysow
aa01df6f7d Merge pull request #1052 from runatlantis/draining
Draining cleanup
2020-05-25 15:45:54 -07:00
Luke Kysow
43ebee3175 Draining cleanup 2020-05-25 15:09:51 -07:00
Luke Kysow
909723f22e Merge pull request #1051 from runatlantis/draining
Support graceful shutdown
2020-05-25 15:09:25 -07:00
Luke Kysow
78b1ea25d5 Refactor draining feature
- trigger on SIGTERM/INT rather than HTTP POST
- remove atlantis drain command
- refactor into generic status controller
2020-05-25 15:03:08 -07:00
Luke Kysow
6418b57f55 Merge pull request #926 from segmentio/parallel-plans-upstream
Add support for parallel plans
2020-05-25 12:25:43 -07:00
Luke Kysow
3eaa67e1ef Update go-github, empty automerge commit
Using an empty auto-merge commit will cause GitHub to autogenerate its
own commit message like would happen when using the UI.
2020-05-25 12:07:52 -07:00
Luke Kysow
8979a5fd09 Update pegomock 2020-05-25 11:58:50 -07:00
Paris Morali
cb26355da1 Add the rest of the BoltDB interface methods 2020-05-25 15:58:01 +01:00
Andrew Ring
3c87af9996 Release locks when closing draft PRs
If plan is run manually in a draft PR, the PR may hold locks. If
the draft PR is then closed, without first marking it Ready For
Review, the locks are left in place. To resolve this, we can
process closing draft PRs in the same way as non-draft PRs.
2020-05-13 10:35:22 -07:00
Paris Morali
ade9b31593 Add BoltDB interface and some relevant tests
With BoltDB interface we are able to mock/stub and
improve test coverage.
Some other refactoring was required to make code aware
and compatible with the new interface
2020-05-11 15:13:36 +01:00
Paris Morali
ce1d577f1d Integrate PR feedback and tests adapted 2020-05-09 11:42:48 +01:00
Marc Barlo
0e22d2baab gofmt -s 2020-05-08 10:01:47 -07:00
Marc Barlo
bebfdcaeef Add back the parallel_plan repo cfg option
+ Default parallel plans breaks in a lot of autoplan scenarios i.e. with shared workspaces
+ Added a set of e2e tests to check parallel plans and applies
+ Also added an option to the Terraform client to turn off the plugin cache. This was breaking the e2e test suite (never seen this error in practice)
2020-05-07 22:14:04 -07:00
Marc Barlo
7452d6aa13 Make parallel plans the default. Add flag for parallel apply 2020-05-05 18:15:10 -07:00
Marc Barlo
4d1899f032 Remove pool size option, set default to 15 2020-05-05 17:33:52 -07:00
Benoit BERAUD
fa6477984c Fix failing test 2020-05-05 16:36:34 +02:00
Benoit BERAUD
c8bbad6de7 Add even more tests 2020-05-05 16:17:43 +02:00
Benoit BERAUD
46a1fe0595 small fixes 2020-05-05 16:15:24 +02:00
Benoit BERAUD
6d42a56747 Move drainage checks to the async command runner 2020-05-05 16:15:24 +02:00
Benoit BERAUD
e64fbad5a3 Add drain operation + endpoint to clean properly the server before shutdown 2020-05-05 16:15:24 +02:00
Marc Barlo
d078357d65 Merge branch 'master' of github.com:runatlantis/atlantis into parallel-plans-upstream 2020-05-04 17:19:34 -07:00
Luke Kysow
3c0c59764e Refactor tests 2020-04-28 12:51:39 -07:00
mcdafydd
86cf4d31c6 Update server/events/project_locker_test.go
Co-Authored-By: Luke Kysow <1034429+lkysow@users.noreply.github.com>
2020-04-27 18:56:01 -05:00
David McPike
a3099f3af8 Change test to use NewClientProxy 2020-04-26 21:59:03 -05:00
Paris Morali
c5eda2742b Refactoring model to allow NotPlanned status
As part of the fix the model is slightly extended
to allow for an extra PlanStatus indicating the absence
of a plan for a project. This allows us to unlock a project
and delete the plan, without having to completely remove the
project status.
That means that atlantis knows there is a project that should
normally have a plan and be accounted for, but the plan has been
deleted/unlocked.
The reason this is important is so that we can't "trick" atlantis
into thinking that the PR can be merged just because we've lost
track of a projectstatus as a result of a manual unlock.
2020-04-26 13:55:42 +01:00
David McPike
c8b2252704 Add VCSClient to server ProjectLocker and tests 2020-04-24 22:59:24 -05:00
Paris Morali
c85155e583 Fix: Do not automerge with errors or noop
Extra guards have been added to preven automatically
merging a branch upstream when automerge is enabled
but errors exist or if no commands where executed at all.

An example of this bug in action is when you delete a plan and
atlantis lock via the UI and then execute
atlantis apply
No projects are applied but the branch is automerged
2020-04-23 17:17:58 +01:00
David McPike
4651e39fe1 Update mock_client 2020-04-22 00:08:54 -05:00
David McPike
bc069d4b0c Add MarkdownPullLink function to VCS clients 2020-04-21 09:19:55 -05:00
David McPike
1ec57b855e Fixes #957 2020-04-21 09:19:55 -05:00
Christopher Ketchum
9ce981fc6c Ignore Github draft PRs (#977)
* Ignore Github draft PRs
2020-04-20 21:04:19 -07:00
Luke Kysow
80347f4c1d Merge remote-tracking branch 'origin/master' into hide-comments 2020-04-15 21:47:58 -07:00
Luke Kysow
6e8b4eed16 Small refactor 2020-04-15 21:44:34 -07:00
John Reese
26467c7b66 Update approved requirement documentation to be consistent 2020-04-15 20:44:32 -07:00
Luke Kysow
418791868a Merge remote-tracking branch 'origin/master' into bolt-upgrade 2020-04-15 20:25:35 -07:00
Luke Kysow
cad1242b3e Merge remote-tracking branch 'origin/master' into bolt-upgrade 2020-04-15 20:18:59 -07:00
John Reese
9d97faf617 trigger test 2020-04-13 13:54:54 -04:00
John Reese
259db6d30c golint 2020-04-13 13:33:32 -04:00
John Reese
fd1f61a578 update status check 2020-04-13 13:30:49 -04:00
John Reese
23de79a36b update wrap 2020-04-13 13:27:28 -04:00
John Reese
f133db6570 merge conflicts 2020-04-13 13:25:07 -04:00
John Reese
68c2f1fc42 review fixes 2020-04-13 13:23:37 -04:00
Luke Kysow
82afe0b061 Fix lint issues 2020-04-13 10:04:37 -07:00
John Reese
3c0de2f81f Use latest azuredevops package 2020-04-11 17:36:26 -04:00