Skip to content

Commit cea03e9

Browse files
Merge
2 parents b089bd9 + 1dbc0ed commit cea03e9

File tree

417 files changed

+55351
-1653
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

417 files changed

+55351
-1653
lines changed

.github/actions/testing_report_generation/app.rb

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
require 'tzinfo'
2121

2222
REPO_NAME_WITH_OWNER = ENV['GITHUB_REPOSITORY']
23-
NO_WORKFLOW_RUNNING_INFO = 'All nightly cron job were not run. Please make sure there at least exists one cron job running.'.freeze
23+
GITHUB_WORKFLOW_URL = "https://github.com/#{REPO_NAME_WITH_OWNER}/actions/runs/#{ENV['GITHUB_RUN_ID']}"
24+
TESTS_TIME_INTERVAL_IN_HOURS = 24
25+
TESTS_TIME_INTERVAL_IN_SECS = TESTS_TIME_INTERVAL_IN_HOURS * 3600
26+
NO_WORKFLOW_RUNNING_INFO = "All nightly cron job were not run in the last #{TESTS_TIME_INTERVAL_IN_HOURS} hrs. Please review [log](#{GITHUB_WORKFLOW_URL}) make sure there at least exists one cron job running.".freeze
2427
EXCLUDED_WORKFLOWS = []
2528
ISSUE_LABELS = ""
2629
ISSUE_TITLE = "Auto-Generated Testing Report"
@@ -47,10 +50,10 @@ def initialize(title)
4750
@is_empty_table = true
4851
@text = String.new ""
4952
@text << "# %s\n" % [title]
50-
@text << "This issue is generated at %s\n" % [cur_time.strftime('%m/%d/%Y %H:%M %p') ]
53+
@text << "This issue([log](%s)) is generated at %s, fetching workflow runs triggered in the last %s hrs.\n" % [GITHUB_WORKFLOW_URL, cur_time.strftime('%m/%d/%Y %H:%M %p'), TESTS_TIME_INTERVAL_IN_HOURS ]
5154
# get a table with two columns, workflow and the date of yesterday.
5255
@text << "| Workflow |"
53-
@text << (cur_time - 86400).strftime('%m/%d') + "|"
56+
@text << (cur_time - TESTS_TIME_INTERVAL_IN_SECS).strftime('%m/%d') + "|"
5457
@text << "\n| -------- |"
5558
@text << " -------- |"
5659
@text << "\n"
@@ -107,7 +110,7 @@ def get_workflows(client, repo_name)
107110
elsif EXCLUDED_WORKFLOWS.include?(workflow_file)
108111
puts workflow_file + " is excluded in the report."
109112
# Involved workflow runs triggered within one day.
110-
elsif Time.now.utc - latest_run.created_at < 86400
113+
elsif Time.now.utc - latest_run.created_at < TESTS_TIME_INTERVAL_IN_SECS
111114
puts "created_at: %s" % [latest_run.created_at]
112115
puts "conclusion: %s" % [latest_run.conclusion]
113116
result_text = "[%s](%s)" % [latest_run.conclusion.nil? ? "in_process" : latest_run.conclusion, latest_run.html_url]
@@ -116,6 +119,9 @@ def get_workflows(client, repo_name)
116119
else
117120
failure_report.add_workflow_run_and_result(workflow_text, result_text)
118121
end
122+
else
123+
puts "created_at: %s" % [latest_run.created_at]
124+
puts "conclusion: %s" % [latest_run.conclusion]
119125
end
120126
end
121127

.github/workflows/abtesting.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
- 'FirebaseABTesting**'
77
- 'Interop/Analytics/Public/*.h'
88
- '.github/workflows/abtesting.yml'
9-
- 'Gemfile'
9+
- 'Gemfile*'
1010
schedule:
11-
# Run every day at 7pm (PST) - cron uses UTC times
12-
- cron: '0 3 * * *'
11+
# Run every day at 1am(PST) - cron uses UTC times
12+
- cron: '0 9 * * *'
1313

1414
jobs:
1515
pod-lib-lint:

.github/workflows/analytics.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ on:
44
pull_request:
55
paths:
66
- 'FirebaseAnalytics.podspec.json'
7+
- 'FirebaseAnalyticsSwift**'
78
- 'GoogleAppMeasurement.podspec.json'
8-
- 'Gemfile'
9+
- '.github/workflows/analytics.yml'
10+
- 'Gemfile*'
911
schedule:
10-
# Run every day at 7pm (PST) - cron uses UTC times
11-
- cron: '0 3 * * *'
12+
# Run every day at 1am (PST) - cron uses UTC times
13+
- cron: '0 9 * * *'
1214

