Skip to content

Commit 8101179

Browse files
authored
Fix nightly report (#11671)
1 parent 3df15ba commit 8101179

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/actions/testing_report_generation/app.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,17 @@ def get_workflows(client, repo_name)
101101
workflow_file = File.basename(wf.path)
102102
puts "------------"
103103
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+
104109
workflow_text = "[%s](%s)" % [wf.name, wf.html_url]
105110
runs = client.workflow_runs(REPO_NAME_WITH_OWNER, File.basename(wf.path), :event => "schedule").workflow_runs
106111
runs = runs.sort_by { |run| -run.created_at.to_i }
107112
latest_run = runs[0]
108113
if latest_run.nil?
109114
puts "no schedule runs found."
110-
elsif EXCLUDED_WORKFLOWS.include?(workflow_file)
111-
puts workflow_file + " is excluded in the report."
112115
# Involved workflow runs triggered within one day.
113116
elsif Time.now.utc - latest_run.created_at < TESTS_TIME_INTERVAL_IN_SECS
114117
puts "created_at: %s" % [latest_run.created_at]

.github/workflows/generate_issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
access-token: '${{ secrets.GITHUB_TOKEN }}'
2323
# 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'
2525

2626
test_generate_an_issue:
2727
# Don't run on private repo.
@@ -35,6 +35,6 @@ jobs:
3535
with:
3636
access-token: '${{ secrets.GITHUB_TOKEN }}'
3737
# 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'
3939
issue-labels: 'nightly-testing-report-generation-test'
4040
issue-title: 'Nightly Testing Report For Presubmit Testing'

0 commit comments

Comments
 (0)