Skip to content

Refine workflows and update Clang checks - #4

Merged
JanPetterMG merged 13 commits into
mainfrom
chore/workflow-and-clang-refinements
Aug 23, 2026
Merged

Refine workflows and update Clang checks#4
JanPetterMG merged 13 commits into
mainfrom
chore/workflow-and-clang-refinements

Conversation

@JanPetterMG

Copy link
Copy Markdown
Contributor

Enhance workflow configurations by updating branch references and adding a new workflow for uv.lock consistency. Refine Clang checks with an exclusion list to improve code quality checks. Adjust the success threshold for Clang checks in the summary output.

@JanPetterMG JanPetterMG added this to the v1.0.0 milestone Aug 23, 2026
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: c3f4e6a7-1bce-468f-bad3-78a398a4c2bf

📥 Commits

Reviewing files that changed from the base of the PR and between ef1db79 and c7b378b.

📒 Files selected for processing (1)
  • .github/workflows/dependabot.yml

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

📜 Recent review details
⏰ Context from checks skipped due to timeout. (5)
  • GitHub Check: Tidy (esp32-c6-zero-b)
  • GitHub Check: Tidy (attiny841)
  • GitHub Check: Build (esp32-c6-zero-b)
  • GitHub Check: Analyze (actions)
  • GitHub Check: Analyze (c-cpp)
🔇 Additional comments (1)
.github/workflows/dependabot.yml (1)

24-24: LGTM!


Summary by CodeRabbit

  • Chores
    • Improved automated code-quality checks with clearer failure thresholds and reporting.
    • Updated continuous integration workflows to target the main branch.
    • Added validation to ensure lock files remain consistent, including manual runs.
    • Added automatic labeling for AVR- and ESP-related changes.
    • Refined code-style rules, including naming conventions and short-variable checks.
    • Added automated build coverage for IKEA Bekant environments.
    • Streamlined PlatformIO checks and strengthened repository security settings.

Walkthrough

The PR expands Clang-Tidy configuration, adds a Clang failure threshold, adds AVR and ESP label rules, updates workflows to target main, adds IKEA Bekant PlatformIO builds, removes previous PlatformIO jobs, configures checkout credentials, and checks uv lock consistency.

Changes

CI and Tooling

Layer / File(s) Summary
Static analysis policy and threshold
.clang-tidy, .github/workflows/clang.yml
Clang-Tidy enables all checks with defined exclusions and options. The Clang workflow reports and enforces a failure threshold of 64.
Platform build validation
.github/workflows/ikea-bekant.yml, .github/workflows/platformio.yml
The IKEA Bekant workflow discovers PlatformIO environments and builds them through a cached matrix. The existing PlatformIO workflow targets main and removes its context and build jobs.
Workflow targets, labels, and credentials
.github/labeler.yml, .github/workflows/labeler.yml, .github/workflows/uv.yml, .github/workflows/clang.yml, .github/workflows/dependabot.yml
Labeler rules match AVR and ESP paths. Workflows target main where configured. Checkout steps explicitly configure credential persistence. The uv workflow checks lock-file consistency on pull requests and manual dispatches.

Sequence Diagram(s)

sequenceDiagram
  participant GitHubActions
  participant UV
  participant PlatformIO
  GitHubActions->>UV: Install uv and discover PlatformIO environments
  UV->>GitHubActions: Return environment matrix
  GitHubActions->>PlatformIO: Build each environment with caching
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
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.
Title check ✅ Passed The title clearly summarizes the main workflow and Clang configuration changes.
Description check ✅ Passed The description accurately covers the workflow updates, uv.lock check, and Clang check refinements.
✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch chore/workflow-and-clang-refinements

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.

@JanPetterMG
JanPetterMG marked this pull request as ready for review August 23, 2026 02:23
Copilot AI lite review requested due to automatic review settings August 23, 2026 02:23
@chatgpt-codex-connector

This comment was marked as off-topic.

This comment was marked as off-topic.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 44d8f089-7c63-47bd-b8b0-38fe821e5a69

📥 Commits

Reviewing files that changed from the base of the PR and between 164f4c9 and 8459d4d.

📒 Files selected for processing (6)
  • .clang-tidy
  • .github/labeler.yml
  • .github/workflows/clang.yml
  • .github/workflows/labeler.yml
  • .github/workflows/platformio.yml
  • .github/workflows/uv.yml

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

📜 Review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: Build (esp32-c6-zero-b)
  • GitHub Check: Tidy (esp32-c6-zero-b)
🧰 Additional context used
🪛 zizmor (1.29.0)
.github/workflows/labeler.yml

[error] 3-6: use of fundamentally insecure workflow trigger (dangerous-triggers): pull_request_target is almost always used insecurely

(dangerous-triggers)

.github/workflows/uv.yml

