Skip to content

Commit a23dddf

Browse files
ci: reduce scheduled test frequency and clarify workflow names (#639)
- integration tests: every 3h -> every 3 days - canary: keep daily (fix stray cron whitespace) - stale bot: rename defaultLabels.yml -> stale-issues.yml; every 3h -> weekly; drop unused idle-labelling; extend needs-author-feedback close 20 -> 60 days - prefix workflow display names with Scheduled:/PR: for clarity Co-authored-by: Maddison Das <272712104+MaddyMicrosoft@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 4c016e0 commit a23dddf

6 files changed

Lines changed: 33 additions & 54 deletions

File tree

‎.github/workflows/azure-login-canary.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#This workflow is used to test azure login action for CLI edge build. Visit, https://github.com/Azure/azure-cli#edge-builds for more details.
22

3-
name: Run Azure Login Canary Test
3+
name: 'Scheduled: Azure Login Canary (CLI edge build)'
44
on:
55
workflow_dispatch:
66
schedule:
7-
- cron: ' 0 8 * * *'
7+
- cron: '0 8 * * *'
88
permissions:
99
id-token: write
1010
contents: read

‎.github/workflows/azure-login-integration-tests.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Run Azure Login Integration Tests
1+
name: 'Scheduled: Azure Login Integration (live Azure)'
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '0 */3 * * *'
5+
- cron: '0 8 */3 * *'
66
permissions:
77
id-token: write
88
contents: write

‎.github/workflows/azure-login-live-tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Azure Login Action Live Tests
1+
name: 'PR: Azure Login Live Tests'
22
on:
33
workflow_dispatch:
44
pull_request:

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build and Test
1+
name: 'PR: Build and Test'
22

33
on:
44
pull_request:

‎.github/workflows/defaultLabels.yml‎

Lines changed: 0 additions & 48 deletions
This file was deleted.

‎.github/workflows/stale-issues.yml‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: 'Scheduled: Close Stale Feedback Issues'
2+
3+
# Controls when the action will run.
4+
on:
5+
schedule:
6+
- cron: "0 8 * * 1"
7+
8+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
9+
jobs:
10+
build:
11+
# The type of runner that the job will run on
12+
runs-on: ubuntu-latest
13+
14+
# Steps represent a sequence of tasks that will be executed as part of the job
15+
steps:
16+
17+
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
18+
name: Close issue with no feedback for 60 days
19+
with:
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}
21+
close-issue-message: 'This issue has been labeled as `needs-author-feedback` for 60 days with no activity. We will close it for now. If you require additional assistance, please feel free to reopen it with the required information.'
22+
days-before-stale: -1
23+
days-before-close: 60
24+
stale-issue-label: 'needs-author-feedback'
25+
only-issue-labels: 'needs-author-feedback'
26+
close-issue-reason: 'completed'
27+
operations-per-run: 100

0 commit comments

Comments
 (0)