Skip to content

Commit 4d416f9

Browse files
committed
DNM!! Test only a few steps
1 parent b3f761a commit 4d416f9

File tree

1 file changed

+4
-111
lines changed

1 file changed

+4
-111
lines changed
Lines changed: 4 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,18 @@
11
name: Coverage report
22

33
on:
4+
push:
45
workflow_call:
56

67
defaults:
78
run:
89
shell: bash
910

1011
jobs:
11-
merge-verilator-reports:
12-
name: Merge Verilator info data
13-
runs-on: ubuntu-24.04
14-
container: ghcr.io/antmicro/cores-veer-el2:20250123123840
15-
env:
16-
DEBIAN_FRONTEND: "noninteractive"
17-
steps:
18-
- uses: actions/checkout@v3
19-
with:
20-
submodules: recursive
21-
22-
- name: Download coverage reports
23-
uses: actions/download-artifact@v4
24-
with:
25-
pattern: "*coverage_data*"
26-
merge-multiple: true
27-
path: ./
28-
29-
- name: Setup info-process
30-
run: .github/scripts/info_process_setup.sh
31-
32-
- name: Merge data
33-
run: |
34-
mkdir info_files_verilator
35-
mv *.info info_files_verilator/
36-
export SIM=verilator
37-
.github/scripts/prepare_coverage_data.sh
38-
39-
- name: Pack artifacts
40-
if: always()
41-
uses: actions/upload-artifact@v4
42-
with:
43-
name: verilator_coverage_single_data
44-
path: verilator_coverage_single_data.tar.xz
45-
46-
- name: Pack artifacts
47-
if: always()
48-
uses: actions/upload-artifact@v4
49-
with:
50-
name: data_verilator
51-
path: data_verilator/*
52-
53-
custom-coverage-reports:
54-
name: Custom coverage reports
55-
runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
56-
container: centos:8
57-
env:
58-
GHA_EXTERNAL_DISK: additional-tools
59-
GHA_SA: gh-sa-veer-uploader
60-
61-
steps:
62-
- uses: actions/checkout@v3
63-
with:
64-
submodules: recursive
65-
66-
- name: Prepare Environment
67-
run: _secret_prepare_env
68-
69-
- name: Generate custom reports
70-
run: _secret_custom_report
71-
72-
- name: Pack artifacts
73-
uses: actions/upload-artifact@v4
74-
with:
75-
name: info_files_v_mapped
76-
path: info_files_v/*
77-
7812
both-coverage-reports:
7913
name: Coverage reports merger
8014
runs-on: [ self-hosted, Linux, X64, gcp-custom-runners ]
8115
container: debian:trixie
82-
needs: [merge-verilator-reports, custom-coverage-reports]
8316
env:
8417
DEBIAN_FRONTEND: noninteractive
8518
GHA_EXTERNAL_DISK: additional-tools
@@ -91,7 +24,9 @@ jobs:
9124
submodules: recursive
9225

9326
- name: Extract custom coverage
94-
run: _secret_extract_custom_coverage
27+
run: _secret_custom_report_mapfile_tmp
28+
env:
29+
SECRET_NAME: _secret_extract_custom_coverage
9530

9631
- name: Setup info-process
9732
run: .github/scripts/info_process_setup.sh
@@ -114,45 +49,3 @@ jobs:
11449
with:
11550
name: data_v
11651
path: data_v/*
117-
118-
- name: Download Verilator data
119-
uses: actions/download-artifact@v4
120-
with:
121-
name: data_verilator
122-
path: data_verilator/
123-
124-
- name: Compare tests
125-
run: |
126-
cat data_v/*.desc | grep '^TEST:' | sed 's#.*,##' | sed 's#;#\n#g' | sort | uniq >tests_v
127-
cat data_verilator/*.desc | grep '^TEST:' | sed 's#.*,##' | sed 's#;#\n#g' | sort | uniq >tests_verilator
128-
# `|| true` because it's only needed for informational purposes, a difference is not a reason to fail.
129-
diff -yt tests_v tests_verilator || true
130-
131-
- name: Create merged package
132-
run: |
133-
.github/scripts/create_merged_package.sh
134-
rm -rf data_verilator
135-
rm -rf data_v
136-
137-
- name: Pack artifacts
138-
uses: actions/upload-artifact@v4
139-
with:
140-
name: data_both
141-
path: data_both/*
142-
143-
- name: Download V mapped info files
144-
uses: actions/download-artifact@v4
145-
with:
146-
name: info_files_v_mapped
147-
path: info_files_v
148-
149-
- name: Prepare custom coverage
150-
run: |
151-
export SIM=v
152-
.github/scripts/prepare_coverage_data.sh
153-
154-
- name: Pack artifacts
155-
uses: actions/upload-artifact@v4
156-
with:
157-
name: data_v_mapped
158-
path: data_v/*

0 commit comments

Comments
 (0)