[warning] 19-20: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)

.github/workflows/clang.yml

[info] 128-128: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)


[info] 135-135: code injection via template expansion (template-injection): may expand into attacker-controllable code

(template-injection)

🔇 Additional comments (4)
.github/labeler.yml (1)

1-6: LGTM!

Also applies to: 23-27

.github/workflows/clang.yml (1)

125-135: LGTM!

.github/workflows/platformio.yml (1)

6-10: LGTM!

.github/workflows/labeler.yml (1)

6-6: 🔒 Security & Privacy

No security change is required. The workflow uses only pinned actions, has no run steps, and checks out the base context by default. The labeler configuration contains only branch patterns and file globs.

Comment thread .clang-tidy Outdated
Comment thread .github/workflows/uv.yml
JanPetterMG and others added 2 commits August 23, 2026 04:30
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@JanPetterMG

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@JanPetterMG
JanPetterMG added this pull request to the merge queue Aug 23, 2026
@JanPetterMG
JanPetterMG removed this pull request from the merge queue due to a manual request Aug 23, 2026
@JanPetterMG
JanPetterMG marked this pull request as draft August 23, 2026 14:10
@JanPetterMG
JanPetterMG marked this pull request as ready for review August 23, 2026 14:30
@chatgpt-codex-connector

This comment was marked as off-topic.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 653bb5ab-f7dd-4406-8904-c430772bb9a1

📥 Commits

Reviewing files that changed from the base of the PR and between 5ebd967 and 2d93545.

📒 Files selected for processing (4)
  • .clang-tidy
  • .github/workflows/clang.yml
  • .github/workflows/ikea-bekant.yml
  • .github/workflows/platformio.yml
💤 Files with no reviewable changes (1)
  • .github/workflows/platformio.yml

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

📜 Review details
🧰 Additional context used
🪛 zizmor (1.29.0)
.github/workflows/ikea-bekant.yml

[warning] 25-26: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)


[warning] 48-49: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)

🔇 Additional comments (3)
.clang-tidy (1)

1-25: LGTM!

Also applies to: 26-32

.github/workflows/clang.yml (1)

125-135: LGTM!

.github/workflows/ikea-bekant.yml (1)

1-23: LGTM!

Also applies to: 28-46, 51-66

Comment thread .github/workflows/ikea-bekant.yml

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.github/workflows/ikea-bekant.yml (1)

55-60: 🚀 Performance & Scalability | 🔵 Trivial | ⚡ Quick win

Point the cache at PlatformIO's actual cache directory.

Unless a custom cache directory is configured elsewhere, PlatformIO uses ~/.platformio as its default core directory and stores its cache under core_dir/cache. PlatformIO's GitHub Actions example caches ~/.platformio/.cache. (docs.platformio.org)

The current workspace-relative path may miss the real cache, causing matrix jobs to download PlatformIO packages repeatedly. Use ~/.platformio/.cache, or set PLATFORMIO_CACHE_DIR explicitly to the workspace path.


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8910938d-078c-4853-b91d-ee1535b2ca46

📥 Commits

Reviewing files that changed from the base of the PR and between 2d93545 and ef1db79.

📒 Files selected for processing (5)
  • .github/workflows/clang.yml
  • .github/workflows/dependabot.yml
  • .github/workflows/ikea-bekant.yml
  • .github/workflows/labeler.yml
  • .github/workflows/platformio.yml

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

📜 Review details
⏰ Context from checks skipped due to timeout. (2)
  • GitHub Check: Build (esp32-c6-zero-b)
  • GitHub Check: Tidy (esp32-c6-zero-b)
🔇 Additional comments (5)
.github/workflows/clang.yml (1)

23-24: LGTM!

Also applies to: 43-44, 77-78, 131-141

.github/workflows/dependabot.yml (1)

23-24: Confirm that persisted credentials are required by the updater.

This job grants contents: write and runs a third-party action after checkout. With actions/checkout v7, persist-credentials: true keeps checkout credentials available for authenticated Git operations in later steps; false opts out. (github.com)

Keep this setting enabled only if VIPnytt/platformio-dependency-updater must push commits. Otherwise, set it to false. If pushing is required, verify that the pinned action does not execute untrusted repository code with the write token.

.github/workflows/labeler.yml (1)

6-6: LGTM!

Also applies to: 22-23

.github/workflows/ikea-bekant.yml (1)

1-54: LGTM!

Also applies to: 61-70

.github/workflows/platformio.yml (1)

6-10: LGTM!

Also applies to: 17-26

@JanPetterMG
JanPetterMG added this pull request to the merge queue Aug 23, 2026
Merged via the queue into main with commit 2a29484 Aug 23, 2026
13 checks passed
@JanPetterMG
JanPetterMG deleted the chore/workflow-and-clang-refinements branch August 23, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants