Tweak stalebot settings for flaky tests issues (#50630)

This commit is contained in:
Adrian Moldovan 2024-08-15 13:54:44 +01:00 committed by GitHub
parent d7909ecb3c
commit 8c9c784f45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 46 additions and 40 deletions

View File

@ -2,8 +2,9 @@ name: 'Process stale needs-feedback issues'
on: on:
schedule: schedule:
- cron: '21 0 * * *' - cron: '21 0 * * *'
workflow_dispatch:
permissions: {} permissions: { }
jobs: jobs:
stale: stale:
@ -30,16 +31,21 @@ jobs:
only-issue-labels: 'needs: author feedback' only-issue-labels: 'needs: author feedback'
close-issue-label: "status: can't reproduce" close-issue-label: "status: can't reproduce"
ascending: true ascending: true
- name: Close Stale Flaky Test Issues - name: Process Stale Flaky Test Issues
uses: actions/stale@v9.0.0 uses: actions/stale@v9.0.0
with: with:
only-labels: 'metric: flaky e2e test, team: Vortex' repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 5 only-issue-labels: 'metric: flaky e2e test'
days-before-close: 2 days-before-stale: -1
stale-issue-label: 'metric: stale flaky e2e test report' days-before-close: -1
stale-issue-message: 'This test may have been a one-time failure. It will be auto-closed if no further activity occurs within the next 2 days.' days-before-issue-stale: 5
days-before-issue-close: 2
stale-issue-label: 'status: stale'
stale-issue-message: 'This issue is being marked as stale due to inactivity. It will be auto-closed if no further activity occurs within the next 2 days.'
close-issue-message: 'Auto-closed due to inactivity. Please re-open if you believe this issue is still valid.' close-issue-message: 'Auto-closed due to inactivity. Please re-open if you believe this issue is still valid.'
close-issue-reason: 'not_planned' close-issue-reason: 'not_planned'
remove-stale-when-updated: true remove-stale-when-updated: true
exempt-all-assignees: true exempt-all-assignees: false
enable-statistics: true enable-statistics: true
ascending: true
operations-per-run: 120