You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/cloud_funcs/README.md
+9-5
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,12 @@
1
1
This directory contains the following Google Cloud Functions.
2
2
3
3
### `trigger_nightly`
4
-
Programatically triggers a Cloud Build on master. This function is called by the Cloud Scheduler around 4am "America/New York" time every day (configurable via the Cloud Scheduler UI).
4
+
5
+
Programmatically triggers a Cloud Build on master. This function is called by the Cloud Scheduler around 4am "America/New York" time every day (configurable via the Cloud Scheduler UI).
5
6
You can also trigger the function manually via the Cloud UI.
6
7
7
8
Command to re-deploy:
9
+
8
10
```sh
9
11
gcloud functions deploy nightly_tfjs \
10
12
--runtime nodejs14 \
@@ -15,6 +17,7 @@ If a build was triggered by nightly, there is a substitution variable `_NIGHTLY=
15
17
You can forward the substitution as the `NIGHTLY` environment variable so the scripts can use it, by specifying `env: ['NIGHTLY=$_NIGHTLY']` in `cloudbuild.yml`. E.g. `integration_tests/benchmarks/benchmark_cloud.sh` uses the `NIGHTLY` bit to always run on nightly.
16
18
17
19
### `send_email`
20
+
18
21
Sends an email and a chat message with the nightly build status. Every build sends a message to the `cloud-builds` topic with its build information. The `send_email` function is subscribed to that topic and ignores all builds (e.g. builds triggered by pull requests) **except** for the nightly build and sends an email to an internal mailing list with its build status around 4:40am.
Makes a request to browserStack to sync the current build of the tfjs-react-native integration app to browserstack. The app itself is stored in a GCP bucket. This needs to be done at least once every 30 days and is triggered via cloud scheduler via the `sync_reactnative` topic.
0 commit comments