Skip to content

Commit c43cd3c

Browse files
authored
Move CI designs to a separate repository (#1867)
~ Move test designs to a separate repository and add it as a submodule. ~ Adjust test set to refer to designs in submodule. ~ Change design_dir in `run_tests.py` for artifact upload in the CI. ~ Fix fail condition on design name mismatch in `compare_regression_reports.py` ~ Print a better error message for design name mismatch mentioned previously. ~ Change regression benchmark to point reflect submodule change. ~ Change documentation to reflect new paths of designs. + Add aes_user_project_wrapper to ci designs to test EXTRA_SPEFS. + Add a step in CI workflow to replace `/` with `_` in design name for artifact upload.
1 parent 2735f41 commit c43cd3c

File tree

96 files changed

+83
-51457
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+83
-51457
lines changed

.github/scripts/run_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ def cat(x):
9898

9999

100100
print("Tarballing run...")
101+
design_dir = design if os.path.exists(design) else os.path.join("designs", design)
101102
subprocess.check_call(
102-
["tar", "-czf", "./reproducible.tar.gz", os.path.join("designs", design, "runs")]
103+
["tar", "-czf", "./reproducible.tar.gz", os.path.join(design_dir, "runs")]
103104
)
104105
print("Created ./reproducible.tar.gz.")
105106

.github/test_sets/test_sets.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
11
- scl: sky130A/sky130_fd_sc_hd
22
name: fastest_test_set
33
designs:
4-
- inverter
5-
- wbqspiflash
6-
- APU
7-
- s44
8-
- zipdiv
9-
- xtea
10-
- usb
11-
- usb_cdc_core
12-
- manual_macro_placement_test
4+
- ./designs/ci/inverter
5+
- ./designs/ci/wbqspiflash
6+
- ./designs/ci/APU
7+
- ./designs/ci/s44
8+
- ./designs/ci/zipdiv
9+
- ./designs/ci/xtea
10+
- ./designs/ci/usb
11+
- ./designs/ci/usb_cdc_core
12+
- ./designs/ci/manual_macro_placement_test
1313
- spm
14-
- gcd
15-
- caravel_upw
14+
- ./designs/ci/gcd
15+
- ./designs/ci/caravel_upw
16+
- ./designs/ci/aes_user_project_wrapper
1617
- scl: sky130A/sky130_fd_sc_hd
1718
name: extended_test_set
1819
designs:
19-
- BM64
20-
- salsa20
21-
- aes_core
22-
- blabla
23-
- picorv32a
24-
- PPU
25-
- y_huff
26-
- aes
20+
- ./designs/ci/BM64
21+
- ./designs/ci/salsa20
22+
- ./designs/ci/aes_core
23+
- ./designs/ci/blabla
24+
- ./designs/ci/picorv32a
25+
- ./designs/ci/PPU
26+
- ./designs/ci/y_huff
27+
- ./designs/ci/aes
2728
- scl: gf180mcuC/gf180mcu_fd_sc_mcu7t5v0
2829
name: fastest_test_set
2930
designs:
3031
- spm
31-
- APU
32-
- usb
32+
- ./designs/ci/APU
33+
- ./designs/ci/usb
3334
# - usb_cdc_core
3435
# - zipdiv
3536
# - wbqspiflash
3637
- scl: gf180mcuC/gf180mcu_fd_sc_mcu7t5v0
3738
name: extended_test_set
3839
designs:
39-
- picorv32a
40-
- PPU
41-
- y_huff
40+
- ./designs/ci/picorv32a
41+
- ./designs/ci/PPU
42+
- ./designs/ci/y_huff

.github/workflows/openlane_ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ jobs:
179179
matrix: ${{ fromJSON(needs.prepare_test_matrices.outputs.design_matrix) }}
180180
steps:
181181
- uses: actions/checkout@v3
182+
with:
183+
submodules: true
182184

183185
- name: Set up environment variables
184186
uses: ./.github/actions/set_env_variables
@@ -220,11 +222,17 @@ jobs:
220222
OPENLANE_IMAGE_NAME=$OPENLANE_IMAGE_NAME-amd64\
221223
python3 ${GITHUB_WORKSPACE}/.github/scripts/run_tests.py ${{ matrix.design.name }}
222224
225+
- name: Escape Design Name
226+
run: |
227+
design_name=${{ matrix.design.name }}
228+
escaped_design_name=${design_name//\//_}
229+
echo "ESCAPED_DESIGN_NAME=$escaped_design_name" >> $GITHUB_ENV
230+
223231
- name: Upload Run Tarball
224232
if: ${{ always() }}
225233
uses: actions/upload-artifact@v3
226234
with:
227-
name: ${{ matrix.design.name }}-${{ matrix.design.pdk }}
235+
name: ${{ env.ESCAPED_DESIGN_NAME }}-${{ matrix.design.pdk }}
228236
path: ./reproducible.tar.gz
229237

230238
cleanup_and_deploy:

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "designs/ci"]
2+
path = designs/ci
3+
url = https://github.com/efabless/openlane-ci-designs

designs/APU/config.json

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)