From 6a7342ec206c79230eb738f5dbc153cac76f7d7b Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Fri, 17 Apr 2026 11:00:26 +0200 Subject: [PATCH 1/6] Fix bender checkout CI issue --- .gitlab-ci.yml | 3 +-- CHANGELOG.md | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2538140..3e8cb11 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,9 +50,8 @@ init-deps: vsim-build: extends: .base stage: build + needs: [init-deps] script: - # Checkout dependencies - - bender checkout # Build hardware - make chs-hw-init - make sn-hw-all diff --git a/CHANGELOG.md b/CHANGELOG.md index cdc19dc..dcb98b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `hw`: Add configurable CDC cut removal between SoC and clusters. Clock gating pushed into cluster domain. - `hw`: Add `apb_dump_msg` module for APB-based fast printf support in simulation. -- `hw`: Add simulation waveform scripts (`waves.tcl`, `run.tcl`). - `ci`: Add GitLab CI configuration for open repository with bender dependency stage. - `sw`: Add `pyproject.toml`, replace `requirements.txt` with proper Python packaging. From 1b529251b317b2784549bddb3df11b8bc253c7d0 Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Fri, 17 Apr 2026 11:05:15 +0200 Subject: [PATCH 2/6] Update pulp actions 2.5.0 --- .github/workflows/gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gitlab-ci.yml b/.github/workflows/gitlab-ci.yml index 95a3479..b2e8c67 100644 --- a/.github/workflows/gitlab-ci.yml +++ b/.github/workflows/gitlab-ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check Gitlab CI - uses: pulp-platform/pulp-actions/gitlab-ci@v2.4.4 + uses: pulp-platform/pulp-actions/gitlab-ci@v2.5.0 # Skip on forks or pull requests from forks due to missing secrets. if: github.repository == 'pulp-platform/chimera' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) with: From 1c136f12311344529940388b731a7921dcf92db5 Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Fri, 17 Apr 2026 11:32:31 +0200 Subject: [PATCH 3/6] Fix rating issue cva6-sdk --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3e8cb11..271431f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,6 +40,9 @@ init-deps: - bender path idma - bender path snitch_cluster - bender path memory_island + # Pre-init cheshire's large submodules serially to avoid rate limiting + - git -C "$(bender path cheshire)" submodule update --init sw/deps/cva6-sdk + - git -C "$(bender path cheshire)" submodule update --init sw/deps/printf # Collect bender sourcess - bender checkout # bender checkout sometimes fails, From 4d9ebcff61e30f720eb1a8db6a154882562fc2e5 Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Fri, 17 Apr 2026 11:57:51 +0200 Subject: [PATCH 4/6] Add cache in CI for .bender --- .gitlab-ci.yml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 271431f..bb99ddd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,6 +28,16 @@ stages: when: always expire_in: 1 week +# Pull the cached bender checkout +.cache-deps: + cache: &global_cache + key: + files: + - Bender.lock + paths: + - .bender + policy: pull + init-deps: extends: .base stage: init @@ -46,14 +56,20 @@ init-deps: # Collect bender sourcess - bender checkout # bender checkout sometimes fails, - # due to rate limiting of github + cache: + <<: *global_cache + policy: pull-push + # due to rate limiting of github retry: 1 vsim-build: - extends: .base + extends: + - .base + - .cache-deps stage: build - needs: [init-deps] + needs: + - init-deps script: # Build hardware - make chs-hw-init @@ -69,7 +85,9 @@ vsim-build: expire_in: 3 days vsim-test: - extends: .base + extends: + - .base + - .cache-deps stage: test needs: [ vsim-build ] parallel: From c97bae1cbadbe8a752bb0052ffa4a4beefcd4a71 Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Fri, 17 Apr 2026 15:09:09 +0200 Subject: [PATCH 5/6] add debug ci --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb99ddd..1ab7f36 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -71,6 +71,7 @@ vsim-build: needs: - init-deps script: + - ls -ld .bender idma cheshire || true # Build hardware - make chs-hw-init - make sn-hw-all From 7a5f841b26ead01e2f92de1d33fd9884a9edca0d Mon Sep 17 00:00:00 2001 From: Lorenzo Leone Date: Fri, 17 Apr 2026 16:14:23 +0200 Subject: [PATCH 6/6] Re-introduce bender checkout in vsim-build --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ab7f36..c12d516 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -67,11 +67,12 @@ vsim-build: extends: - .base - .cache-deps + - init-deps stage: build needs: - init-deps script: - - ls -ld .bender idma cheshire || true + - bender checkout # Build hardware - make chs-hw-init - make sn-hw-all