Commit Graph

172 Commits

Author SHA1 Message Date
hc-github-team-secure-vault-core
40a6cf887d backport of commit 567917efac (#21204)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-06-13 20:28:19 +00:00
hc-github-team-secure-vault-core
14d6fb5f24 backport of commit 735e2866db (#20761)
Co-authored-by: Angel Garbarino <Monkeychip@users.noreply.github.com>
2023-05-24 21:53:28 +00:00
hc-github-team-secure-vault-core
cf2f0819e9 backport of commit 8a86f592d3 (#20489)
Co-authored-by: Nick Cabatoff <ncabatoff@hashicorp.com>
2023-05-03 18:00:36 +00:00
hc-github-team-secure-vault-core
da943b0763 backport of commit d766848664 (#20380)
Co-authored-by: Jaymala <jaymala@hashicorp.com>
2023-04-26 20:31:31 +00:00
hc-github-team-secure-vault-core
777b996286 backport of commit 183a975bea (#20365)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-04-26 17:22:27 +01:00
hc-github-team-secure-vault-core
2b244b4327 backport of commit a2a3c49a17 (#20345)
Co-authored-by: Bryce Kalow <bkalow@hashicorp.com>
2023-04-25 15:54:37 +00:00
hc-github-team-secure-vault-core
9b2902ef8b backport of commit 166f270613 (#20292)
Co-authored-by: Jaymala <jaymala@hashicorp.com>
2023-04-21 15:25:55 +00:00
hc-github-team-secure-vault-core
0966c2bcba backport of commit e78d9a3052 (#20153)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-04-13 20:04:52 +00:00
hc-github-team-secure-vault-core
1c92321937 backport of commit 4b843dc7a5 (#20093)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-04-11 22:14:11 +00:00
hc-github-team-secure-vault-core
09941297b8 backport of commit ae6f61dfeb (#20084)
Co-authored-by: Jaymala <jaymala@hashicorp.com>
2023-04-11 21:47:28 +00:00
hc-github-team-secure-vault-core
38affc2609 backport of commit 53da5366bc (#20029)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-04-06 17:32:17 +00:00
Marc Boudreau
8a64b17ce0 add workflow_dispatch trigger to ci.yml workflow (#19979) (#19994) 2023-04-06 16:43:07 +01:00
hc-github-team-secure-vault-core
da09f60165 backport of commit fa5f0e6222 (#20003)
Co-authored-by: Jaymala <jaymala@hashicorp.com>
2023-04-05 16:28:47 -04:00
hc-github-team-secure-vault-core
6f2761e68c backport of commit 1fa3f7cb2e (#19989)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-04-05 13:43:36 +00:00
hc-github-team-secure-vault-core
a7feba66c7 backport of commit de381c30f6 (#19968)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-04-03 19:48:29 +00:00
hc-github-team-secure-vault-core
ac721364d0 backport of commit ea130fd8a6 (#19919)
Co-authored-by: Mike Baum <mike.baum@hashicorp.com>
2023-04-03 13:41:28 -04:00
hc-github-team-secure-vault-core
19b43e6130 backport of commit 1cef47d220 (#19947)
Co-authored-by: Marc Boudreau <marc.boudreau@hashicorp.com>
2023-04-03 15:57:58 +00:00
hc-github-team-secure-vault-core
e3f471c0a2 Backport of Update the if conditions for test-go jobs in CI into release/1.13.x (#19872)
* Update the if conditions for test-go jobs in CI

* Fix errors in comments

* Update the if condition for the UI tests

---------

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-04-03 10:48:05 -04:00
hc-github-team-secure-vault-core
36535f8058 backport of commit 45f349dc36 (#19911)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-04-03 12:41:31 +01:00
hc-github-team-secure-vault-core
da9dbd16b4 backport of commit 5d6be0513f (#19909)
Co-authored-by: Jaymala <jaymala@hashicorp.com>
2023-03-31 18:35:56 +00:00
hc-github-team-secure-vault-core
d769d200bd backport of commit fc631700c6 (#19904)
Co-authored-by: Marc Boudreau <marc.boudreau@hashicorp.com>
2023-03-31 12:59:52 -04:00
hc-github-team-secure-vault-core
e842f39611 backport of commit 550277dd9a (#19895)
Co-authored-by: Jaymala <jaymala@hashicorp.com>
2023-03-31 13:48:36 +00:00
hc-github-team-secure-vault-core
db9434877d backport of commit 525bce060d (#19869)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-03-30 20:20:20 +00:00
hc-github-team-secure-vault-core
2ec4fbf688 backport of commit 9b379ae283 (#19865)
Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-03-30 14:55:01 -04:00
hc-github-team-secure-vault-core
8530990f95 Backport of Add a new category of runners to the CI workflow; use new, dedicated … into release/1.13.x (#19855)
* backport of commit daf4ec2b4f

* Add compute-huge output to setup step in CI

* Remove redundant fromJSON call

---------

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-03-30 18:43:50 +01:00
Marc Boudreau
b500045c29 Backport all GHA Migration Changes to release/1.13.x Branch (#19767)
* backport all gha migration changes to release/1.13.x

* remove the .circleci directory

* remove references to circleci configuration from pre-commit hook

* remove reference to .circleci in Makefile

* port change to how gofumpt is executed in Makefile

* add gotestsum to tools/tools.go

* remove postgresql/scram package from generate-test-package-lists.sh since it didn't exist in release 1.13 or earlier

* blank out environment variables to allow test to properly function

* use go:embed to load files into test

---------

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
2023-03-30 11:00:02 -04:00
Ryan Cragun
ac5a00d72c ci: unpin terraform in CICD (#19665) (#19730)
A prior planning bug was resolved in Terraform 1.4.2
2023-03-23 16:11:26 -06:00
hc-github-team-secure-vault-core
b47e92f106 backport of commit 122e958acb (#19565)
Co-authored-by: Ryan Cragun <me@ryan.ec>
2023-03-15 13:20:53 -06:00
Michael Anthony
dd9a3e05ae Move env var declaration to called workflow (#19085) 2023-02-09 09:17:33 -07:00
miagilepner
7cd5685e2e VAULT-13169 Require go docs for all new test functions (#18971)
* example for checking go doc tests

* add analyzer test and action

* get metadata step

* install revgrep

* fix for ci

* add revgrep to go.mod

* clarify how analysistest works
2023-02-07 10:41:04 +01:00
Mike Baum
8afa241518 [QT-304] Ensure Chrome is only installed for vault-enterprise UI Test workflows (#19003) 2023-02-06 16:29:33 -05:00
Mike Baum
6b7787c86a [QT-304] Add enos ui scenario (#18518)
* Add enos ui scenario
* Add github action for running the UI scenario
2023-02-03 09:55:06 -05:00
Ryan Cragun
ec9f33fb46 [QT-470] Normalize and simplify container build workflows (#18900)
* [QT-470] Normalize and simplify container build workflows

Signed-off-by: Ryan Cragun <me@ryan.ec>
2023-01-30 15:01:51 -07:00
Ashlee M Boyer
06df5b9d95 docs: Migrate link formats (#18696)
* Adding check-legacy-links-format workflow

* Adding test-link-rewrites workflow

* Updating docs-content-check-legacy-links-format hash

* Migrating links to new format

Co-authored-by: Kendall Strautman <kendallstrautman@gmail.com>
2023-01-25 16:12:15 -08:00
Michael Anthony
dd8f055cc7 Add workflow for running Docker-only acc tests (#18672)
* Add workflow for running Docker-only acc tests

* Convert to caller/called workflow

* Add comments for posterity and change run trigger

* Standardize workflow names and adjust artifact retention time

* Consolidate metadata job into test job

* Shorten artifact retention time

* Standardize filenames

* Correct workflow reference

* Remove erroneous dependency reference
2023-01-20 12:57:56 -07:00
Jaymala
88658f2c28 Rename reusable enos-run workflow file (#18757)
* Rename reusable enos-run workflow file

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

* Update Enos README file

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
2023-01-18 16:37:38 -07:00
Mike Baum
39211b8772 [QT-441] Switch over to using new vault_ci AWS account for enos CI workflows (#18398) 2023-01-18 16:09:19 -05:00
Josh Brand
4768e74a35 Add automated CI account cleanup & monitoring (#18659)
This uses aws-nuke and awslimitchecker to monitor the new vault CI account to clean up and prevent resource quota exhaustion.  AWS-nuke will scan all regions of the accounts for lingering resources enos/terraform didn't clean up, and if they don't match exclusion criteria, delete them every night.  By default, we exclude corp-sec created resources, our own CI resources, and when possible, anything created within the past 72 hours. Because this account is dedicated to CI, users should not expect resources to persist beyond this without additional configuration.
2023-01-11 17:24:08 -05:00
Jaymala
f587a97d66 Save release testing metadata only when tests are run (#18540)
Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
2022-12-23 14:06:42 -05:00
Jaymala
f45a968e08 Persist metadata post release tests (#18531)
Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
2022-12-22 22:20:05 +00:00
Luis (LT) Carbonell
c3e9233342 Add GitHub action to check for a milestone (#18406)
* Add GitHub action to check for a milestone

* Update comment

* Cleanup

* Add config

* move config to own directory
2022-12-19 12:38:41 -06:00
Jaymala
83b45be7bc Fix the checkout sha for enos-run workflow (#18445)
- enos-run workflow will checkout the `main` branch by default, which would pass incorrect metadata to the workflow
so we use the `revision` passed by the calling workflow to checkout the sha and get the relavant metadata`

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>

Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
2022-12-16 15:19:10 -05:00
Ryan Cragun
36b84d70af test: normalize job and steps between build and release test workflows (#18425)
Signed-off-by: Ryan Cragun <me@ryan.ec>
2022-12-15 16:10:49 -07:00
Ryan Cragun
a989991a31 test: pass build artifact name to release testing workflow (#18411)
Signed-off-by: Ryan Cragun <me@ryan.ec>
2022-12-15 11:47:14 -07:00
Sarah Thompson
4168d76780 Revert "Create test-reusable.yml" (#18371)
This reverts commit 131bf24029.
2022-12-15 16:01:15 +00:00
Sarah Thompson
131bf24029 Create test-reusable.yml 2022-12-14 15:27:56 +00:00
Ryan Cragun
aeb3f1623c test: add build artifacts to release testing workflow (#18336)
Add build artifacts to release testing workflow

Signed-off-by: Ryan Cragun <me@ryan.ec>
2022-12-13 12:00:58 -07:00
Mike Baum
5900230b9e Fix role name in CI bootstrap workflow (#18330)
Fixed role name in ci bootstrap workflow
2022-12-13 09:20:49 -05:00
Ryan Cragun
2b99be9e25 test: fix release testing workflows (#18322)
* Use the correct runner
* Fix indentation

Signed-off-by: Ryan Cragun <me@ryan.ec>
2022-12-12 16:07:16 -07:00
Ryan Cragun
206db2f529 [QT-436] Pseudo random artifact test scenarios (#18056)
Introducing a new approach to testing Vault artifacts before merge
and after merge/notorization/signing. Rather than run a few static
scenarios across the artifacts, we now have the ability to run a
pseudo random sample of scenarios across many different build artifacts.

We've added 20 possible scenarios for the AMD64 and ARM64 binary
bundles, which we've broken into five test groups. On any given push to
a pull request branch, we will now choose a random test group and
execute its corresponding scenarios against the resulting build
artifacts. This gives us greater test coverage but lets us split the
verification across many different pull requests.

The post-merge release testing pipeline behaves in a similar fashion,
however, the artifacts that we use for testing have been notarized and
signed prior to testing. We've also reduce the number of groups so that
we run more scenarios after merge to a release branch.

We intend to take what we've learned building this in Github Actions and
roll it into an easier to use feature that is native to Enos. Until then,
we'll have to manually add scenarios to each matrix file and manually
number the test group. It's important to note that Github requires every
matrix to include at least one vector, so every artifact that is being
tested must include a single scenario in order for all workflows to pass
and thus satisfy branch merge requirements.

* Add support for different artifact types to enos-run
* Add support for different runner type to enos-run
* Add arm64 scenarios to build matrix
* Expand build matrices to include different variants
* Update Consul versions in Enos scenarios and matrices
* Refactor enos-run environment
* Add minimum version filtering support to enos-run. This allows us to
  automatically exclude scenarios that require a more recent version of
  Vault
* Add maximum version filtering support to enos-run. This allows us to
  automatically exclude scenarios that require an older version of
  Vault
* Fix Node 12 deprecation warnings
* Rename enos-verify-stable to enos-release-testing-oss
* Convert artifactory matrix into enos-release-testing-oss matrices
* Add all Vault editions to Enos scenario matrices
* Fix verify version with complex Vault edition metadata
* Rename the crt-builder to ci-helper
* Add more version helpers to ci-helper and Makefile
* Update CODEOWNERS for quality team
* Add support for filtering matrices by group and version constraints
* Add support for pseudo random test scenario execution

Signed-off-by: Ryan Cragun <me@ryan.ec>
2022-12-12 13:46:04 -07:00