Skip to content

test[qboot][ci]: add package tool smoke and cppcheck checks - #11

Merged
wdfk-prog merged 2 commits into
mainfrom
ci/package-tool-cppcheck
Aug 24, 2026
Merged

wdfk-prog merged 2 commits into
mainfrom
ci/package-tool-cppcheck

Conversation

@wdfk-prog

@wdfk-prog wdfk-prog commented Aug 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add a non-invasive smoke check for the existing package tool.
  • Add a read-only cppcheck analysis workflow with report artifact upload.
  • Keep both checks independent from the existing firmware build matrix.

Details

The package tool check creates temporary inputs, runs the existing Python tool, and validates the generated package header, checksum fields, sizes, and payload.

The static analysis workflow runs cppcheck against the QBoot source tree and uploads the generated report for review.

Validation

  • Verified the package tool smoke flow locally with generated test inputs.
  • Reviewed the workflow structure and changed files locally.
  • Full GitHub Actions execution will run after PR creation.

Summary by CodeRabbit

  • Tests

    • Added automated smoke coverage for package creation, including compression, checksums, metadata, headers, and payload validation.
    • Added workspace-cleanliness verification to help detect unintended generated files.
  • Chores

    • Added an automated quality workflow for pull requests and manual runs.
    • Added static analysis checks and report artifacts to improve reliability and maintainability.

@coderabbitai

coderabbitai Bot commented Aug 24, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c6428f57-590c-4919-a88b-8f2dd4b8f368

📥 Commits

Reviewing files that changed from the base of the PR and between 2d8f86d and a913edf.

📒 Files selected for processing (2)
  • .github/ci/qboot/package-tool-smoke.sh
  • .github/workflows/quality.yml

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The change adds a package-tool smoke test and a GitHub Actions quality workflow. The test validates generated RBL packages. The workflow runs the smoke test, checks workspace cleanliness, runs Cppcheck, and uploads its report.

Changes

Quality validation

Layer / File(s) Summary
Package-tool smoke validation
.github/ci/qboot/package-tool-smoke.sh
The script creates temporary package inputs, runs package_tool.py, validates the RBL header and payload, logs tool output, and prints a success marker.
CI workflow integration
.github/workflows/quality.yml
The workflow runs the smoke test for pull requests targeting main and manual dispatches. It fails when the workspace changes.
Cppcheck reporting
.github/workflows/quality.yml
The workflow runs Cppcheck with configured analysis options and uploads the report for 14 days.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: ⚪ Minimal · up to a913e

This PR adds independent package-tool smoke testing and read-only static analysis checks without changing product runtime behavior; no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the added package-tool smoke test and Cppcheck CI checks.
Docstring Coverage ✅ Passed Docstring check was indeterminate for this PR — some files could not be analyzed in time. Not blocking.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/package-tool-cppcheck

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wdfk-prog
wdfk-prog force-pushed the ci/package-tool-cppcheck branch from 561b238 to a913edf Compare August 24, 2026 12:29
@wdfk-prog

Copy link
Copy Markdown
Owner Author

@codex review

@wdfk-prog
wdfk-prog marked this pull request as ready for review August 24, 2026 12:31
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: a913edfa74

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@wdfk-prog
wdfk-prog merged commit 7a026c0 into main Aug 24, 2026
20 checks passed
@wdfk-prog
wdfk-prog deleted the ci/package-tool-cppcheck branch August 24, 2026 12:50
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.

1 participant