Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ updates:
directory: "/" # This points to .github/workflows
schedule:
interval: "daily"
cooldown:
default-days: 7
2 changes: 1 addition & 1 deletion .github/workflows/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
37 changes: 34 additions & 3 deletions .github/workflows/build-openembedded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
2 changes: 1 addition & 1 deletion kas/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion recipes-core/packagegroups/packagegroup-mojo.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion recipes-devtools/modular/mojo-samples/hello.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
6 changes: 3 additions & 3 deletions recipes-devtools/modular/mojo-samples/max_graph_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion recipes-devtools/modular/mojo-samples_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading