-
Notifications
You must be signed in to change notification settings - Fork 1.7k
73 lines (70 loc) · 2.85 KB
/
flakeguard-on-demand.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Flakeguard On Demand
on:
workflow_dispatch:
inputs:
repoUrl:
description: 'The URL of the repository to run the flaky test detection.'
required: true
type: string
default: 'https://github.com/smartcontractkit/chainlink'
projectPath:
required: true
type: string
description: 'The path to the project to run the flaky test detection.'
default: '.'
baseRef:
required: true
type: string
description: 'The base reference or branch to compare changes for detecting flaky tests.'
default: 'origin/develop'
headRef:
required: false
type: string
description: 'The head reference or branch to compare changes for detecting flaky tests. Default is the current branch.'
runAllTests:
required: false
type: boolean
description: 'Run all tests in the project.'
default: true
maxPassRatio:
required: false
type: string
description: 'The maximum (non-inclusive) pass ratio threshold for a test to be considered a failure. Any tests below this pass rate will be considered flaky.'
default: '1.0'
findByTestFilesDiff:
required: false
type: boolean
description: 'Find new or updated test packages by comparing test files diff.'
default: true
findByAffectedPackages:
required: false
type: boolean
description: 'Find new or updated test packages by comparing affected packages.'
default: false
slack_notification_after_tests_channel_id:
description: "Slack channel ID to send the notification to for failed tests."
required: false
type: string
extraArgs:
required: false
type: string
default: '{ "skipped_tests": "TestChainComponents", "test_repeat_count": "5", "all_tests_runner": "ubuntu22.04-32cores-128GB", "all_tests_runner_count": "3", "run_with_race": "false" }'
description: 'JSON of extra arguments for the workflow.'
jobs:
trigger-flaky-test-detection:
name: Find Flaky Tests
uses: ./.github/workflows/flakeguard.yml
with:
repoUrl: ${{ inputs.repoUrl }}
baseRef: ${{ inputs.baseRef }}
projectPath: ${{ inputs.projectPath }}
headRef: ${{ inputs.headRef }}
maxPassRatio: ${{ inputs.maxPassRatio }}
runAllTests: ${{ inputs.runAllTests }}
findByTestFilesDiff: ${{ inputs.findByTestFilesDiff }}
findByAffectedPackages: ${{ inputs.findByAffectedPackages }}
slackNotificationAfterTestsChannelId: ${{ inputs.slack_notification_after_tests_channel_id || 'C07TRF65CNS' }} #flaky-test-detector-notifications
extraArgs: ${{ inputs.extraArgs }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.QA_SLACK_API_KEY }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}