Skip to content

Commit 2818ded

Browse files
flaky-tests.yml: small fixups (#11857)
#### What this PR does 1. Increase fetch-depth, so the github author detection works 2. Fix secret paths. The repo name is already appended to by the `grafana/shared-workflows/actions/get-vault-secrets` 3. Exclude some tests which are "expected" to fail and block PRs --------- Signed-off-by: Dimitar Dimitrov <[email protected]>
1 parent 93b9125 commit 2818ded

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/flaky-tests.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ jobs:
2222
steps:
2323
- name: Checkout Repository
2424
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: '0' # we need all commits so that the git history check returns valid commits
2527

2628
- name: Retrieve Secrets from Vault
2729
id: get-secrets
2830
uses: grafana/shared-workflows/actions/get-vault-secrets@5d7e361bc7e0a183cde8afe9899fb7b596d2659b # get-vault-secrets-v1.2.0
2931
with:
3032
repo_secrets: |
31-
LOKI_URL=ci/repo/grafana/mimir/flaky-tests-bot:loki-url
32-
LOKI_USERNAME=ci/repo/grafana/mimir/flaky-tests-bot:loki-username
33-
LOKI_PASSWORD=ci/repo/grafana/mimir/flaky-tests-bot:loki-password
33+
LOKI_URL=flaky-tests-bot:loki-url
34+
LOKI_USERNAME=flaky-tests-bot:loki-username
35+
LOKI_PASSWORD=flaky-tests-bot:loki-password
3436
APP_ID=mimir-github-bot:app_id
3537
PRIVATE_KEY=mimir-github-bot:private_key
3638
@@ -43,7 +45,7 @@ jobs:
4345
owner: ${{ github.repository_owner }}
4446

4547
- name: Run Flaky Tests Analysis
46-
uses: dimitarvdimitrov/shared-workflows/actions/go-flaky-tests@7098037f3a45b90ae7938f3405aec85635d7181e # dimitar/analyze-test-failures/github-issues
48+
uses: dimitarvdimitrov/shared-workflows/actions/go-flaky-tests@20a72aa1821825fb2871515ed53002e4c18842db # dimitar/analyze-test-failures/exclude-tests
4749
with:
4850
loki-url: ${{ env.LOKI_URL }}
4951
loki-username: ${{ env.LOKI_USERNAME }}
@@ -52,5 +54,6 @@ jobs:
5254
time-range: "7d"
5355
top-k: "3"
5456
skip-posting-issues: ${{ github.event_name == 'workflow_dispatch' && inputs.skip-posting-issues || 'false' }}
57+
ignored-tests: "TestOurUpstreamTestCasesAreInSyncWithUpstream" # This is supposed to block upstream mimir-prometheus updates, so it's also expected to fail.
5558
env:
5659
GITHUB_TOKEN: ${{ steps.github-token.outputs.token }}

0 commit comments

Comments
 (0)