Skip to content

ci: build the infinity3 boards (msc313e, msc316dc, msc316dm) - #2969

Merged
openipc-ai merged 2 commits into
masterfrom
ci-infinity3-msc313e
Nov 27, 2026
Merged

openipc-ai merged 2 commits into
masterfrom
ci-infinity3-msc313e

Conversation

@openipc-ai

Copy link
Copy Markdown
Collaborator

infinity3 was in UNBUILT_FAMILIES, so latest has no image for these chips
and openipc.org's MSC313E page links to files that do not exist. Since
#2701 and #2735 the family has its own musl toolchain and a vendor stack
that streams on an MSC316DC camera (Imou LOOC 2), so its three boards join
the nightly.

  • ALL_BOARDS: msc313e_lite, msc316dc_lite, msc316dm_lite; infinity3 out of
    UNBUILT_FAMILIES.
  • --self-test: the majestic and package-markdown cases reach 114 boards.

Checked locally: each builds (uImage 1878-1879K of 2048K, rootfs 4960K of
5120K), and on OpenIPC/qemu-bench master, each board's own machine, with
the OpenIPC/u-boot openipc-sigmastar bootloader CI builds for it, the
fixed-slot NOR install typed on its console (uImage at 0x50000, rootfs at
0x250000, reset) boots to login. The kernel is 3.18, with no MTD split,
so these ship the plain NOR package.

infinity3 was in UNBUILT_FAMILIES, so latest has no image for these chips
and openipc.org's MSC313E page links to files that do not exist. Since
#2701 and #2735 the family has its own musl toolchain and a vendor stack
that streams on an MSC316DC camera (Imou LOOC 2), so its three boards join
the nightly.

- ALL_BOARDS: msc313e_lite, msc316dc_lite, msc316dm_lite; infinity3 out of
  UNBUILT_FAMILIES.
- --self-test: the majestic and package-markdown cases reach 114 boards.

Checked locally: each builds (uImage 1878-1879K of 2048K, rootfs 4960K of
5120K), and on OpenIPC/qemu-bench master, each board's own machine, with
the OpenIPC/u-boot openipc-sigmastar bootloader CI builds for it, the
fixed-slot NOR install typed on its console (uImage at 0x50000, rootfs at
0x250000, reset) boots to login. The kernel is 3.18, with no MTD split,
so these ship the plain NOR package.
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Build Infinity3 firmware images in nightly CI

⚙️ Configuration changes 🧪 Tests 🕐 10-20 Minutes

Grey Divider

AI Description

• Add three Infinity3 boards to the build matrix so nightly releases include their images.
• Remove Infinity3 from unbuilt families and adjust self-test counts for the expanded matrix.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The changed board entries and family classification feed one existing workflow matrix, which invokes make for each selected board and uploads the resulting firmware artifacts.
  • These are three variants of one bounded MStar Infinity3 firmware delivery integration, not independent technical-layer capabilities.
Sources

.github/scripts/ci-matrix.py[49-56]

    # MStar [I3]
    # One 3.18 kernel and musl toolchain for the family. These generic images
    # have booted only in qemu-bench, each on its own machine with the
    # OpenIPC/u-boot bootloader for it; the vendor stack streams on an MSC316DC
    # camera (Imou LOOC 2) in OpenIPC/builder's msc316dc_lite_imou-looc2, built
    # from this family. As for the AK3918AV100 parts, they are published so
    # that owners of these cameras can be the first to run them.
    "msc313e_lite", "msc316dc_lite", "msc316dm_lite",

.github/workflows/build.yml[282-284]

      # The board list lives in .github/scripts/ci-matrix.py, which is also
      # what narrows it. Everything except pull_request gets all of it.
      matrix: ${{ fromJson(needs.select.outputs.matrix) }}
Behavioral complexity 🟢 Low 🧩 Straightforward

  • Before, the three existing Infinity3 defconfigs were excluded from ALL_BOARDS because their family was in UNBUILT_FAMILIES.
  • After, they are declaratively included and the family exclusion is removed.
  • The new correctness condition is that the existing selector, self-test, board definitions, and workflow can consistently recognize and build these entries.
  • No new algorithm, state machine, concurrency protocol, compatibility transition, or transformation is introduced; the later self-test count edits preserve existing assertions.
Sources

.github/scripts/ci-matrix.py[49-56]

    # MStar [I3]
    # One 3.18 kernel and musl toolchain for the family. These generic images
    # have booted only in qemu-bench, each on its own machine with the
    # OpenIPC/u-boot bootloader for it; the vendor stack streams on an MSC316DC
    # camera (Imou LOOC 2) in OpenIPC/builder's msc316dc_lite_imou-looc2, built
    # from this family. As for the AK3918AV100 parts, they are published so
    # that owners of these cameras can be the first to run them.
    "msc313e_lite", "msc316dc_lite", "msc316dm_lite",

.github/workflows/build.yml[282-284]

      # The board list lives in .github/scripts/ci-matrix.py, which is also
      # what narrows it. Everything except pull_request gets all of it.
      matrix: ${{ fromJson(needs.select.outputs.matrix) }}
Potential damage 🟡 Medium 🩹 Temporary loss

  • Conditionally, if this newly enabled CI capability regresses, owners of the three Infinity3 targets may not receive a newly built artifact.
  • The failure is limited to CI delivery; existing installed firmware and unrelated board images are unaffected.
  • A successful rerun is needed to restore missing artifacts, while reverting code stops the new behavior but does not recreate an omitted artifact.
  • Build artifacts can be regenerated by rerunning the workflow.
  • No persistent camera state or firmware installation is changed, but missing or stale published artifacts require a successful rebuild and upload.
Sources

.github/scripts/ci-matrix.py[49-56]

    # MStar [I3]
    # One 3.18 kernel and musl toolchain for the family. These generic images
    # have booted only in qemu-bench, each on its own machine with the
    # OpenIPC/u-boot bootloader for it; the vendor stack streams on an MSC316DC
    # camera (Imou LOOC 2) in OpenIPC/builder's msc316dc_lite_imou-looc2, built
    # from this family. As for the AK3918AV100 parts, they are published so
    # that owners of these cameras can be the first to run them.
    "msc313e_lite", "msc316dc_lite", "msc316dm_lite",

.github/workflows/build.yml[282-284]

      # The board list lives in .github/scripts/ci-matrix.py, which is also
      # what narrows it. Everything except pull_request gets all of it.
      matrix: ${{ fromJson(needs.select.outputs.matrix) }}
Assessed commit 8473631
Diagram

graph TD
  C["Infinity3 defconfigs"] --> S["Matrix selector"] --> B["Firmware builds"] --> R[("Nightly release")]
  C --> B
Loading
High-Level Assessment

Use the existing central board matrix and its self-test contract. A separate Infinity3 workflow would duplicate build and publication logic, while weekly-only builds would not address the missing nightly images.

Files changed (1) +4 / -3

Other (1) +4 / -3
ci-matrix.pyEnable three Infinity3 boards in the CI matrix +4/-3

Enable three Infinity3 boards in the CI matrix

• Adds msc313e_lite, msc316dc_lite, and msc316dm_lite to ALL_BOARDS and removes Infinity3 from UNBUILT_FAMILIES. Updates the Majestic package and package-markdown self-test expectations from 111 to 114 boards.

.github/scripts/ci-matrix.py

