Skip to content

Commit

Permalink
backport of commit 1a15c4b
Browse files Browse the repository at this point in the history
  • Loading branch information
VioletHynes authored Nov 20, 2024
1 parent 4fd5436 commit 0f8ddcc
Show file tree
Hide file tree
Showing 627 changed files with 10,909 additions and 18,220 deletions.
3 changes: 0 additions & 3 deletions .github/actions/changed-files/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ outputs:
ui-changed:
description: Whether or not the web UI was modified.
value: ${{ steps.changed-files.outputs.ui-changed }}
autopilot-changed:
description: Whether or not files pertaining to Autopilot were modified.
value: ${{ steps.changed-files.outputs.autopilot-changed }}
files:
description: All of the file names that changed.
value: ${{ steps.changed-files.outputs.files }}
Expand Down
5 changes: 2 additions & 3 deletions .github/actions/install-external-tools/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ runs:
- uses: ./.github/actions/set-up-gotestsum
- uses: ./.github/actions/set-up-misspell
- uses: ./.github/actions/set-up-shfmt
- uses: ./.github/actions/set-up-sqlc
- uses: ./.github/actions/set-up-staticcheck
# We assume that the Go toolchain will be managed by the caller workflow so we don't set one
# up here.
- run: ./.github/scripts/retry-command.sh go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- run: ./.github/scripts/retry-command.sh go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.34.2
shell: bash
- run: ./.github/scripts/retry-command.sh go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- run: ./.github/scripts/retry-command.sh go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.4.0
shell: bash
- run: ./.github/scripts/retry-command.sh go install github.com/favadi/protoc-go-inject-tag@latest
shell: bash
Expand Down
123 changes: 0 additions & 123 deletions .github/actions/run-apupgrade-tests/action.yml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/actions/set-up-sqlc/action.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
What does this PR do?

### TODO only if you're a HashiCorp employee
- [ ] **Backport Labels:** If this fix needs to be backported, use the appropriate `backport/` label that matches the desired release branch. Note that in the CE repo, the latest release branch will look like `backport/x.x.x`, but older release branches will be `backport/ent/x.x.x+ent`.
- [ ] **LTS**: If this fixes a critical security vulnerability or [severity 1](https://www.hashicorp.com/customer-success/enterprise-support) bug, it will also need to be backported to the current [LTS versions](https://developer.hashicorp.com/vault/docs/enterprise/lts#why-is-there-a-risk-to-updating-to-a-non-lts-vault-enterprise-version) of Vault. To ensure this, use **all** available enterprise labels.
- [ ] **Backport Labels:** If this PR is in the ENT repo and needs to be backported, backport
to N, N-1, and N-2, using the `backport/ent/x.x.x+ent` labels. If this PR is in the CE repo, you should only backport to N, using the `backport/x.x.x` label, not the enterprise labels.
- [ ] If this fixes a critical security vulnerability or [severity 1](https://www.hashicorp.com/customer-success/enterprise-support) bug, it will also need to be backported to the current [LTS versions](https://developer.hashicorp.com/vault/docs/enterprise/lts#why-is-there-a-risk-to-updating-to-a-non-lts-vault-enterprise-version) of Vault. To ensure this, use **all** available enterprise labels.
- [ ] **ENT Breakage:** If this PR either 1) removes a public function OR 2) changes the signature
of a public function, even if that change is in a CE file, _double check_ that
applying the patch for this PR to the ENT repo and running tests doesn't
Expand Down
13 changes: 0 additions & 13 deletions .github/scripts/changed-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ fi
docs_changed=false
ui_changed=false
app_changed=false
autopilot_changed=false

if ! files="$(git diff "${base_commit}...${head_commit}" --name-only)"; then
echo "failed to get changed files from git"
Expand All @@ -54,26 +53,14 @@ for file in $(awk -F "/" '{ print $1}' <<< "$files" | uniq); do
app_changed=true
done

# if the app changed, check to see if anything referencing autopilot specifically was changed
if [ "$app_changed" = true ]; then
for file in $files; do
if grep "raft-autopilot" "$file"; then
autopilot_changed=true
break
fi
done
fi

echo "app-changed=${app_changed}"
echo "docs-changed=${docs_changed}"
echo "ui-changed=${ui_changed}"
echo "autopilot_changed=${autopilot_changed}"
echo "files='${files}'"
[ -n "$GITHUB_OUTPUT" ] && {
echo "app-changed=${app_changed}"
echo "docs-changed=${docs_changed}"
echo "ui-changed=${ui_changed}"
echo "autopilot-changed=${autopilot_changed}"
# Use a random delimiter for multiline strings.
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
delimiter="$(openssl rand -hex 8)"
Expand Down
Loading

0 comments on commit 0f8ddcc

Please sign in to comment.