Skip to content

Add CODEOWNERS, AGENTS.md, and GitHub Actions CI workflows - #12

Merged
lgirdwood merged 5 commits into
mainfrom
ci/codeowners-and-workflows
Dec 3, 2026
Merged

lgirdwood merged 5 commits into
mainfrom
ci/codeowners-and-workflows

Conversation

@lgirdwood

@lgirdwood lgirdwood commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Add repository code ownership (CODEOWNERS), agent guidelines (AGENTS.md + CLAUDE.md symlink), and GitHub Actions CI checks aligned with thesofproject/sof conventions:

  • CODEOWNERS: Assigns @lgirdwood as default owner for the repository and @singalsu as co-owner of /sof-testbench/.
  • AGENTS.md & CLAUDE.md (-> AGENTS.md): Adapted from thesofproject/sof for sof-utils, covering repository layout, commit subject/75-char wrap/sign-off rules, SPDX and documentation standards, C/Python/YAML/shell/desktop lint standards, packaging & wire-protocol sync rules, headless GTK4 test guidelines, and pre-PR verification commands.
  • .github/workflows/ci.yml:
    • python-tools: xvfb-run headless make check (py_compile + sof-ucm unit tests), automatic */tests unittest discovery (sof-ucm and scripts), wheel builds + isolated /tmp CLI --help & module import verification for sof-builder, sof-ucm, and sof-top, and desktop-file-validate.
    • remote-server-linux: GCC and Clang matrix for Make, CMake/Ninja, -DNO_ALSA compile check, and -h usage smoke checks.
    • remote-server-android: Android NDK cross-compile for arm64-v8a and x86_64 via Make and CMake.
    • packaging: .deb and .rpm (RPMBUILD="rpmbuild --nodeps" on Ubuntu) builds, DESTDIR install/uninstall cleanliness check, and dpkg -i -> CLI smoke tests -> desktop-file-validate -> dpkg -r removal verification.
  • .github/workflows/codestyle.yml:
    • yamllint (--strict, max line length 100) on .github/workflows/*.yml and west.yml (adds missing --- header to west.yml).
    • spdx-check: verifies SPDX-License-Identifier: headers on tracked source/build/workflow files.
    • shell-syntax: bash -n on tracked .sh scripts.
    • python-lint: ruff check --select E9,F63,F7,F82 (also fixes two missing type-annotation imports in sof-builder: typing.Set in testbench.py and ComponentPerfItem in window.py).
    • commit-messages: runs scripts/check_commits.py to enforce <prefix>: <description> subjects (<= 75 chars, no trailing period, no WIP/fixup!), blank separator line, 75-char body wrap (exempting trailers/URLs), no Change-Id:, and valid Signed-off-by: Full Name <email>.
  • .github/workflows/zizmor.yml:
    • GitHub Actions security analysis via zizmor with inline PR annotations (advanced-security: false so fork PRs work without security-events: write).
  • sof-ucm/tests/test_tplg_and_graph.py: Guards the GTK4 UcmGraphCanvas widget test with Gtk.init_check() / Gdk.Display.get_default() so headless systems without X11/Wayland skip cleanly instead of segfaulting.

Notes

  • sof-testbench and sof-tplg-parser CI is deferred to a follow-up PR once synced with upstream thesofproject/sof main's src/kernel directory split.
  • @singalsu currently has read access on thesofproject/sof-utils and will need Write/Maintain permission for GitHub to clear the CODEOWNERS warning and enforce his review on /sof-testbench/.

@lgirdwood
lgirdwood force-pushed the ci/codeowners-and-workflows branch 2 times, most recently from efb8a71 to 2caa276 Compare December 3, 2026 14:39
@lgirdwood lgirdwood changed the title Add CODEOWNERS and GitHub Actions CI workflows Add CODEOWNERS, AGENTS.md, and GitHub Actions CI workflows Dec 3, 2026
Import typing.Set in testbench.py and ComponentPerfItem in window.py so
deferred type annotations resolve cleanly under static analysis
(ruff F821).

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Call Gtk.init_check() and skip
test_edge_texture_key_distinguishes_equal_length_traces when
Gdk.Display.get_default() is None, preventing a SIGSEGV in libgtk-4 on
headless systems without X11 or Wayland.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Add root CODEOWNERS assigning @lgirdwood as the default owner for the
repository and @singalsu as co-owner of /sof-testbench/.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Add GitHub Actions CI checks aligned with SOF conventions:

- .github/workflows/ci.yml:
  * python-tools: xvfb-run make check, unittest discovery, wheel builds
    and isolated /tmp CLI/import smoke tests, and desktop-file-validate.
  * remote-server-linux: GCC and Clang matrix for Make, CMake/Ninja,
    -DNO_ALSA compile check, and CLI usage smoke checks.
  * remote-server-android: Android NDK cross-compile for arm64-v8a and
    x86_64 via Make and CMake.
  * packaging: .deb and .rpm builds, DESTDIR install/uninstall check,
    and dpkg install/smoke/removal verification.
- .github/workflows/codestyle.yml: strict yamllint, SPDX header check,
  bash -n shell syntax check, ruff fatal lint (E9, F63, F7, F82), and
  commit message validation.
- .github/workflows/zizmor.yml: GitHub Actions security analysis via
  zizmor with PR annotations.
- scripts/check_commits.py (+ unit tests): enforce subject prefix and
  length (<= 75 chars), blank separator line, 75-char body line wrap,
  and Signed-off-by trailer.
- west.yml: add leading '---' document-start marker for yamllint.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Adapt thesofproject/sof AGENTS.md for sof-utils, covering repository
layout, commit subject/wrap/sign-off standards, SPDX and documentation
rules, C/Python/YAML/shell/desktop lint standards, packaging and
protocol synchronization, headless GTK4 test rules, and local pre-PR
verification commands.

Add a relative CLAUDE.md -> AGENTS.md symlink.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
@lgirdwood
lgirdwood force-pushed the ci/codeowners-and-workflows branch from c8fc0dd to 6915ddb Compare December 3, 2026 19:48
@lgirdwood
lgirdwood merged commit ed9e61e into main Dec 3, 2026
11 checks passed
@lgirdwood
lgirdwood deleted the ci/codeowners-and-workflows branch December 3, 2026 20:47
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.

2 participants