@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🎨 UX issues (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Three infinity3 boards ship unverified on real cameras ✓ Resolved
Description
The ALL_BOARDS edit adds msc313e_lite, msc316dc_lite and msc316dm_lite to the nightly publish set,
so their generic images are uploaded with --clobber to the rolling release that flashers and
sysupgrade pick up. The PR's own boot evidence is qemu-bench only, while the same file's gating rule
for gm8126 requires the board to stream and run on a camera before it joins ALL_BOARDS.


Informational

2. Matrix size comments go stale after this change ✓ Resolved
Description
The PR changes the matrix count from 111 to 114 by adding three boards, but the comments that
describe the unbuilt set (the '29 defconfigs the matrix leaves out' note in the NOT_BUILT block) and
the full-matrix image count ('96 images' in the SMOKE_BOARDS block) are not updated. Future readers
who use these numbers to judge NOT_BUILT or the smoke-set cost will work from the wrong counts.

Grey Divider

Tip of the day
💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

…unts

Qodo's review of #2969:

- The three boards join the nightly on qemu-bench boots alone, which the
  file's other qemu-only entry (AK3918AV100) argues for in a comment. This
  one now says the same, and that the camera run behind the family is
  OpenIPC/builder's msc316dc_lite_imou-looc2, not these generic images.
- "96 images" and "the 29 defconfigs the matrix leaves out" were already
  off before this change (133 boards and 19 on master); they no longer
  give a number.
@openipc-ai
openipc-ai merged commit f526ba8 into master Nov 27, 2026
46 checks passed
@openipc-ai
openipc-ai deleted the ci-infinity3-msc313e branch November 27, 2026 07:26
openipc-ai added a commit to OpenIPC/u-boot that referenced this pull request Nov 27, 2026
…msc316dm) (#210)

* sigmastar: publish msc313e's NOR bootloader

openipc.org's MSC313E page names u-boot-msc313e-universal.bin, which is
not on firmware's latest. This branch builds u-boot-msc313e-nor.bin and
qemu_smoke boots it; publishing it lets the page install it, with
firmware's msc313e_lite (OpenIPC/firmware#2969) in the plain NOR package.

Its kernel is 3.18, with no MTD split, so it takes the fixed slots only.
Checked on OpenIPC/qemu-bench master's msc313e machine with this
branch's image (0fd04cb) and a local msc313e_lite build: the install
openipc.org gives -- the bootloader at 0, uImage at 0x50000, rootfs at
0x250000, reset -- boots to login, the kernel taking
mtdparts=NOR_FLASH:256k(u-boot),64k(env),2048k(kernel),5120k(rootfs),...

* sigmastar: the publish comment says how msc313e was checked, apart from the rest

Qodo's review of #210: the comment above publish_targets claimed the split
image and install for every target, msc313e included, which was booted on
the fixed slots only with a local msc313e_lite build.

* sigmastar: publish msc316dc's and msc316dm's NOR bootloaders too

Their openipc.org pages name no bootloader. Like msc313e, each was checked
on its own OpenIPC/qemu-bench machine (msc316dc, msc316dm) with this
branch's image and a local build of firmware's board for it: the
fixed-slot install openipc.org gives boots to login.
openipc-ai added a commit to OpenIPC/website that referenced this pull request Nov 27, 2026
… bootloaders (#629)

OpenIPC/u-boot's build-sigmastar.yml publishes u-boot-msc313e-nor.bin,
u-boot-msc316dc-nor.bin and u-boot-msc316dm-nor.bin to firmware's
`latest` (OpenIPC/u-boot#210), and firmware builds msc313e_lite,
msc316dc_lite and msc316dm_lite since OpenIPC/firmware#2969; the
2026-11-27 nightly published openipc.<soc>-nor-lite.tgz for each. The
three pages pointed at a -universal bootloader that was never published.

Their 3.18 kernel cannot split firmware.bin, so they install the plain
lite package on fixed slots (no nor_split): uImage at 0x50000, rootfs at
0x250000, on 8 MB only, as the builds' size reports say.

- Fixtures: the six assets with their published sizes and digests, and
  the three size reports; availability is `wizard`.
- The msc313e NAND reference image goes: the builder refuses NAND on a
  NOR-only bootloader, and firmware publishes no infinity3 NAND package.
- The -universal macro test uses T40A, which still has one.
- Golden regenerated: exactly the three documents changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant