File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
actions/testing_report_generation Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,17 @@ def get_workflows(client, repo_name)
101
101
workflow_file = File . basename ( wf . path )
102
102
puts "------------"
103
103
puts "workflow_file: %s" % [ workflow_file ]
104
+ if EXCLUDED_WORKFLOWS . include? ( workflow_file )
105
+ puts workflow_file + " is excluded in the report."
106
+ next
107
+ end
108
+
104
109
workflow_text = "[%s](%s)" % [ wf . name , wf . html_url ]
105
110
runs = client . workflow_runs ( REPO_NAME_WITH_OWNER , File . basename ( wf . path ) , :event => "schedule" ) . workflow_runs
106
111
runs = runs . sort_by { |run | -run . created_at . to_i }
107
112
latest_run = runs [ 0 ]
108
113
if latest_run . nil?
109
114
puts "no schedule runs found."
110
- elsif EXCLUDED_WORKFLOWS . include? ( workflow_file )
111
- puts workflow_file + " is excluded in the report."
112
115
# Involved workflow runs triggered within one day.
113
116
elsif Time . now . utc - latest_run . created_at < TESTS_TIME_INTERVAL_IN_SECS
114
117
puts "created_at: %s" % [ latest_run . created_at ]
Original file line number Diff line number Diff line change 21
21
with :
22
22
access-token : ' ${{ secrets.GITHUB_TOKEN }}'
23
23
# This is to exclude workflows that will be searched in the nightly report.
24
- exclude-workflow-files : ' performance-integration-tests.yml, sessions-integration-tests.yml'
24
+ exclude-workflow-files : ' performance-integration-tests.yml, sessions-integration-tests.yml, codeql '
25
25
26
26
test_generate_an_issue :
27
27
# Don't run on private repo.
35
35
with :
36
36
access-token : ' ${{ secrets.GITHUB_TOKEN }}'
37
37
# This is to exclude workflows that will be searched in the nightly report.
38
- exclude-workflow-files : ' performance-integration-tests.yml, sessions-integration-tests.yml'
38
+ exclude-workflow-files : ' performance-integration-tests.yml, sessions-integration-tests.yml, codeql '
39
39
issue-labels : ' nightly-testing-report-generation-test'
40
40
issue-title : ' Nightly Testing Report For Presubmit Testing'
You can’t perform that action at this time.
0 commit comments