Skip to content

Commit

Permalink
DNM! Start right where it failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ajelinski committed Feb 7, 2025
1 parent 2259e59 commit 8842029
Show file tree
Hide file tree
Showing 19 changed files with 488,821 additions and 107 deletions.
222 changes: 115 additions & 107 deletions .github/workflows/report-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,98 +5,98 @@ on:

jobs:

merge-verilator-reports:
name: Merge Verilator info data
runs-on: ubuntu-24.04
container: ghcr.io/antmicro/cores-veer-el2:20250123123840
env:
DEBIAN_FRONTEND: "noninteractive"
steps:
- uses: actions/checkout@v3
with:
submodules: recursive

# TODO: REMOVE
- name: Unpack data
shell: bash
run: |
tar xf info_files_verilator.tar.xz
mv info_files_verilator/* ./
rm -rf info_files_verilator
- name: Merge data
shell: bash
run: |
mkdir info_files_verilator
mv *.info info_files_verilator/
export SIM=verilator
.github/scripts/prepare_coverage_data.sh
- name: Pack artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: verilator_coverage_single_data
path: verilator_coverage_single_data.tar.gz

- name: Pack artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: data_verilator
path: test_data/*

custom-coverage-report:
name: Custom coverage report
runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
container: centos:8
needs: [merge-verilator-reports]
env:
GHA_EXTERNAL_DISK: additional-tools
GHA_SA: gh-sa-veer-uploader

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Prepare Environment
run: _secret_prepare_env

- name: Generate custom report
run: _secret_custom_report

custom-coverage-report-mapped:
name: Custom coverage mapped report
runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
container: centos:8
needs: [custom-coverage-report]
env:
GHA_EXTERNAL_DISK: additional-tools
GHA_SA: gh-sa-veer-uploader

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Prepare Environment
run: _secret_prepare_env

- name: Generate custom mapped report
run: _secret_custom_report_mapfile_tmp

- name: Pack artifacts
uses: actions/upload-artifact@v4
with:
name: info_files_v_mapped
path: info_files_v
# merge-verilator-reports:
# name: Merge Verilator info data
# runs-on: ubuntu-24.04
# container: ghcr.io/antmicro/cores-veer-el2:20250123123840
# env:
# DEBIAN_FRONTEND: "noninteractive"
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
#
# # TODO: REMOVE
# - name: Unpack data
# shell: bash
# run: |
# tar xf info_files_verilator.tar.xz
# mv info_files_verilator/* ./
# rm -rf info_files_verilator
#
# - name: Merge data
# shell: bash
# run: |
# mkdir info_files_verilator
# mv *.info info_files_verilator/
# export SIM=verilator
# .github/scripts/prepare_coverage_data.sh
#
# - name: Pack artifacts
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: verilator_coverage_single_data
# path: verilator_coverage_single_data.tar.gz
#
# - name: Pack artifacts
# if: always()
# uses: actions/upload-artifact@v4
# with:
# name: data_verilator
# path: test_data/*
#
# custom-coverage-report:
# name: Custom coverage report
# runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
# container: centos:8
# needs: [merge-verilator-reports]
# env:
# GHA_EXTERNAL_DISK: additional-tools
# GHA_SA: gh-sa-veer-uploader
#
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Prepare Environment
# run: _secret_prepare_env
#
# - name: Generate custom report
# run: _secret_custom_report
#
# custom-coverage-report-mapped:
# name: Custom coverage mapped report
# runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
# container: centos:8
# needs: [custom-coverage-report]
# env:
# GHA_EXTERNAL_DISK: additional-tools
# GHA_SA: gh-sa-veer-uploader
#
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Prepare Environment
# run: _secret_prepare_env
#
# - name: Generate custom mapped report
# run: _secret_custom_report_mapfile_tmp
#
# - name: Pack artifacts
# uses: actions/upload-artifact@v4
# with:
# name: info_files_v_mapped
# path: info_files_v

custom-coverage-report-merged:
name: Custom coverage report merger
runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
container: debian:trixie
needs: [custom-coverage-report, custom-coverage-report-mapped]
# needs: [custom-coverage-report, custom-coverage-report-mapped]
env:
GHA_EXTERNAL_DISK: additional-tools
GHA_SA: gh-sa-veer-uploader
Expand All @@ -106,36 +106,41 @@ jobs:
with:
submodules: recursive

- name: Extract custom coverage
run: _secret_extract_custom_coverage

- name: Prepare custom coverage
run: |
export SIM=v
.github/scripts/prepare_coverage_data.sh
# info_files_v_mapped uses the same dir.
rm -rf info_files_v
- name: Pack artifacts
uses: actions/upload-artifact@v4
with:
name: v_coverage_single_data
path: v_coverage_single_data.tar.xz
# - name: Extract custom coverage
# run: _secret_extract_custom_coverage
#
# - name: Prepare custom coverage
# run: |
# export SIM=v
# .github/scripts/prepare_coverage_data.sh
# # info_files_v_mapped uses the same dir.
# rm -rf info_files_v
#
# - name: Pack artifacts
# uses: actions/upload-artifact@v4
# with:
# name: v_coverage_single_data
# path: v_coverage_single_data.tar.xz

- name: Pack artifacts
uses: actions/upload-artifact@v4
with:
name: data_v
path: test_data/*

- name: Download Verilator data
uses: actions/download-artifact@v4
with:
name: data_verilator
path: data_verilator/
# - name: Download Verilator data
# uses: actions/download-artifact@v4
# with:
# name: data_verilator
# path: data_verilator/

- name: Check ENV
run: export

- name: Create merged package
run: |
apt update
apt install -y python3 # TODO: remove
.github/scripts/create_merged_package.sh
rm -rf data_verilator
Expand All @@ -149,11 +154,14 @@ jobs:
uses: actions/download-artifact@v4
with:
name: info_files_v_mapped
run-id: 13197561593
github-token: ${{ secrets.GITHUB_TOKEN }}
path: ./

- name: Prepare custom coverage
run: |
rm -rf test_data
ls -R # TODO: remove
export SIM=v
.github/scripts/prepare_coverage_data.sh
Expand Down
18 changes: 18 additions & 0 deletions data_verilator/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"datasets": {
"verilator": {
"line": "coverage_line_verilator.info",
"branch": "coverage_branch_verilator.info",
"toggle": "coverage_toggle_verilator.info"
}
},
"title": "VeeR EL2 coverage dashboard",
"commit": "9e419829acb09ad70cc99cdb799fc91713ea2988",
"branch": "aj-rework-coverage-files-preparation",
"repo": "cores-veer-el2",
"timestamp": "2025-02-07T10:09:33.848+0000",
"additional": {
"db_count": "310",
"run_id": "13197561593"
}
}
Loading

0 comments on commit 8842029

Please sign in to comment.