Skip to content

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 16 Oct 03:09
· 15 commits to main since this release
cc9783f

CI and tooling only. No firmware source changed since v0.2.0, and the
release image built from this commit is byte-identical to the published
v0.2.0 binary, so nothing new ran on the board.

Not verified until this release is on main: Dependabot and the
twice-weekly scheduled CI run read their configuration from main, the
default branch, so their first runs come after this release.

Correction to v0.2.0's notes: they said UART receive could not be tested
because the board has no sender. The NUCLEO's ST-LINK virtual COM port
drives USART2's RX pin, so the host computer can send to it with no wiring.
UART receive is still untested.

Added

  • Every failure in one run. Each CI check runs after setup even if an
    earlier check failed, and the job still fails. Compiler, clang-format,
    cppcheck, Doxygen and Unity failures appear as annotations on the pull
    request (.github/problem-matchers/; make lint takes CPPCHECK_TEMPLATE).

  • A summary page for every run (tools/ci_summary.sh, which also runs
    locally):

    • the release image sizes against the 512 KB flash and 128 KB RAM;
    • their change against a pull request's base branch;
    • the deepest stack frames;
    • the test results and coverage.
  • GCC's static analyzer (make all ANALYZE=1) runs in CI for the
    firmware and the smoke image. The code is clean under it. Its
    infinite-loop check is off, because it fires only on deliberate parking
    loops such as main()'s.

  • Stack usage. Every object records its functions' stack frames
    (-fstack-usage, with no change to the generated code), and
    make stack-usage lists them, deepest first.

  • Linters:

    • codespell (make spell, .codespellrc) runs over code, comments and
      docs;
    • actionlint checks every workflow, with ShellCheck checking the scripts
      inside them;
    • ShellCheck also checks tools/*.sh and the pre-commit hook.

    The linters are release binaries pinned by version and SHA256. The repo
    had no typos; four RM0390 register names (HSI, ORE, TE, UE) are ignored
    with that reason.

  • A macOS job. host-tests (macOS) runs the host tests, plain and
    sanitized, with Apple clang and /usr/bin/make 3.81 on a pinned
    macos-15 runner. It is a required check, like build-and-check and
    Analyze (c-cpp).

  • Automation:

    • Dependabot checks the action pins and CI's Python tools monthly, and
      opens one grouped pull request per ecosystem against develop.
      Nothing merges automatically.
    • CI runs Tuesday and Friday on main to catch runner image and upstream
      changes early, and to keep the toolchain caches warm.
  • A pull request template with the project's checklist, and a CI badge
    in the README.

Changed

  • Hash-locked Python tools. CI installs them from tools/ci/requirements.txt,
    every package pinned with its hashes and generated by pip-compile from
    tools/ci/requirements.in, on a Python version pinned by
    actions/setup-python. Before, gcovr's own dependencies floated.
  • Toolchain fallback. If developer.arm.com fails, CI installs the
    toolchain from this repository's ci-mirror-arm-gnu-toolchain-15.2.rel1
    pre-release. It is a byte-for-byte copy, checked against the same pinned
    SHA256; a test run with Arm's URL broken took the mirror and passed.
  • Smaller hardening:
    • apt retries failed downloads;
    • no checkout leaves the job token in .git/config.
  • Repository settings:
    • only GitHub-owned actions may run, and every action must be pinned to a
      full commit SHA;
    • merged branches are deleted automatically.