From febbcbd49588e9e640512ac96b56584f2700bd86 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 3 Dec 2026 22:02:43 -0800 Subject: [PATCH 1/3] Fix spelling mistakes and stale version references Correct "copyight" and "fulling up", switch the few British spellings (honour, licence, initialises) to the American spelling used everywhere else in the layer, and drop version numbers from two sample comments that went stale when the recipes were upgraded (python3-max_26.5.0.bb, the 1.0.0 driver). Signed-off-by: Khem Raj --- .github/workflows/Readme.md | 2 +- kas/base.yml | 2 +- recipes-core/packagegroups/packagegroup-mojo.bb | 2 +- recipes-devtools/modular/mojo-samples/hello.mojo | 2 +- recipes-devtools/modular/mojo-samples/max_graph_smoke.py | 6 +++--- recipes-devtools/modular/mojo-samples_1.0.bb | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/Readme.md b/.github/workflows/Readme.md index 3033206..20e8021 100644 --- a/.github/workflows/Readme.md +++ b/.github/workflows/Readme.md @@ -2,5 +2,5 @@ This folder contains workflows that are helpful for maintaining a smooth and secure development process. The workflows should be enabled for open-source projects. Workflows: -1. `qcom-preflight-checks.yml` - This workflow runs several preflight checks, including copyight, email, repolinter, and security checks. See [qualcomm/qcom-actions](https://github.com/qualcomm/qcom-actions) +1. `qcom-preflight-checks.yml` - This workflow runs several preflight checks, including copyright, email, repolinter, and security checks. See [qualcomm/qcom-actions](https://github.com/qualcomm/qcom-actions) 2. `stale-issues.yaml` - This workflow will run daily and mark inactive Issues and PRs as stale with a comment and a label. It's currently configured to mark PRs and Issues as stale after 30 days. PRs are then auto-closed after an additional 5 days of inactivity. Adjust this workflow as needed. diff --git a/kas/base.yml b/kas/base.yml index 532250c..26b5d05 100644 --- a/kas/base.yml +++ b/kas/base.yml @@ -34,7 +34,7 @@ local_conf_header: INHERIT += "buildhistory" INHERIT += "rm_work" diskmon: | - # Protect against disk fulling up and produce a clear error if that happens + # Protect against disk filling up and produce a clear error if that happens BB_DISKMON_DIRS ??= "\ STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \ diff --git a/recipes-core/packagegroups/packagegroup-mojo.bb b/recipes-core/packagegroups/packagegroup-mojo.bb index 6b1f8a5..3e72f2a 100644 --- a/recipes-core/packagegroups/packagegroup-mojo.bb +++ b/recipes-core/packagegroups/packagegroup-mojo.bb @@ -4,7 +4,7 @@ SUMMARY = "Modular Platform (Mojo compiler + MAX engine) packagegroups" # opt-in is skipped at this recipe, with base.bbclass's restricted-license # message and the LICENSE_FLAGS_DETAILS pointer. Without it this parses cleanly # and then fails at rootfs time with "Nothing RPROVIDES 'mojo-compiler'". license.bbclass is in INHERIT_DISTRO, so -# packagegroups honour the flag like any other recipe. +# packagegroups honor the flag like any other recipe. require recipes-devtools/modular/modular-license.inc inherit packagegroup diff --git a/recipes-devtools/modular/mojo-samples/hello.mojo b/recipes-devtools/modular/mojo-samples/hello.mojo index 0e7fcd3..ad45fd9 100644 --- a/recipes-devtools/modular/mojo-samples/hello.mojo +++ b/recipes-devtools/modular/mojo-samples/hello.mojo @@ -14,7 +14,7 @@ # succeeds even when the Mojo import path is unresolvable, and the bundled lld # needs a target libc, crt objects and a compiler driver to link against. # -# "def main()" is the entry-point form verified against the 1.0.0 driver this +# "def main()" is the entry-point form verified against the driver this # layer packages. def main(): diff --git a/recipes-devtools/modular/mojo-samples/max_graph_smoke.py b/recipes-devtools/modular/mojo-samples/max_graph_smoke.py index 053047d..ecd0a67 100644 --- a/recipes-devtools/modular/mojo-samples/max_graph_smoke.py +++ b/recipes-devtools/modular/mojo-samples/max_graph_smoke.py @@ -11,8 +11,8 @@ # # Only max, max.graph and max.nn are imported. max.pipelines and max.serve are on # disk but deliberately not importable: they need the wheel's "serve" and -# "benchmark" pip extras, which python3-max does not satisfy. See the comment in -# python3-max_26.5.0.bb. +# "benchmark" pip extras, which python3-max does not satisfy. See the comment +# in the python3-max recipe. # # The imports are worth checking in their own right, because two of the # dependencies they need are pure-Python and so derivable from no SONAME: max.graph @@ -42,7 +42,7 @@ def check_imports(): def check_graph(): """Build a tiny graph, which exercises more than an import does. - Constructing a Graph initialises the MLIR context and the kernel library out + Constructing a Graph initializes the MLIR context and the kernel library out of max-core, so this fails if the engine's shared libraries or the Mojo kernel import path are not reachable, even when "import max.graph" succeeds. Uses the context-manager form from Graph's own docstring. diff --git a/recipes-devtools/modular/mojo-samples_1.0.bb b/recipes-devtools/modular/mojo-samples_1.0.bb index 00cc61b..df6eb95 100644 --- a/recipes-devtools/modular/mojo-samples_1.0.bb +++ b/recipes-devtools/modular/mojo-samples_1.0.bb @@ -6,7 +6,7 @@ console." HOMEPAGE = "https://www.modular.com/" # This recipe's own files, unlike the rest of this layer, so it carries no -# LICENSE_FLAGS and no Modular licence obligation. +# LICENSE_FLAGS and no Modular license obligation. LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" From 969eed27c92ef3309dc79a68f49c50527f60fcdf Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 5 Dec 2026 21:39:18 -0800 Subject: [PATCH 2/3] dependabot: Wait 7 days before proposing action updates Every action in the workflows is pinned to a commit SHA, but Dependabot proposes a bump the day a new release is published. A compromised release would therefore show up as a ready-to-merge PR before anyone has had a chance to notice and pull it. A 7-day cooldown leaves that window; security updates are not subject to the cooldown. Fixes the Semgrep code-scanning alert dependabot-missing-cooldown. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Khem Raj --- .github/dependabot.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 13150bc..d1d9dac 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -9,3 +9,5 @@ updates: directory: "/" # This points to .github/workflows schedule: interval: "daily" + cooldown: + default-days: 7 From d4977a35022a88abb0d706a74a210976394639a7 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 5 Dec 2026 21:41:30 -0800 Subject: [PATCH 3/3] ci: Run the standalone build without the missing local action The standalone job used ./.github/actions/build-standalone, which was never added to the layer, so every qemuarm64/qemux86-64 build failed when the runner tried to load the action. The job also never fetched the kas-container and lockfile that kas-setup uploads, both of which ci/run-standalone-build.sh needs. Call ci/run-standalone-build.sh directly, after the same artifact download and kas-container setup steps that openembedded-checks uses, with KAS_WORK_DIR in the runner temp directory and DL_DIR/SSTATE_DIR coming from CACHE_DIR via the script. Upload the resolved kas config and the buildstats the script produces. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Khem Raj --- .github/workflows/build-openembedded.yml | 37 ++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-openembedded.yml b/.github/workflows/build-openembedded.yml index 81cc19e..3e5b431 100644 --- a/.github/workflows/build-openembedded.yml +++ b/.github/workflows/build-openembedded.yml @@ -106,11 +106,42 @@ jobs: with: persist-credentials: false + - name: Download kas lockfile + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: kas-lockfile + path: kas + + - name: Download kas-container + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 + with: + name: kas-container + path: ${{ runner.temp }} + + - name: Set up kas-container + run: | + KAS_CONTAINER=$RUNNER_TEMP/kas-container + echo "KAS_CONTAINER=$KAS_CONTAINER" >> "$GITHUB_ENV" + echo "KAS_WORK_DIR=$RUNNER_TEMP/kas-work" >> "$GITHUB_ENV" + test -s "$KAS_CONTAINER" + chmod +x "$KAS_CONTAINER" + - name: Build standalone layer - uses: ./.github/actions/build-standalone + env: + MACHINE: ${{ matrix.machine }} + run: | + ci/run-standalone-build.sh + + - name: Upload build statistics + if: ${{ !cancelled() }} + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: - machine: ${{ matrix.machine }} - cache_dir: ${{ env.CACHE_DIR }} + name: buildstats-${{ matrix.machine }} + path: | + kas-build-${{ matrix.machine }}.yml + ${{ env.KAS_WORK_DIR }}/buildstats.log + ${{ env.KAS_WORK_DIR }}/buildstats.svg + if-no-files-found: warn build_successful: if: ${{ always() && github.repository_owner == 'qualcomm-linux' }}