Skip to content

Commit

Permalink
oui
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Oct 25, 2023
1 parent 3d0769a commit 4a62e3f
Show file tree
Hide file tree
Showing 6 changed files with 365 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
266 changes: 265 additions & 1 deletion .github/workflows/_scan_all.yml → .github/workflows/scan_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
- name: Launch scan
run: |
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref || 'master' }} --input_file input_${{ matrix.index }}.json --scan --${{ matrix.device }} --skip_setup --output_file scan_${{ matrix.device }}_${{ matrix.index }}.json
python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref || 'master' }} --input_file input_${{ matrix.index }}.json --scan --${{ matrix.device }} --skip_setup --output_file scan_${{ matrix.device }}_${{ matrix.index }}.json --logs_file log_${{ matrix.device }}_{{ matrix.index }}.txt
#- name: Push info to DB
# run: |
Expand All @@ -178,6 +178,13 @@ jobs:
name: scan_${{ matrix.device }}_${{ matrix.index }}.json
path: scan_${{ matrix.device }}_${{ matrix.index }}.json

- name: Archive log file
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: log_${{ matrix.device }}_${{ matrix.index }}.txt
path: log_${{ matrix.device }}_${{ matrix.index }}.txt

info-devices:
name: Setup scan infos by devices
runs-on: ubuntu-latest
Expand Down Expand Up @@ -249,6 +256,263 @@ jobs:
name: merged_scan_${{ matrix.device }}.json
path: merged_scan_${{ matrix.device }}.json

build-error_log:
name: Build error logs
runs-on: ubuntu-latest
needs: [scan-all, setup-devices]
steps:
- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_1.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_2.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_3.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_4.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_5.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_6.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_7.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_8.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_9.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanos_10.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_1.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_2.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_3.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_4.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_5.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_6.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_7.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_8.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_9.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanosp_10.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_1.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_2.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_3.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_4.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_5.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_6.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_7.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_8.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_9.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_nanox_10.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_1.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_2.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_3.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_4.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_5.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_6.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_7.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_8.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_9.txt

- name: Download files
uses: actions/download-artifact@v3
continue-on-error: true
with:
name: log_stax_10.txt

- name: Merge all
continue-on-error: true
run: |
cat log_* > error_log.txt
- name: Archive log error file
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: error_log.txt
path: error_log.txt

info-all:
name: Setup scan infos
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 4a62e3f

Please sign in to comment.