build: container runners for host tests and firmware builds#1496
Open
Mearman wants to merge 5 commits into
Open
build: container runners for host tests and firmware builds#1496Mearman wants to merge 5 commits into
Mearman wants to merge 5 commits into
Conversation
0b1b4c8 to
c33e7a4
Compare
This was referenced Jun 12, 2026
gmarull
reviewed
Jun 12, 2026
Contributor
Author
|
thanks for the feedback @gmarull. |
a910289 to
e5a79fa
Compare
gmarull
reviewed
Jun 12, 2026
gmarull
reviewed
Jun 12, 2026
e5a79fa to
2844956
Compare
gmarull
reviewed
Jun 12, 2026
Co-authored-by: Claude <claude@anthropic.com> Signed-off-by: Joseph Mearman <joseph@mearman.co.uk>
Co-authored-by: Claude <claude@anthropic.com> Signed-off-by: Joseph Mearman <joseph@mearman.co.uk>
Opens VS Code / GitHub Codespaces directly into the same ghcr.io/coredevices/pebbleos-docker:v5 image used by CI, so the toolchain and library versions match exactly. postCreateCommand mirrors the CI job steps: marks the workspace safe for git, initialises submodules (required for waf to find third-party sources), then installs Python dependencies via pip. The image ships a venv at /opt/venv on PATH, so no separate venv activation is needed. Signed-off-by: Joseph Mearman <joseph@mearman.co.uk> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com> Signed-off-by: Joseph Mearman <joseph@mearman.co.uk>
The new testing-locally page was not listed in any toctree, causing Sphinx to emit an orphan-document warning. With fail_on_warning enabled in .readthedocs.yaml, this warning promoted to a build failure. Signed-off-by: Joseph Mearman <joseph@mearman.co.uk> Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
3edb173 to
5e80f20
Compare
gmarull
reviewed
Jun 15, 2026
| @@ -0,0 +1,48 @@ | |||
| #!/usr/bin/env bash | |||
| # SPDX-FileCopyrightText: 2026 Core Devices LLC | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Host tests compile against the host libc, which is different on macOS and the Linux CI container. Tests pass on one and fail on the other because of linker behaviour (-fno-common), libc headers (glibc's vector-math macros), compiler versions, and so on. The CI Docker image (
ghcr.io/coredevices/pebbleos-docker:v5) is the canonical environment, but until now you had to manually mount the source and run ad-hoc Docker commands to reproduce it.ci-test.shreproduces the test.yml steps inside the Docker image: safe.directory, pip install, waf configure, waf test. Passes through waf arguments so you can scope runs.build_in_container.shdoes the same for the firmware build workflows (build-firmware, build-prf, build-qemu). Validates the board name, appends the right waf targets for QEMU boards, accepts CONFIGURE_EXTRA flags..devcontainer/devcontainer.jsonopens VS Code or Codespaces into the same Docker image so the toolchain matches CI exactly.CONTRIBUTING.md updated to document the workflow: container runners before pushing, native
./waffor iteration.Merge order: 1 (independent)