Skip to content

test: update test CI workflow#190

Merged
2bndy5 merged 2 commits into
mainfrom
update-test-ci
Mar 17, 2026
Merged

test: update test CI workflow#190
2bndy5 merged 2 commits into
mainfrom
update-test-ci

Conversation

@2bndy5
Copy link
Copy Markdown
Contributor

@2bndy5 2bndy5 commented Mar 17, 2026

  • use protected environment named test-coverage
    (resolves zizmor audit about using secrets-outside-env)
  • update tested clang-versions

Summary by CodeRabbit

  • Tests

    • Updated CI test matrix to add Python 22 and stop testing older lower versions; adjusted a unit test setup to conditionally copy lint/config files based on test parameters.
  • Chores

    • Added coverage-report environment metadata and linked Codecov for clearer test coverage visibility.

- use protected environment named test-coverage
  (resolves zizmor audit about using [secrets-outside-env](https://docs.zizmor.sh/audits/#secrets-outside-env))
- update tested clang-versions
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 17, 2026

Warning

Rate limit exceeded

@2bndy5 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 36 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f3dde302-7119-4c1b-8a2a-77aa54938062

📥 Commits

Reviewing files that changed from the base of the PR and between 730fbbc and e16d0fd.

📒 Files selected for processing (3)
  • tests/capture_tools_output/cpp-linter/cpp-linter/.clang-format
  • tests/capture_tools_output/cpp-linter/cpp-linter/.clang-tidy
  • tests/capture_tools_output/test_tools_output.py

Walkthrough

Modified CI workflow Python versions (added 22, removed 10 and 9) and added an environment block with a Codecov URL to the coverage-report job. Adjusted a test helper call to conditionally copy config files based on checks value.

Changes

Cohort / File(s) Summary
CI workflow
.github/workflows/tests.yml
Updated test job matrix.version from ['21','20','19','18','17','16','15','14','13','12','11','10','9'] to ['22','21','20','19','18','17','16','15','14','13','12','11']; added environment block to coverage-report job with name: test-coverage and url: https://app.codecov.io/gh/cpp-linter/cpp-linter.
Test adjustment
tests/capture_tools_output/test_tools_output.py
Changed prep_tmp_dir invocation to copy_configs=(checks == ""), making copying of .clang-format/.clang-tidy conditional on checks being empty.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

enhancement

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'test: update test CI workflow' directly reflects the main changes in the PR, which update the test CI workflow configuration in .github/workflows/tests.yml.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-test-ci
📝 Coding Plan
  • Generate coding plan for human review comments

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 and usage tips.

clang-tidy v22 complains when "no checks are enabled." But the test is supposed to rely on a .clang-tidy config file

and ensure there are config files to copy for test's sample repo
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.29%. Comparing base (f549e1f) to head (e16d0fd).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #190   +/-   ##
=======================================
  Coverage   98.29%   98.29%           
=======================================
  Files          24       24           
  Lines        1938     1938           
=======================================
  Hits         1905     1905           
  Misses         33       33           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@2bndy5 2bndy5 merged commit b208c5c into main Mar 17, 2026
41 checks passed
@2bndy5 2bndy5 deleted the update-test-ci branch March 17, 2026 12:17
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