Skip to content

gmentci: add PR stack usage report via puncover#689

Closed
simensrostad wants to merge 0 commit into
mainfrom
att/remove/shell-cmd
Closed

gmentci: add PR stack usage report via puncover#689
simensrostad wants to merge 0 commit into
mainfrom
att/remove/shell-cmd

Conversation

@simensrostad
Copy link
Copy Markdown
Contributor

Add scripts and a CI workflow step that compare static stack usage between a PR and its merge base. On each PR, the workflow rebuilds with CONFIG_STACK_USAGE=y, runs puncover via stack_threads.py, and posts a sticky comment with a per-thread table showing configured size, max static depth, delta vs base, and remaining margin.

Thread entry points are discovered from K_THREAD_DEFINE in app sources; Zephyr/NCS subsystem stacks are resolved via rg in the west tree with a small fallback map. Work queues list configured size only since puncover can't attribute depth per queue.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

App size did not change. See CI run

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

Stack margin report failed. See CI run for logs.

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.

3 participants