-
Notifications
You must be signed in to change notification settings - Fork 1.8k
71 lines (69 loc) · 2.53 KB
/
run-find-new-flaky-tests.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
name: Find New Flaky Tests
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.'
runThreshold:
required: false
type: string
description: 'The threshold for the number of times a test can fail before being considered flaky.'
default: '0.8'
runWithRace:
required: false
type: boolean
description: 'Run tests with -race flag.'
default: true
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: true
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: '{}'
description: 'JSON of extra arguments for the workflow.'
jobs:
trigger-flaky-test-detection:
name: Find New Flaky Tests
uses: ./.github/workflows/find-new-flaky-tests.yml
with:
repoUrl: ${{ inputs.repoUrl }}
baseRef: ${{ inputs.baseRef }}
projectPath: ${{ inputs.projectPath }}
headRef: ${{ inputs.headRef }}
runThreshold: ${{ inputs.runThreshold }}
runWithRace: ${{ inputs.runWithRace }}
findByTestFilesDiff: ${{ inputs.findByTestFilesDiff }}
findByAffectedPackages: ${{ inputs.findByAffectedPackages }}
slackNotificationAfterTestsChannelId: ${{ inputs.slack_notification_after_tests_channel_id }}
extraArgs: ${{ inputs.extraArgs }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.QA_SLACK_API_KEY }}