open-vault/scripts
hc-github-team-secure-vault-core f52a686b91
[QT-506] Use enos scenario samples for testing (#22641) (#22933)
Replace our prior implementation of Enos test groups with the new Enos
sampling feature. With this feature we're able to describe which
scenarios and variant combinations are valid for a given artifact and
allow enos to create a valid sample field (a matrix of all compatible
scenarios) and take an observation (select some to run) for us. This
ensures that every valid scenario and variant combination will
now be a candidate for testing in the pipeline. See QT-504[0] for further
details on the Enos sampling capabilities.

Our prior implementation only tested the amd64 and arm64 zip artifacts,
as well as the Docker container. We now include the following new artifacts
in the test matrix:
* CE Amd64 Debian package
* CE Amd64 RPM package
* CE Arm64 Debian package
* CE Arm64 RPM package

Each artifact includes a sample definition for both pre-merge/post-merge
(build) and release testing.

Changes:
* Remove the hand crafted `enos-run-matrices` ci matrix targets and replace
  them with per-artifact samples.
* Use enos sampling to generate different sample groups on all pull
  requests.
* Update the enos scenario matrices to handle HSM and FIPS packages.
* Simplify enos scenarios by using shared globals instead of
  cargo-culted locals.

Note: This will require coordination with vault-enterprise to ensure a
smooth migration to the new system. Integrating new scenarios or
modifying existing scenarios/variants should be much smoother after this
initial migration.

[0] https://github.com/hashicorp/enos/pull/102

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
2023-09-08 13:31:09 -06:00
..
cross
docker
windows
assetcheck.sh
build.sh
ci-helper.sh [QT-506] Use enos scenario samples for testing (#22641) (#22933) 2023-09-08 13:31:09 -06:00
coverage.sh
deprecations-checker.sh Backport of Limit number of tests in CI comment into release/1.14.x (#21971) 2023-07-20 15:07:20 +02:00
deps_upgrade.py
dist.sh
gen_openapi.sh backport of commit 8925dc22a0996d08af81f9c9883a66d0c21a88f8 (#21598) 2023-07-05 19:59:26 +00:00
gofmtcheck.sh backport of commit a9778be3f2735ea242c5ea05a2a805fa18e7df4f (#21756) 2023-07-11 14:44:40 +00:00
goversioncheck.sh
protocversioncheck.sh
semgrep_plugin_repos.sh
testciphers.sh
update_deps.sh
update_plugin_modules.sh