Skip to content

Commit 96c766f

Browse files
committed
Add bloat_check report to PR
1 parent 144222f commit 96c766f

2 files changed

Lines changed: 467 additions & 0 deletions

File tree

.github/workflows/bloat_check.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Copyright (c) 2020-2025 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Bloat Check
16+
on:
17+
workflow_dispatch:
18+
schedule:
19+
- cron: "*/5 * * * *"
20+
21+
concurrency:
22+
group: ${{ github.workflow }}
23+
# Don't cancel an already-running bloat check just because it took more
24+
# than 5 minutes to run and our cron job is trying to schedule a new one.
25+
cancel-in-progress: false
26+
27+
jobs:
28+
pull_request_update:
29+
name: Report on pull requests
30+
31+
# Don't run on forked repos
32+
if: github.repository_owner == 'project-chip'
33+
34+
runs-on: ubuntu-latest
35+
36+
container:
37+
image: ghcr.io/project-chip/chip-build:169
38+
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v5
42+
- name: Set up environment for size reports
43+
uses: ./.github/actions/setup-size-reports
44+
if: ${{ !env.ACT }}
45+
with:
46+
gh-context: ${{ toJson(github) }}
47+
- name: Report
48+
run: |
49+
python scripts/memory/gh_report.py \
50+
--verbose \
51+
--report-increases 0.2 \
52+
--report-pr \
53+
--github-comment \
54+
--github-limit-artifact-pages 50 \
55+
--github-limit-artifacts 500 \
56+
--github-limit-comments 20 \
57+
--github-repository project-chip/rs-matter \
58+
--github-api-token "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)