mixin: Add req/sec floor to MimirCacheRequestErrors
#1418
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Regenerate docs and helm tests | |
# configure trigger by pull request | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- 'operations/helm/**' | |
# These permissions are needed to assume roles from Github's OIDC. | |
permissions: | |
contents: read | |
id-token: write | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
cancel-in-progress: true | |
jobs: | |
prepare: | |
if: github.event.pull_request.user.login == 'renovate[bot]' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Get build image from Makefile | |
id: build_image_step | |
run: echo "build_image=$(make print-build-image)" >> "$GITHUB_OUTPUT" | |
outputs: | |
build_image: ${{ steps.build_image_step.outputs.build_image }} | |
lint_and_update: | |
runs-on: ubuntu-latest | |
needs: | |
- prepare | |
container: | |
image: ${{ needs.prepare.outputs.build_image }} | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
# Retrieve GitHub App Credentials from Vault | |
- name: Retrieve GitHub App Credentials from Vault | |
id: get-secrets | |
uses: grafana/shared-workflows/actions/[email protected] | |
with: | |
repo_secrets: | | |
APP_ID=mimir-github-bot:app_id | |
PRIVATE_KEY=mimir-github-bot:private_key | |
# Generate GitHub App Token (Directly in the Job That Needs It) | |
- name: Generate GitHub App Token | |
id: token | |
uses: actions/create-github-app-token@v1 | |
with: | |
# Variables generated by the previous step get-secrets | |
app-id: ${{ env.APP_ID }} | |
private-key: ${{ env.PRIVATE_KEY }} | |
owner: ${{ github.repository_owner }} | |
- name: Checkout Repository with App Token | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ steps.token.outputs.token }} | |
- name: Run Git Config | |
run: | | |
git config --global --add safe.directory '*' | |
git config --global user.email "${{ github.event.pull_request.user.login }}@users.noreply.github.com" | |
git config --global user.name "${{ github.event.pull_request.user.login }}" | |
- name: Install the gh cli | |
uses: ksivamuthu/actions-setup-gh-cli@v2 | |
- name: Checkout Pull Request Branch | |
run: gh pr checkout ${{ github.event.pull_request.number }} | |
env: | |
GITHUB_TOKEN: ${{ steps.token.outputs.token }} | |
- name: Run make targets | |
id: update | |
run: | | |
make BUILD_IN_CONTAINER=false doc build-helm-tests | |
- name: Check Updates | |
id: check_updates | |
run: | | |
if ./tools/find-diff-or-untracked.sh operations/helm/; then | |
echo "diff=0" >> "$GITHUB_OUTPUT" # Script success, no change | |
else | |
echo "diff=1" >> "$GITHUB_OUTPUT" # Script failed, changes exist | |
fi | |
- name: Update PR | |
id: update_pr | |
if: steps.check_updates.outputs.diff != '0' | |
run: | | |
echo "Add commit for regenerating helm tests and docs" | |
git add operations/helm/ | |
git commit -m "Update build with regenerated helm tests and docs" | |
git push |