Skip to content

Commit

Permalink
Upload logs after bootstrap (project-chip#7473)
Browse files Browse the repository at this point in the history
Currently the bootstrap logs are discarded. Upload them to allow
diagnosis of any bootstrap problems.
  • Loading branch information
mspang authored Jun 9, 2021
1 parent 6a99148 commit b076df0
Show file tree
Hide file tree
Showing 13 changed files with 144 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ jobs:
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build libs
timeout-minutes: 2
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Setup Build
run: |
case $BUILD_TYPE in
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ jobs:
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Run iOS Build
timeout-minutes: 15
working-directory: src/darwin/Framework
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/examples-efr32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ jobs:
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp, python"
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example EFR32 Lock App for BRD4161A
timeout-minutes: 5
run:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/examples-esp32.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ jobs:
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp, python"
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example All Clusters App
timeout-minutes: 15
run: scripts/examples/esp_example.sh all-clusters-app
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/examples-k32w.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,17 @@ jobs:
# with:
# languages: "cpp"
# queries: +security-and-quality
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example K32W Lock App
timeout-minutes: 5
run: scripts/examples/k32w_example.sh
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/examples-linux-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ jobs:
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example Standalone Echo Client
timeout-minutes: 5
run:
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/examples-nrfconnect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ jobs:
with:
fetch-depth: 0
submodules: true
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Update nRF Connect SDK revision to the currently recommended.
timeout-minutes: 5
run: scripts/run_in_build_env.sh "python3 scripts/setup/nrfconnect/update_ncs.py --update"
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/examples-qpg6100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ jobs:
# uses: github/codeql-action/init@v1
# with:
# languages: "cpp"
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example QPG6100 Lock App
timeout-minutes: 5
run: scripts/examples/gn_build_example.sh
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/qemu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example All Clusters App
timeout-minutes: 15
run: scripts/examples/esp_example.sh all-clusters-app
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/release_artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ jobs:
with:
submodules: true
ref: "${{ github.event.inputs.releaseTag }}"
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build
run: scripts/examples/esp_example.sh all-clusters-app

Expand Down Expand Up @@ -66,6 +77,17 @@ jobs:
with:
submodules: true
ref: "${{ github.event.inputs.releaseTag }}"
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build example EFR32 Lock App
run:
scripts/examples/gn_efr32_example.sh examples/lock-app/efr32/
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ jobs:
- name: Bootstrap
timeout-minutes: 10
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Build all clusters app
timeout-minutes: 5
run: |
Expand Down Expand Up @@ -78,6 +86,14 @@ jobs:
- name: Bootstrap
timeout-minutes: 15
run: scripts/build/gn_bootstrap.sh
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Run Build Test Server
timeout-minutes: 5
run: |
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/unit_integration_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ jobs:
scripts/tests/happy_tests.sh install_packages ;
scripts/tests/happy_tests.sh bootstrap ;
scripts/build/gn_bootstrap.sh ;
- name: Uploading bootstrap logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: bootstrap-logs
path: |
.environment/gn_out/.ninja_log
.environment/pigweed-venv/*.log
- name: Artifact suffix
id: outsuffix
uses: haya14busa/[email protected]
Expand Down

0 comments on commit b076df0

Please sign in to comment.