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 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/.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' }} 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"