Commit Graph

46 Commits

Author SHA1 Message Date
Rui Chen
d4d0cd2fdb chore: update gitlab repo ref (#5418)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2025-04-03 01:27:26 -05:00
Henry Muru Paenga
76b0148fce fix: Update lock for e2e tests (#4939) 2024-09-22 19:17:43 -04:00
Luke Massa
4d4ccf1e04 feat: Add gitlab e2e tests (#4728) 2024-08-28 10:14:40 -04:00
Luke Massa
fcd62faa87 chore: Improve process management in e2e test (#4840) 2024-08-15 09:52:17 -04:00
Luke Massa
a917824840 chore: Use existing github env vars for e2e (#4733) 2024-07-08 10:12:26 -04:00
Luke Massa
a1f7e980cb chore: pin terraform versions in CI (#4645) 2024-06-10 14:24:10 -04:00
Rui Chen
7e79f56173 feat(e2e): migrate off circleci (#4576)
Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: Christian Winther <jippignu@gmail.com>
2024-05-20 12:02:10 -04:00
Christian Winther
287add4086 fix: GitHub tests emitting unexpected keepers = {} (#4462) 2024-04-24 12:50:07 -07:00
Dylan Hitt
cc994a3dba build: fix build terraform/opentofu build pathing (#4439)
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
2024-04-19 08:06:42 -05:00
nitrocode
4750dc2dc8 feat: add opentofu binary to container (#4341)
Signed-off-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2024-03-23 11:57:58 -04:00
Dylan Page
34383f4d77 fix(e2e-tests): add ngrok authtoken (#4125) 2024-01-06 19:48:23 -05:00
MB
89a028ffd2 fix(gitlab): Prevent nil pointer dereference when HeadPipeline is empty (#3428)
In this particular example `mr.HeadPipeline.SHA` panics on a nil pointer dereference because HeadPipeline is empty.

This seems to be caused by the lack of permission to update the commit status.

```go
runtime.gopanic
        runtime/panic.go:1038
runtime.panicmem
        runtime/panic.go:221
runtime.sigpanic
        runtime/signal_unix.go:735
github.com/runatlantis/atlantis/server/events/vcs.(*GitlabClient).PullIsMergeable
        github.com/runatlantis/atlantis/server/events/vcs/gitlab_client.go:208
github.com/runatlantis/atlantis/server/events/vcs.(*ClientProxy).PullIsMergeable
        github.com/runatlantis/atlantis/server/events/vcs/proxy.go:72
github.com/runatlantis/atlantis/server/events/vcs.(*pullReqStatusFetcher).FetchPullStatus
        github.com/runatlantis/atlantis/server/events/vcs/pull_status_fetcher.go:28
github.com/runatlantis/atlantis/server/events.(*ApplyCommandRunner).Run
        github.com/runatlantis/atlantis/server/events/apply_command_runner.go:105
github.com/runatlantis/atlantis/server/events.(*DefaultCommandRunner).RunCommentCommand
        github.com/runatlantis/atlantis/server/events/command_runner.go:252
```

The least invasive solution is to simply use the commit-hash from pull and guess that the pipeline was "skipped" unless the HeadPipeline is there.

The outcome is:

When mr.HeadPipeline is present:
- use the commit hash and status from the HeadPipeline
When mr.HeadPipeline is NOT present:
- use the commit hash from pull request struct
- assume the pipeline was "skipped"

In cases where GitLab is configured to require a pipeline to pass, this results on a message saying the MR is not mergeable.

More info:
- https://github.com/runatlantis/atlantis/issues/1852
2023-08-04 13:00:47 -04:00
nitrocode
83ca6ad4c1 fix(e2e-deps): fix jq download (#3464)
* fix(e2e-deps): fix jq download

* Update e2e-deps.sh
2023-05-30 19:41:21 -07:00
nitrocode
f5c781400d fix(tests): Pin ngrok to v2 and use https (#3429)
* fix(tests): Pin ngrok to v2 and use https
2023-05-22 11:11:19 -04:00
nitrocode
6f7ee2ef39 Bump to atlantis-base:2022.11.13 and use cimg/go:1.19 (#2673)
* Bump to atlantis-base:2022.11.13

* Use cimg/go back image

* Use correct path of cimg/go binary dir

* e2e: use /usr/bin

* e2e: add set -e

* circleci: use testing-env:2022.11.13

* e2e: use /home/circleci/go/bin

* e2e: revert to testing-env:2021.08.31 image
2022-11-13 14:51:18 -06:00
rui
2a0b78051e feat: use goreleaser to replace the binary-release script (#1873)
* feat: add goreleaser flow

* del binary-release script
2021-10-31 11:38:49 -04:00
Luke Kysow
a597bbbb5a Regen mocks with latest pegomock and update scripts (#1524)
* Update go-generate to run as a script

It was taking forever to run via the previous Makefile command. I don't
exactly know why. Perhaps because it was passing all the packages in as
multiple arguments?

Either way, this change allows it to actually run through in about 20
minutes.

* Regenerate all mocks using latest pegomock

Pegomock version v2.9.0

* Format mocks outside of regular mocks directory.

These mocks are outside of the regular directory due to an import cycle
causing us to have to have these not under a /mocks directory so they
need to be formatted since they're not excluded.

* Add back make test target
2021-04-23 09:26:35 -07:00
chenrui
f86aec2213 chore(deps): terraform 0.14.2 (#1308)
* Revert "Revert "chore(deps): terraform 0.14.2 (#1305)" (#1307)"

This reverts commit cb003dbf97.

* deprecate --allow-repo-config

Signed-off-by: Rui Chen <rui@meetup.com>
2020-12-12 20:41:43 -05:00
Paul Groudas
ef610a650f Add arm64 (Linux) binary releases. (#1291)
Hashicorp has recently added arm64 builds with their recent 0.14
release:  https://www.hashicorp.com/blog/announcing-hashicorp-terraform-0-14-general-availability

> Terraform 0.14 also adds official support for Linux ARM64 builds.
> We’ve gone further and added Linux ARM64 support in the latest 0.13.x releases.

Similarly, recent versions of popular providers are also published with
arm64 builds.

This change updates the build script in order to produce an arm64
binary.

This would be useful, for example, for running in the cloud with one of
Amazon graviton2 instance types, or at a smaller scale on a Raspberry Pi
3 (or newer).
2020-12-10 14:52:59 -05:00
Luke Kysow
8ac19e4017 Deprecate --repo-whitelist for --repo-allowlist 2020-07-25 23:50:09 -07:00
Luke Kysow
4fa32f8906 Fix build 2020-04-24 14:43:06 -07:00
Luke Kysow
b99832f99b Fix e2e tests 2019-08-26 19:24:47 +02:00
Luke Kysow
4dbdde8543 Upgrade to Terraform 0.12
To be clear, Atlantis was compatible with 0.12 before this commit, but
this change makes 0.12 the default version *if* users haven't set the
--default-tf-version flag.
2019-05-23 11:42:58 -04:00
Luke Kysow
52714485a9 Don't exit script before we can print test failure 2018-12-14 12:18:26 -06:00
Luke Kysow
781ded10b4 Output logs on e2e failures.
Also disable the make test step because there are no unit tests in the
e2e directory (as expected).
2018-11-30 10:10:53 -06:00
Luke Kysow
13a70c772d Add new --allow-repo-config flag. 2018-06-30 23:27:15 +02:00
Luke Kysow
b4993b60ea Rename bootstrap to testdrive.
Bootstrap is meant for a system that sets itself up. This command is
more like a testing mode so I want to rename it to avoid confusion.

Fixes #129 and came out of #117.
2018-05-30 13:35:05 +02:00
Luke Kysow
48763e7345 Don't run e2e tests on fork PRs. 2018-03-16 13:18:43 -07:00
Luke Kysow
6c159feff4 Rename to runatlantis from atlantisnorth. 2018-02-18 21:28:18 -08:00
Luke Kysow
0299d3ee12 Move to new atlantisnorth repo 2018-02-06 13:29:36 -08:00
Luke Kysow
cbbd59d09c Move bindata to static package. Clean up coverage script (#149) 2017-09-22 17:58:30 -07:00
Luke Kysow
2e6ae88d44 Add coverage script that supports multiple packages 2017-09-16 13:44:02 -07:00
Anubhav Mishra
d1b414fff0 now copying atlantis binary instead of moving it 2017-08-16 13:35:46 -07:00
Anubhav Mishra
6b55b086cd Adding docker image and release scripts (#123)
* Adding docker image and release scripts

* Using circleci version 2

* now building dumb-init and gosu from source

* trying to fix e2e tests

* fixing working directory for circleci version 2

* start atlantis server and ngrok in the background

* Adding terraform to path and removing old decryption method for circleci

* adding terraform binary to the correct path

* ATLANTIS_URL is now being exported

* using circleci version 2 syntax to export variable

* using circleci version 2 syntax to export variable

* ngrok isnt working now

* Updating CHANGELOG

* Fixes after review and updated README.md
2017-08-16 13:29:51 -07:00
Anubhav Mishra
c663be4247 Adding e2e tests back and upgrading terraform version 0.9.11 (#113)
* Adding e2e tests back and upgrading terraform version 0.9.11

* Fixing the binary name for e2e tests

* revert binary name change

* missed indentation for makefile

* use owner name for branch head for pull request creation
2017-08-10 21:17:50 -07:00
Anubhav Mishra
7f8f85a6a7 Detail view (#47)
* Adding the ability to get lock data and show it using the detail view in the ui for boltdb

* adding modal style

* Adding new modal based discard ui

* Adding detail view and get lock funtionality with unlocking with the UI

* lots of clean up after review

* using jquery most places now

* missed in merge

* this should cause a build failure

* moving e2e test as part of the test override step so they run if unit tests fail

* fixing boltdb tests

* turns out you can't fail fast in circleci

* don't compare locks
2017-06-25 15:24:07 -07:00
Anubhav Mishra
9de7c6474e adding vendoring to atlantis (#40)
* adding vendoring to atlantis
* removing deps test target
2017-06-20 18:59:18 -07:00
Anubhav Mishra
b2f1b9d98c removing a redundant step merging into one and some notes 2017-06-18 16:48:32 -07:00
Anubhav Mishra
8581b37a7a fixes after review 2017-06-18 16:44:30 -07:00
Anubhav Mishra
9ef6d262b7 test 2017-06-17 16:28:18 -07:00
Anubhav Mishra
12bdc9f493 more testing 2017-06-17 16:17:22 -07:00
Anubhav Mishra
8dd6ad7aa0 not exporting the variable anymore 2017-06-17 16:04:45 -07:00
Anubhav Mishra
0819d8961c not exporting the variable anymore 2017-06-17 16:00:25 -07:00
Anubhav Mishra
36c90ad36b moving atlantis url environment variable along side e2e 2017-06-17 15:55:31 -07:00
Anubhav Mishra
780de9147a make targets now filter e2e tests 2017-06-17 15:23:53 -07:00
Anubhav Mishra
8dd1d6cf46 Adding ci for atlantis 2017-06-17 14:20:51 -07:00