Migrate ST repositories in dev containers to official STMicroelectronics repos#3294
Conversation
- Replace nanoframework forks of STM32CubeXxx with official ST HAL driver repos - Add cloning of ST CMSIS device repos (cmsis_device_f0/f4/f7/h7/l4) - Add cloning of cmsis_core from STMicroelectronics - Add STM32F0 support (needed for ST_NUCLEO64_F091RC target) - Update git-pull-repos.sh to use official ST repos with version tags - Update user-tools-repos.TEMPLATE.json: replace dead STM32_CUBE_PACKAGE_SOURCE with STM32_HAL_DRIVER_SOURCE, STM32_CMSIS_DEVICE_SOURCE, STM32_CMSIS_CORE_SOURCE - Fix outdated comments in STM32_CubePackage.cmake - Bump dev-container-all: v2.64 -> v2.65 - Bump dev-container-chibios: v1.39 -> v1.40 Agent-Logs-Url: https://github.com/nanoframework/nf-interpreter/sessions/ece7b810-8a2e-4079-bba4-0ae5f845852f Co-authored-by: josesimoes <1881520+josesimoes@users.noreply.github.com>
- Dockerfile.All.SRC: remove CMake module reference from 'WHEN CHANGING' comments - Dockerfile.ChibiOS.SRC: remove 'WHEN CHANGING' comments (versions flow CMake -> containers) - user-tools-repos.TEMPLATE.json: add STM32_HAL_DRIVER_SOURCE, STM32_CMSIS_DEVICE_SOURCE and STM32_CMSIS_CORE_SOURCE to user-tools-repos-container preset with F7 default paths Agent-Logs-Url: https://github.com/nanoframework/nf-interpreter/sessions/195a375b-24a5-4d42-a4e2-f84770f81415 Co-authored-by: josesimoes <1881520+josesimoes@users.noreply.github.com>
|
@copilot looks like Dockerfile.ThreadX container is also using the ST repositories. Please fix that one too. Make sure to bump the respective version. |
…o v1.40 - Replace nanoframework STM32Cube fork clones with individual official ST HAL driver repos (F4/F7/H7/L4) pinned to the same tags as STM32_CubePackage.cmake - Add CMSIS device repos (cmsis_device_f4/f7/h7/l4) and cmsis_core - Bump dev-container-threadx v1.39 -> v1.40 Agent-Logs-Url: https://github.com/nanoframework/nf-interpreter/sessions/c439569b-ad64-4f26-97a2-0afb7f15a0a3 Co-authored-by: josesimoes <1881520+josesimoes@users.noreply.github.com>
Fixed in fd62b44 — migrated |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
📝 WalkthroughSummary by CodeRabbit
WalkthroughUpdates devcontainer base images and migrates STM32 source fetches from nanoFramework forks to official ST HAL driver and CMSIS repositories; adjusts git pull script for shallow, tag-pinned checkouts and adds finer-grained CMake/config cache variables for STM32 package sources. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Agent-Logs-Url: https://github.com/nanoframework/nf-interpreter/sessions/8cfe98bb-6f8c-42eb-8d4c-e9db640b491c Co-authored-by: josesimoes <1881520+josesimoes@users.noreply.github.com>
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
.devcontainer/All/scripts/git-pull-repos.sh (1)
1-2:⚠️ Potential issue | 🟡 MinorAdd a shebang to specify the shell interpreter.
The script begins with
set -euo pipefailbut lacks a shebang (#!/bin/bash). Without it, the script's behavior depends on whichever shell invokes it, potentially causingset -o pipefailto fail on non-Bash shells.🔧 Proposed fix
+#!/bin/bash set -euo pipefail🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.devcontainer/All/scripts/git-pull-repos.sh around lines 1 - 2, Add a Bash shebang at the very top of the script so the intended shell interpreter is explicit: insert a line specifying "#!/usr/bin/env bash" (or "#!/bin/bash") before the existing "set -euo pipefail" header to ensure "set -o pipefail" is supported and the script runs under Bash consistently.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.devcontainer/All/scripts/git-pull-repos.sh:
- Around line 39-41: The unguarded cd / should be made consistent with other
guarded directory changes: replace the bare "cd /" with a guarded change that
verifies the directory change succeeded and exits with an error message if it
fails (so the subsequent rm -rf /sources/ChibiOs and git svn clone commands
don't run on a failed cwd). Locate the "cd /" invocation in the script and wrap
it with a check that tests the cd result and logs a clear error before exiting
on failure.
---
Duplicate comments:
In @.devcontainer/All/scripts/git-pull-repos.sh:
- Around line 1-2: Add a Bash shebang at the very top of the script so the
intended shell interpreter is explicit: insert a line specifying "#!/usr/bin/env
bash" (or "#!/bin/bash") before the existing "set -euo pipefail" header to
ensure "set -o pipefail" is supported and the script runs under Bash
consistently.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: ASSERTIVE
Plan: Pro
Run ID: 119ef98c-503d-465e-a0fd-3e57ce64d412
📒 Files selected for processing (1)
.devcontainer/All/scripts/git-pull-repos.sh
|
@copilot In @.devcontainer/All/scripts/git-pull-repos.sh:
Also rebase this branch from main. |
- Add it to exclusion path for AZDO trigger. ***NO_CI*** Co-authored-by: josesimoes <1881520+josesimoes@users.noreply.github.com>
Co-authored-by: josesimoes <1881520+josesimoes@users.noreply.github.com>
Co-authored-by: josesimoes <1881520+josesimoes@users.noreply.github.com>
Added |
set -euo pipefailto git-pull-repos.shcdcalls with|| exit 1