From 22643d55801d8ff5770f74ee05effe0f1fcf3532 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 22 Jul 2020 22:41:27 +0000 Subject: [PATCH 01/19] Initial checkin --- .github/labeler.yml | 104 +++++++++++++++++++++++++++++++++ .github/workflows/labeler.yaml | 11 ++++ 2 files changed, 115 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000000000..4afe4f544cd658 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,104 @@ +# Add 'repo' label to any root file changes +repo: + - ./* + +scripts: + - scripts/* + +examples: + - examples/* + +documentation: + - docs/* + +tools: + - tools/* + +integrations: + - integrations/* + +qr code: + - src/qrcode/* + +lwip: + - src/lwip/* + +vscode: + - .vscode + - .devcontainer + +gn: + - gn/* + +github: + - .github + +workflows: + - .github/workflows/* + +inet: + - src/inet/* + +config: + - config/* + +lib: + - src/lib/* + +platform: + - src/platform/* + +crypto: + - src/platform/* + +controller: + - src/controller/* + +ble: + - src/ble/* + +android: + - src/android/* + +app: + - src/app/* + +darwin: + - src/platform/Darwin/* + - src/darwin/* + +efr32: + - src/platform/EFR32/* + +esp32: + - src/platform/ESP32/* + +freeRTOS: + - src/platform/FreeRTOS/* + +k32w: + - src/platform/K32W/* + +linux: + - src/platform/Linux/* + +nrf5: + - src/platform/nRF5/* + +nrf connect: + - src/platform/nrfconnect/* + +openthread: + - src/platform/openthread/* + +zephyr: + - src/platform/Zephyr/* + +transport: + - src/transport/* + +system: + - src/system/* + +setup payload: + - src/setup_payload/* diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 00000000000000..bcfdf86cdf0728 --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: + - pull_request + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From 03e69deed90938402c8324f654e35c219b56683a Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 22 Jul 2020 22:53:10 +0000 Subject: [PATCH 02/19] Trying on schedule --- .github/workflows/labeler.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index bcfdf86cdf0728..4bea6fe5365d22 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -1,6 +1,7 @@ name: "Pull Request Labeler" on: - - pull_request + schedule: + - cron: "*/1 * * * *" jobs: triage: From ce7406c91a4540fad28c85670e54ba3159f8a987 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 22 Jul 2020 23:20:12 +0000 Subject: [PATCH 03/19] Updating --- .github/workflows/labeler.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 4bea6fe5365d22..fc02bdb4e2cff6 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -2,6 +2,11 @@ name: "Pull Request Labeler" on: schedule: - cron: "*/1 * * * *" + pull_request: + types: + - opened + - synchronize + - closed jobs: triage: From f58305cc0abd06ef24ec60edf8107ab8ca58499e Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 22 Jul 2020 23:26:33 +0000 Subject: [PATCH 04/19] Attempt --- .github/labels.yaml | 104 +++++++++++++++++++++++++++++++++ .github/workflows/labeler.yaml | 7 +++ 2 files changed, 111 insertions(+) create mode 100644 .github/labels.yaml diff --git a/.github/labels.yaml b/.github/labels.yaml new file mode 100644 index 00000000000000..4afe4f544cd658 --- /dev/null +++ b/.github/labels.yaml @@ -0,0 +1,104 @@ +# Add 'repo' label to any root file changes +repo: + - ./* + +scripts: + - scripts/* + +examples: + - examples/* + +documentation: + - docs/* + +tools: + - tools/* + +integrations: + - integrations/* + +qr code: + - src/qrcode/* + +lwip: + - src/lwip/* + +vscode: + - .vscode + - .devcontainer + +gn: + - gn/* + +github: + - .github + +workflows: + - .github/workflows/* + +inet: + - src/inet/* + +config: + - config/* + +lib: + - src/lib/* + +platform: + - src/platform/* + +crypto: + - src/platform/* + +controller: + - src/controller/* + +ble: + - src/ble/* + +android: + - src/android/* + +app: + - src/app/* + +darwin: + - src/platform/Darwin/* + - src/darwin/* + +efr32: + - src/platform/EFR32/* + +esp32: + - src/platform/ESP32/* + +freeRTOS: + - src/platform/FreeRTOS/* + +k32w: + - src/platform/K32W/* + +linux: + - src/platform/Linux/* + +nrf5: + - src/platform/nRF5/* + +nrf connect: + - src/platform/nrfconnect/* + +openthread: + - src/platform/openthread/* + +zephyr: + - src/platform/Zephyr/* + +transport: + - src/transport/* + +system: + - src/system/* + +setup payload: + - src/setup_payload/* diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index fc02bdb4e2cff6..fb678a80425a85 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -15,3 +15,10 @@ jobs: - uses: actions/labeler@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" + prow: + runs-on: ubuntu-latest + steps: + - uses: jpmcb/prow-github-actions + with: + jobs: "pr-labeler" + github-token: "${{ secrets.GITHUB_TOKEN }}" From d8c4a43d4437661b0ffed7115ee57e5625475adf Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 22 Jul 2020 23:31:02 +0000 Subject: [PATCH 05/19] Fixing --- .github/workflows/labeler.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index fb678a80425a85..52eeb1329bd24b 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -15,9 +15,6 @@ jobs: - uses: actions/labeler@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - prow: - runs-on: ubuntu-latest - steps: - uses: jpmcb/prow-github-actions with: jobs: "pr-labeler" From 680d5e0be958634d1ce901421850aa0074c13ef2 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 22 Jul 2020 23:35:22 +0000 Subject: [PATCH 06/19] Versions --- .github/workflows/labeler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 52eeb1329bd24b..779f8f61a08d33 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/labeler@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - - uses: jpmcb/prow-github-actions + - uses: jpmcb/prow-github-actions@v1 with: jobs: "pr-labeler" github-token: "${{ secrets.GITHUB_TOKEN }}" From e7b7c626917c08e9c315254523a66c1dafa2114b Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 22 Jul 2020 23:42:45 +0000 Subject: [PATCH 07/19] Disabling --- .github/workflows/labeler.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 779f8f61a08d33..0d9fb7f47791c5 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/labeler@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - - uses: jpmcb/prow-github-actions@v1 - with: - jobs: "pr-labeler" - github-token: "${{ secrets.GITHUB_TOKEN }}" + # - uses: jpmcb/prow-github-actions@v1 + # with: + # jobs: "pr-labeler" + # github-token: "${{ secrets.GITHUB_TOKEN }}" From 5e22f35a9a207b7380c77333684c6dfd5082572c Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 22 Jul 2020 23:48:37 +0000 Subject: [PATCH 08/19] Correct version --- .github/workflows/labeler.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 0d9fb7f47791c5..ee623f8d26ba29 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -15,7 +15,7 @@ jobs: - uses: actions/labeler@v2 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - # - uses: jpmcb/prow-github-actions@v1 - # with: - # jobs: "pr-labeler" - # github-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: jpmcb/prow-github-actions@v1.0.0 + with: + jobs: "pr-labeler" + github-token: "${{ secrets.GITHUB_TOKEN }}" From 933ee1886dd8bffcffc4806b56e25706c7b2f015 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 00:18:32 +0000 Subject: [PATCH 09/19] Just for prs --- .github/workflows/labeler.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index ee623f8d26ba29..8627e29bf3bdb8 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -1,21 +1,16 @@ name: "Pull Request Labeler" on: schedule: - - cron: "*/1 * * * *" - pull_request: - types: - - opened - - synchronize - - closed + - cron: "0 * * * *" jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - uses: jpmcb/prow-github-actions@v1.0.0 with: jobs: "pr-labeler" github-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" From 388c0cb2b14b79ccb0b1ba1b0870d1c3cdff98d7 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 00:21:52 +0000 Subject: [PATCH 10/19] Test --- .github/workflows/labeler.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 8627e29bf3bdb8..df3a5dff5785a2 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -2,6 +2,11 @@ name: "Pull Request Labeler" on: schedule: - cron: "0 * * * *" + pull_request: + types: + - opened + - synchronize + - closed jobs: triage: From 72996b1e2a1eb980faeb864c5723f45f8eb3da8b Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 00:23:14 +0000 Subject: [PATCH 11/19] Test --- .github/workflows/labeler.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index df3a5dff5785a2..b34f9a2e35c2cc 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -3,10 +3,6 @@ on: schedule: - cron: "0 * * * *" pull_request: - types: - - opened - - synchronize - - closed jobs: triage: From 65fffa8f04a1913af683db53adfdc4bc3194ff67 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 01:19:00 +0000 Subject: [PATCH 12/19] Typo? --- .github/workflows/labeler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index b34f9a2e35c2cc..073a89303efb44 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -10,7 +10,7 @@ jobs: steps: - uses: jpmcb/prow-github-actions@v1.0.0 with: - jobs: "pr-labeler" + jobs: 'pr-labeler' github-token: "${{ secrets.GITHUB_TOKEN }}" - uses: actions/labeler@v2 with: From 34fc1d05fb1da87b4e375c4305cb7c09a6618acd Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 01:19:48 +0000 Subject: [PATCH 13/19] Test --- .github/workflows/labeler.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 073a89303efb44..b34f9a2e35c2cc 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -10,7 +10,7 @@ jobs: steps: - uses: jpmcb/prow-github-actions@v1.0.0 with: - jobs: 'pr-labeler' + jobs: "pr-labeler" github-token: "${{ secrets.GITHUB_TOKEN }}" - uses: actions/labeler@v2 with: From 03b7f6622cd0e5e14a44bec362bf6dfc5131b1d3 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 01:28:05 +0000 Subject: [PATCH 14/19] Test --- .github/workflows/labeler.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index b34f9a2e35c2cc..b5f54b8f6b9a69 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -8,10 +8,10 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: jpmcb/prow-github-actions@v1.0.0 - with: - jobs: "pr-labeler" - github-token: "${{ secrets.GITHUB_TOKEN }}" - - uses: actions/labeler@v2 + # - uses: jpmcb/prow-github-actions@v1.0.0 + # with: + # jobs: "pr-labeler" + # github-token: "${{ secrets.GITHUB_TOKEN }}" + - uses: actions/labeler@v3-preview with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From f9dc42ba678e2238e5eb576b8b078a404c892373 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 01:43:25 +0000 Subject: [PATCH 15/19] Adding size --- .github/workflows/size-label.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/size-label.yml diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml new file mode 100644 index 00000000000000..50c8ee2def8004 --- /dev/null +++ b/.github/workflows/size-label.yml @@ -0,0 +1,11 @@ +name: size-label +on: pull_request +jobs: + size-label: + runs-on: ubuntu-latest + steps: + - name: size-label + uses: "pascalgn/size-label-action@ee2c1d869559066f4c5242f20c658e402e937e73" + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + IGNORED: ".*\n!.gitignore\nyarn.lock\ngenerated/**" From d38bb67a4c6ac6fbc16b702167f42fb4bcd3b9fe Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 01:48:18 +0000 Subject: [PATCH 16/19] Updating copyrights, and moving to labeller --- .devcontainer/Dockerfile | 14 ++++ .github/labeler.yml | 81 +++++++++++++++------- .github/labels.yaml | 104 ----------------------------- .github/workflows/bloat_check.yaml | 19 ++++-- .github/workflows/build.yaml | 17 ++++- .github/workflows/examples.yaml | 38 ++++++++--- .github/workflows/gn_build.yaml | 14 ++++ .github/workflows/gn_examples.yaml | 46 ++++++++++--- .github/workflows/labeler.yaml | 18 +++-- .github/workflows/qemu.yaml | 17 ++++- .github/workflows/size-label.yml | 16 ++++- 11 files changed, 223 insertions(+), 161 deletions(-) delete mode 100644 .github/labels.yaml diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 0b185ee22518d1..e9895c6d17316e 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,3 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ARG BUILD_VERSION # All tools required for compilation belong in chip-build, forms "truth" for CHIP build tooling diff --git a/.github/labeler.yml b/.github/labeler.yml index 4afe4f544cd658..c3385de3fe52fa 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,28 +1,44 @@ -# Add 'repo' label to any root file changes +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +############################################################ +# Top Level Labels +############################################################ repo: - ./* -scripts: - - scripts/* - +############################################################ +# Examples +############################################################ examples: - examples/* +############################################################ +# Documentation +############################################################ documentation: - docs/* -tools: - - tools/* +############################################################ +# Tools + Development Items +############################################################ +scripts: + - scripts/* integrations: - integrations/* -qr code: - - src/qrcode/* - -lwip: - - src/lwip/* - vscode: - .vscode - .devcontainer @@ -36,6 +52,18 @@ github: workflows: - .github/workflows/* +tools: + - tools/* + +############################################################ +# Source Code +############################################################ +qr code: + - src/qrcode/* + +lwip: + - src/lwip/* + inet: - src/inet/* @@ -45,11 +73,8 @@ config: lib: - src/lib/* -platform: - - src/platform/* - crypto: - - src/platform/* + - src/crypto/* controller: - src/controller/* @@ -63,6 +88,21 @@ android: app: - src/app/* +transport: + - src/transport/* + +system: + - src/system/* + +setup payload: + - src/setup_payload/* + +############################################################ +# Platforms +############################################################ +platform: + - src/platform/* + darwin: - src/platform/Darwin/* - src/darwin/* @@ -93,12 +133,3 @@ openthread: zephyr: - src/platform/Zephyr/* - -transport: - - src/transport/* - -system: - - src/system/* - -setup payload: - - src/setup_payload/* diff --git a/.github/labels.yaml b/.github/labels.yaml deleted file mode 100644 index 4afe4f544cd658..00000000000000 --- a/.github/labels.yaml +++ /dev/null @@ -1,104 +0,0 @@ -# Add 'repo' label to any root file changes -repo: - - ./* - -scripts: - - scripts/* - -examples: - - examples/* - -documentation: - - docs/* - -tools: - - tools/* - -integrations: - - integrations/* - -qr code: - - src/qrcode/* - -lwip: - - src/lwip/* - -vscode: - - .vscode - - .devcontainer - -gn: - - gn/* - -github: - - .github - -workflows: - - .github/workflows/* - -inet: - - src/inet/* - -config: - - config/* - -lib: - - src/lib/* - -platform: - - src/platform/* - -crypto: - - src/platform/* - -controller: - - src/controller/* - -ble: - - src/ble/* - -android: - - src/android/* - -app: - - src/app/* - -darwin: - - src/platform/Darwin/* - - src/darwin/* - -efr32: - - src/platform/EFR32/* - -esp32: - - src/platform/ESP32/* - -freeRTOS: - - src/platform/FreeRTOS/* - -k32w: - - src/platform/K32W/* - -linux: - - src/platform/Linux/* - -nrf5: - - src/platform/nRF5/* - -nrf connect: - - src/platform/nrfconnect/* - -openthread: - - src/platform/openthread/* - -zephyr: - - src/platform/Zephyr/* - -transport: - - src/transport/* - -system: - - src/system/* - -setup payload: - - src/setup_payload/* diff --git a/.github/workflows/bloat_check.yaml b/.github/workflows/bloat_check.yaml index 3e79875a063bed..eff58e2435a35d 100644 --- a/.github/workflows/bloat_check.yaml +++ b/.github/workflows/bloat_check.yaml @@ -1,8 +1,21 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Bloat Check on: schedule: - - cron: '*/5 * * * *' - + - cron: "*/5 * * * *" jobs: pull_request_update: @@ -22,5 +35,3 @@ jobs: scripts/helpers/bloat_check.py \ --github-repository project-chip/connectedhomeip \ --github-api-token "${{ secrets.GITHUB_TOKEN }}" - - diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6ffd85bf35ce2f..8e35d6760277d0 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Builds on: @@ -25,7 +39,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: - submodules: true + submodules: true - name: Bootstrap run: | case $BUILD_TYPE in @@ -75,4 +89,3 @@ jobs: # - name: Upload Code Coverage # if: ${{ contains('main', env.BUILD_TYPE) }} # run: bash <(curl -s https://codecov.io/bash) - diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index ba220579013a0f..79d73bad3a2e0a 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Examples on: @@ -24,8 +38,8 @@ jobs: uses: actions/checkout@v2 # Fetch depth 0 to get all history and be able to check mergepoint for bloat report with: - fetch-depth: 0 - submodules: true + fetch-depth: 0 + submodules: true - name: Build example Echo App run: scripts/examples/esp_echo_app.sh - name: Copy aside build products @@ -46,7 +60,9 @@ jobs: - name: Uploading Binaries uses: actions/upload-artifact@v1 with: - name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }} + name: + ${{ env.BUILD_TYPE }}-example-build-${{ + steps.outsuffix.outputs.value }} path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build nrf: @@ -68,8 +84,8 @@ jobs: uses: actions/checkout@v2 # Fetch depth 0 to get all history and be able to check mergepoint for bloat report with: - fetch-depth: 0 - submodules: true + fetch-depth: 0 + submodules: true - name: Build example nRF5 Lock App run: scripts/examples/nrf_lock_app.sh - name: Copy aside build products @@ -90,7 +106,9 @@ jobs: - name: Uploading Binaries uses: actions/upload-artifact@v1 with: - name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }} + name: + ${{ env.BUILD_TYPE }}-example-build-${{ + steps.outsuffix.outputs.value }} path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build linux-standalone: @@ -112,8 +130,8 @@ jobs: uses: actions/checkout@v2 # Fetch depth 0 to get all history and be able to check mergepoint for bloat report with: - fetch-depth: 0 - submodules: true + fetch-depth: 0 + submodules: true - name: Build example Standalone Echo Client run: scripts/examples/standalone_echo_client.sh - name: Build example Standalone Shell @@ -136,5 +154,7 @@ jobs: - name: Uploading Binaries uses: actions/upload-artifact@v1 with: - name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }} + name: + ${{ env.BUILD_TYPE }}-example-build-${{ + steps.outsuffix.outputs.value }} path: /tmp/output_binaries/${{ env.BUILD_TYPE }}-build diff --git a/.github/workflows/gn_build.yaml b/.github/workflows/gn_build.yaml index fd232689b7eaff..4cffc7210b09d6 100644 --- a/.github/workflows/gn_build.yaml +++ b/.github/workflows/gn_build.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: GN Builds on: diff --git a/.github/workflows/gn_examples.yaml b/.github/workflows/gn_examples.yaml index 971208233c61c0..da42f875ebff88 100644 --- a/.github/workflows/gn_examples.yaml +++ b/.github/workflows/gn_examples.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: GN Examples on: @@ -30,9 +44,13 @@ jobs: - name: Bootstrap run: scripts/build/gn_bootstrap.sh - name: Build example nRF5 Lock App - run: scripts/examples/gn_nrf_example.sh examples/lock-app/nrf5 out/lock_app_debug + run: + scripts/examples/gn_nrf_example.sh examples/lock-app/nrf5 + out/lock_app_debug - name: Build example nRF5 Lighting App - run: scripts/examples/gn_nrf_example.sh examples/lighting-app/nrf5 out/lighting_app_debug + run: + scripts/examples/gn_nrf_example.sh examples/lighting-app/nrf5 + out/lighting_app_debug - name: Binary artifact suffix id: outsuffix uses: haya14busa/action-cond@v1.0.0 @@ -43,10 +61,12 @@ jobs: - name: Uploading Binaries uses: actions/upload-artifact@v2 with: - name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }} + name: + ${{ env.BUILD_TYPE }}-example-build-${{ + steps.outsuffix.outputs.value }} path: | - out/lock_app_debug/chip-nrf52840-lock-example - out/lighting_app_debug/chip-nrf52840-lighting-example + out/lock_app_debug/chip-nrf52840-lock-example + out/lighting_app_debug/chip-nrf52840-lighting-example linux-standalone: name: Linux Standalone @@ -73,9 +93,13 @@ jobs: - name: Bootstrap run: scripts/build/gn_bootstrap.sh - name: Build example Standalone Echo Client - run: scripts/examples/gn_build_example.sh examples/chip-tool out/chip_tool_debug + run: + scripts/examples/gn_build_example.sh examples/chip-tool + out/chip_tool_debug - name: Build example Standalone Shell - run: scripts/examples/gn_build_example.sh examples/shell out/shell_debug + run: + scripts/examples/gn_build_example.sh examples/shell + out/shell_debug - name: Binary artifact suffix id: outsuffix uses: haya14busa/action-cond@v1.0.0 @@ -86,7 +110,9 @@ jobs: - name: Uploading Binaries uses: actions/upload-artifact@v2 with: - name: ${{ env.BUILD_TYPE }}-example-build-${{ steps.outsuffix.outputs.value }} + name: + ${{ env.BUILD_TYPE }}-example-build-${{ + steps.outsuffix.outputs.value }} path: | - out/chip_tool_debug/chip-standalone-demo - out/shell_debug/chip-shell + out/chip_tool_debug/chip-standalone-demo + out/shell_debug/chip-shell diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index b5f54b8f6b9a69..104bdd6ff24e24 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: "Pull Request Labeler" on: schedule: @@ -8,10 +22,6 @@ jobs: triage: runs-on: ubuntu-latest steps: - # - uses: jpmcb/prow-github-actions@v1.0.0 - # with: - # jobs: "pr-labeler" - # github-token: "${{ secrets.GITHUB_TOKEN }}" - uses: actions/labeler@v3-preview with: repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/qemu.yaml b/.github/workflows/qemu.yaml index b4055ebeb00a2d..e1b7723faff443 100644 --- a/.github/workflows/qemu.yaml +++ b/.github/workflows/qemu.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: QEMU on: @@ -22,7 +36,7 @@ jobs: - name: Checkout uses: actions/checkout@v2 with: - submodules: true + submodules: true - name: Build example Echo App run: scripts/examples/esp_echo_app.sh - name: Build ESP32 QEMU and Run Tests @@ -34,4 +48,3 @@ jobs: with: name: qemu-esp32-logs path: /tmp/log_output - diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index 50c8ee2def8004..fbf1ea7e7c70b5 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -1,4 +1,18 @@ -name: size-label +# Copyright (c) 2020 Project CHIP Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Size Label on: pull_request jobs: size-label: From 0d96a241db66c71028fd08b1b647c6c84e0162dc Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 01:48:51 +0000 Subject: [PATCH 17/19] Run every few minutes, doesn't work on PRs sadly --- .github/workflows/labeler.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index 104bdd6ff24e24..ae1e3b48654171 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -16,7 +16,6 @@ name: "Pull Request Labeler" on: schedule: - cron: "0 * * * *" - pull_request: jobs: triage: From c924a52a00e9ba962cf650449aa33eb02d88577a Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 01:52:29 +0000 Subject: [PATCH 18/19] Fixing naming --- .github/workflows/labeler.yaml | 3 ++- .github/workflows/size-label.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml index ae1e3b48654171..c1f6fece55a868 100644 --- a/.github/workflows/labeler.yaml +++ b/.github/workflows/labeler.yaml @@ -12,13 +12,14 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: "Pull Request Labeler" +name: Categories on: schedule: - cron: "0 * * * *" jobs: triage: + name: Label Categories runs-on: ubuntu-latest steps: - uses: actions/labeler@v3-preview diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml index fbf1ea7e7c70b5..7a506903b29225 100644 --- a/.github/workflows/size-label.yml +++ b/.github/workflows/size-label.yml @@ -12,10 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: Size Label +name: Sizes on: pull_request jobs: size-label: + name: Label Sizes runs-on: ubuntu-latest steps: - name: size-label From 960e6033ffd5b255dec5d8b633e60adeeb76fa2f Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 23 Jul 2020 02:07:52 +0000 Subject: [PATCH 19/19] Removing size, won't work on forks --- .github/workflows/size-label.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/size-label.yml diff --git a/.github/workflows/size-label.yml b/.github/workflows/size-label.yml deleted file mode 100644 index 7a506903b29225..00000000000000 --- a/.github/workflows/size-label.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright (c) 2020 Project CHIP Authors -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: Sizes -on: pull_request -jobs: - size-label: - name: Label Sizes - runs-on: ubuntu-latest - steps: - - name: size-label - uses: "pascalgn/size-label-action@ee2c1d869559066f4c5242f20c658e402e937e73" - env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - IGNORED: ".*\n!.gitignore\nyarn.lock\ngenerated/**"