Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Code Coverage Report and Fix webapp instructions #36822

Merged
merged 7 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 39 additions & 2 deletions integrations/appengine/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Deploy Static Website on App Engine
## Deploy Static Website on App Engine for The CHIP Coverage Report

soares-sergio marked this conversation as resolved.
Show resolved Hide resolved
### Setup google cloud integration

Expand Down Expand Up @@ -30,7 +30,44 @@ settings of your App Engine application.
Directory `out/coverage/coverage` contains the coverage report files, such as
HTML, CSS, images, and JavaScript.

Deploying your generated report:

```
cd out/coverage/coverage
gcloud app deploy ../../../integrations/appengine/webapp_config.yaml
cp ../../../integrations/appengine/webapp_config.yaml ../../../integrations/appengine/.gcloudignore .
gcloud app deploy webapp_config.yaml --project matter-build-automation
```

The output should look like:

```
Services to deploy:

descriptor: [/usr/local/google/home/<user>/connectedhomeip/out/coverage/coverage/webapp_config.yaml]
source: [/usr/local/google/home/<user>/connectedhomeip/out/coverage/coverage]
target project: [matter-build-automation]
target service: [default]
target version: [20241212t175429]
target url: [https://matter-build-automation.ue.r.appspot.com]
target service account: [[email protected]]


Do you want to continue (Y/n)? Y

Beginning deployment of service [default]...
╔════════════════════════════════════════════════════════════╗
╠═ Uploading 0 files to Google Cloud Storage ═╣
╚════════════════════════════════════════════════════════════╝
File upload done.
Updating service [default]...done.
Setting traffic split for service [default]...done.
Deployed service [default] to [https://matter-build-automation.ue.r.appspot.com]

You can stream logs from the command line by running:
$ gcloud app logs tail -s default

To view your application in the web browser run:
$ gcloud app browse --project=matter-build-automation
```

If you run into permission issues, reach out to a team member from Google.
4 changes: 1 addition & 3 deletions integrations/appengine/webapp_config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
runtime: python27
api_version: 1
threadsafe: true
runtime: python39
handlers:
- url: /
static_files: html/index.html
Expand Down
Loading