vault/.github/workflows
Ryan Cragun ce5885279b
VAULT-31181: Add pipeline tool to Vault (#28536)
As the Vault pipeline and release processes evolve over time, so too must the tooling that drives them. Historically we've utilized a combination of CI features and shell scripts that are wrapped into make targets to drive our CI. While this 
approach has worked, it requires careful consideration of what features to use (bash in CI almost never matches bash in developer machines, etc.) and often requires a deep understanding of several CLI tools (jq, etc). `make` itself also has limitations in user experience, e.g. passing flags.

As we're all in on Github Actions as our pipeline coordinator, continuing to utilize and build CLI tools to perform our pipeline tasks makes sense. This PR adds a new CLI tool called `pipeline` which we can use to build new isolated tasks that we can string together in Github Actions. We intend to use this utility as the interface for future release automation work, see VAULT-27514.

For the first task in this new `pipeline` tool, I've chosen to build two small sub-commands:

* `pipeline releases list-versions` - Allows us to list Vault versions between a range. The range is configurable either by setting `--upper` and/or `--lower` bounds, or by using the `--nminus` to set the N-X to go back from the current branches version. As CE and ENT do not have version parity we also consider the `--edition`, as well as none-to-many `--skip` flags to exclude specific versions.

* `pipeline generate enos-dynamic-config` - Which creates dynamic enos configuration based on the branch and the current list of release versions. It takes largely the same flags as the `release list-versions` command, however it also expects a `--dir` for the enos directory and a `--file` where the dynamic configuration will be written. This allows us to dynamically update and feed the latest versions into our sampling algorithm to get coverage over all supported prior versions.

We then integrate these new tools into the pipeline itself and cache the dynamic config on a weekly basis. We also cache the pipeline tool itself as it will likely become a repository for pipeline specific tooling. The caching strategy for the `pipeline` tool itself will make most workflows that require it super fast.


Signed-off-by: Ryan Cragun <me@ryan.ec>
2024-10-23 15:31:24 -06:00
..
actionlint.yml Update actions/checkout to 4.1.7 (#27636) 2024-07-02 09:25:21 -04:00
add-hashicorp-contributed-label.yml Run on all branches (#21683) 2023-07-07 19:40:05 +00:00
backport-ce.yml backport: bump backport-assistant to v0.4.3 (#27484) 2024-06-13 10:29:52 -06:00
build-artifacts-ce.yml VAULT-31402: Add verification for all container images (#28605) 2024-10-07 10:16:22 -06:00
build.yml VAULT-31402: Add verification for all container images (#28605) 2024-10-07 10:16:22 -06:00
changelog-checker.yml Update actions/checkout to 4.1.7 (#27636) 2024-07-02 09:25:21 -04:00
ci.yml [VAULT-28762] Run Autopilot upgrade tests on main and PRs to main on ENT if the AP code has changed (#28697) 2024-10-14 16:59:00 +01:00
code-checker.yml VAULT-31181: Add pipeline tool to Vault (#28536) 2024-10-23 15:31:24 -06:00
copywrite.yml Update actions/checkout to 4.1.7 (#27636) 2024-07-02 09:25:21 -04:00
do-not-merge-checker.yml Add a CI check for do-not-merge label (#27325) 2024-06-04 09:37:10 -04:00
enos-lint.yml enos: install go toolchain on lint (#28182) 2024-08-23 14:23:47 -06:00
enos-release-testing-oss.yml actions: don't use linux runs-on label (#27674) 2024-07-08 09:47:41 -06:00
milestone-checker.yml Fix some GHAs not running on enterprise (#24765) 2024-01-10 15:05:08 +00:00
oss.yml Update actions/checkout to 4.1.7 (#27636) 2024-07-02 09:25:21 -04:00
plugin-update-check.yml Bump actions/setup-go from 5.0.1 to 5.0.2 (#27756) 2024-08-15 15:41:52 -07:00
plugin-update.yml actions: support ent plugins in plugin update workflow (#28295) 2024-09-05 15:53:08 -05:00
remove-labels.yml ci: request vpc quota increase (#20360) 2023-05-22 11:18:06 -06:00
security-scan.yml ci: update the security-scanner gha token (#28410) 2024-10-23 13:53:35 -06:00
stable-website.yaml Update actions/checkout to 4.1.7 (#27636) 2024-07-02 09:25:21 -04:00
test-acc-dockeronly-nightly.yml Add GitHub workflow concurrency controls (#22610) 2023-08-30 14:39:50 -07:00
test-ci-bootstrap.yml Update actions/checkout to 4.1.7 (#27636) 2024-07-02 09:25:21 -04:00
test-ci-cleanup.yml Update actions/checkout to 4.1.7 (#27636) 2024-07-02 09:25:21 -04:00
test-enos-scenario-ui.yml Bump browser-actions/setup-chrome from 1.7.1 to 1.7.2 (#28101) 2024-08-19 15:16:14 -07:00
test-go.yml Have go-test timeout before the GH step timeout to gather information (#28559) 2024-10-02 10:27:25 -04:00
test-run-acc-tests-for-path.yml Bump actions/upload-artifact from 4.3.3 to 4.3.6 (#28008) 2024-08-15 15:18:47 -07:00
test-run-enos-scenario-containers.yml VAULT-31402: Add verification for all container images (#28605) 2024-10-07 10:16:22 -06:00
test-run-enos-scenario-matrix.yml VAULT-31181: Add pipeline tool to Vault (#28536) 2024-10-23 15:31:24 -06:00
test-run-enos-scenario.yml VAULT-31402: Add verification for all container images (#28605) 2024-10-07 10:16:22 -06:00