Repository navigation
zephyr: tighten review prompts and workflow from upstream maintainer feedback - #945
Merged
Merged
Conversation
Add dedicated cmake and boards maintainer notes and expand the existing Zephyr maintainer notes, core review guide, severity guide, and false-positive guide to reflect recurring upstream Zephyr review feedback: - Commit and series hygiene: concise commit bodies focused on why and key impact rather than line-by-line diff walkthroughs, honest reachability framing for backport decisions, bisect-safe fix-before- test ordering, Apache-2.0 licensing hygiene, header layering, and high-signal C coding guidelines (Rules 11.8, 13.5, 20.7, and A.4/A.5). - Kconfig and CMake conventions: configdefault versus plain config in Kconfig.defconfig, making select-only helpers promptless to avoid circular dependencies, select override semantics, minimal board defconfigs, DTC_OVERLAY_FILE auto-discovery suppression, include path boundaries, and configure-time host tool checks. - Boards, Devicetree, and API lifecycle: board YAML supported and ignore_tags rules, shared .dtsi factoring, runner portability, binding title and include inheritance, symmetric paired property assertions, SemVer version updates, and draft release or migration notes. - Embedded runtime, DMA, and test rigor: non-yielding and panic or coredump contexts, scheduler-lock re-entrancy, MMU-enabled hardware caches with CONFIG_DCACHE disabled, k_mem_phys_addr boundaries, DMA abort cleanup, single k_timepoint_t deadlines, K_FOREVER waiter wakeup, mutation-sensitive tests, and ZTEST_SHUFFLE or ZTEST_REPEAT isolation. - False-positive prevention: disallow hardware bitfield claims from memory, recognize auto-discovered board test overlays, and reject unbuildable or contract-breaking suggestions. Signed-off-by: Chao Liu <chao.liu@processmission.com>
Align the Zephyr goal, resources, concurrency, configuration, and security stage prompts with the expanded Zephyr maintainer notes and upstream review patterns: - goal: enforce concise why-focused commit bodies, honest reachability framing for backport decisions, bisect-safe series ordering, and subsystem header layering. - resources: audit oversized static RAM tables or bitmaps against Devicetree and Kconfig bounds, DMA abort buffer cleanup, and waiter wakeup on fault or teardown. - concurrency: cover non-yielding thread contexts (k_can_yield), scheduler-lock re-entrancy on console or assertion paths, panic and coredump spinlock hazards, lock-drop snapshot refreshes, bounded ISR drains, and single k_timepoint_t deadlines. - configuration: cover configdefault placement, promptless select-only helpers to avoid circular dependencies, select override semantics, minimal board defconfigs, CMake DTC_OVERLAY_FILE and configure-time host tool checks, and MMU cache maintenance Kconfig guards. - security: flag flash-mount paths omitting FS_MOUNT_FLAG_NO_FORMAT that can destructively reformat existing user partitions on error. Signed-off-by: Chao Liu <chao.liu@processmission.com>
Post-verification batches run after verification and see neither each other nor the findings verification validated directly, so a batch can confirm under a new ID a defect already reported. List verification's validated findings with their pre-existing status in the Zephyr post-verification prompt (flattening embedded newlines so fields stay single-line), instruct post-verification to dismiss candidates matching an already-validated root cause, function or lifecycle phase, and status, and instruct verification to classify each root cause once. Signed-off-by: Chao Liu <chao.liu@processmission.com>
Sashiko review✓ No issues found across 3 commits. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I reviewed recent maintainer feedback across my upstream Zephyr PRs and updated Sashiko's Zephyr review prompts and workflow accordingly:
cmakeandboardsmaintainer notes and expanded the existing Zephyr maintainer notes and false-positive guide (Kconfigconfigdefault, promptlessselecttargets to avoid circular dependencies, concise commit messages and backport scope, board/DT conventions, non-yielding and DMA/cache pitfalls, and Ztest rigor).goal,resources,concurrency,configuration, andsecurity) anddocs/zephyr-review.mdto match.<validated_findings>) in Zephyr post-verification batches so the same root cause in the same function is not reported twice.Tested locally with
cargo fmt,clippyacross default and minimal feature profiles, unit/integration tests, andsashiko review --project sashiko.