1315
jobs:
1416
pod-lib-lint:
@@ -21,7 +23,9 @@ jobs:
2123
- name: Setup Bundler
2224
run: scripts/setup_bundler.sh
2325
- name: GoogleAppMeasurement
24-
run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec.json
26+
run: scripts/third_party/travis/retry.sh pod spec lint GoogleAppMeasurement.podspec.json --sources=https://github.com/firebase/SpecsDev.git,https://github.com/firebase/SpecsStaging.git,https://cdn.cocoapods.org/
27+
- name: FirebaseAnalyticsSwift
28+
run: scripts/third_party/travis/retry.sh scripts/pod_lib_lint.rb FirebaseAnalyticsSwift.podspec --platforms=ios
2529

2630
# TODO: Consider pushing GoogleAppMeasurement.podspec.json to SpecsDev to enable similar test
2731
# for FirebaseAnalytics.podspec.json

.github/workflows/appdistribution.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
paths:
66
- 'FirebaseAppDistribution**'
77
- '.github/workflows/appdistribution.yml'
8-
- 'Gemfile'
8+
- 'Gemfile*'
99
schedule:
10-
# Run every day at 7pm (PST) - cron uses UTC times
11-
- cron: '0 3 * * *'
10+
# Run every day at 1am (PST) - cron uses UTC times
11+
- cron: '0 9 * * *'
1212

1313
jobs:
1414
pod-lib-lint:

.github/workflows/auth.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
- 'FirebaseAuth**'
77
- 'Interop/Auth/Public/*.h'
88
- '.github/workflows/auth.yml'
9-
- 'Gemfile'
9+
- 'Gemfile*'
1010
schedule:
11-
# Run every day at 7pm (PST) - cron uses UTC times
12-
- cron: '0 3 * * *'
11+
# Run every day at 1am (PST) - cron uses UTC times
12+
- cron: '0 9 * * *'
1313

1414
jobs:
1515

.github/workflows/cocoapods-integration.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
paths:
66
- 'CocoapodsIntegrationTest/**'
77
- '.github/workflows/cocoapods-integration.yml'
8-
- 'Gemfile'
8+
- 'Gemfile*'
99
schedule:
10-
# Run every day at 7pm (PST) - cron uses UTC times
11-
- cron: '0 3 * * *'
10+
# Run every day at 2am (PST) - cron uses UTC times
11+
- cron: '0 10 * * *'
1212

1313
jobs:
1414
tests:

.github/workflows/core-diagnostics.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
- 'Example/CoreDiagnostics/**'
88
- 'Interop/CoreDiagnostics/Public/*.h'
99
- '.github/workflows/core-diagnostics.yml'
10-
- 'Gemfile'
10+
- 'Gemfile*'
1111
schedule:
12-
# Run every day at 8pm (PST) - cron uses UTC times
13-
- cron: '0 4 * * *'
12+
# Run every day at 2am (PST) - cron uses UTC times
13+
- cron: '0 10 * * *'
1414

1515
jobs:
1616
pod-lib-lint:

.github/workflows/core.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ on:
66
- 'FirebaseCore**'
77
- 'Interop/CoreDiagnostics/Public/*.h'
88
- '.github/workflows/core.yml'
9-
- 'Gemfile'
9+
- 'Gemfile*'
1010
schedule:
11-
# Run every day at 8pm (PST) - cron uses UTC times
12-
- cron: '0 4 * * *'
11+
# Run every day at 2am (PST) - cron uses UTC times
12+
- cron: '0 10 * * *'
1313

1414
jobs:
1515
pod-lib-lint:

.github/workflows/crashlytics.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ on:
77
- 'FirebaseCrashlytics.podspec'
88
- '.github/workflows/crashlytics.yml'
99
- 'Interop/Analytics/Public/*.h'
10-
- 'Gemfile'
10+
- 'Gemfile*'
1111
schedule:
12-
# Run every day at 8pm (PST) - cron uses UTC times
13-
- cron: '0 4 * * *'
12+
# Run every day at 10am (PST) - cron uses UTC times
13+
- cron: '0 2 * * *'
1414

1515
jobs:
1616

.github/workflows/database.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ on:
88
- 'Example/Database/**'
99
- 'Interop/Auth/Public/*.h'
1010
- '.github/workflows/database.yml'
11-
- 'Gemfile'
11+
- 'Gemfile*'
1212
- 'scripts/run_database_emulator.sh'
1313
schedule:
14-
# Run every day at 8pm (PST) - cron uses UTC times
15-
- cron: '0 4 * * *'
14+
# Run every day at 2am (PST) - cron uses UTC times
15+
- cron: '0 10 * * *'
1616

1717
jobs:
1818
unit:
@@ -111,7 +111,7 @@ jobs:
111111

112112
strategy:
113113
matrix:
114-
target: [ios, tvos, macos]
114+
target: [ios, tvos, macos, watchos]
115115
steps:
116116
- uses: actions/checkout@v2
117117
- name: Setup Bundler

0 commit comments

Comments
 (0)