Skip to content

Conversation

shenxianpeng
Copy link
Collaborator

@shenxianpeng shenxianpeng commented Aug 30, 2025

closes #98

Summary by CodeRabbit

  • Chores
    • Updated continuous integration workflows to pin third-party actions to exact versions, improving consistency and reproducibility of runs.
    • Maintains existing workflow steps and configuration; no changes to test logic or application behavior.
    • No impact on user-facing features or documentation.

@shenxianpeng shenxianpeng added the enhancement New feature or request label Aug 30, 2025
Copy link

Copy link

codecov bot commented Aug 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.48%. Comparing base (8b2b307) to head (7de3ffa).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #99   +/-   ##
=======================================
  Coverage   94.48%   94.48%           
=======================================
  Files           3        3           
  Lines         145      145           
=======================================
  Hits          137      137           
  Misses          8        8           

☔ 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.

@shenxianpeng shenxianpeng merged commit f5896e2 into main Aug 30, 2025
15 of 16 checks passed
@shenxianpeng shenxianpeng deleted the update-commit-hash branch August 30, 2025 19:32
Copy link

coderabbitai bot commented Aug 30, 2025

Walkthrough

Pinned GitHub Actions in two workflows from version tags to exact commit SHAs: .github/workflows/codspeed.yml and .github/workflows/test.yml. No other workflow logic or steps changed.

Changes

Cohort / File(s) Summary
CodSpeed workflow pinning
.github/workflows/codspeed.yml
Pinned actions: actions/checkout@v5 -> @08c6903...07a8, actions/setup-python@v5 -> @a26af69...7065, CodSpeedHQ/action@v3 -> @76578c2...4e7c. Added inline comments with original tags.
Test workflow pinning
.github/workflows/test.yml
Pinned actions: actions/checkout@v5 -> @08c6903...07a8, actions/setup-python@v5 -> @a26af69...7065, codecov/codecov-action@v5 -> @fdcc847...cc00. Added inline comments with original tags.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Assessment against linked issues

Objective Addressed Explanation
Use full commit SHA hash for dependency (#98)

Assessment against linked issues: Out-of-scope changes

(no out-of-scope functional changes identified)

Possibly related issues

Possibly related PRs

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update-commit-hash

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (5)
.github/workflows/test.yml (3)

18-18: Good pin; add checkout hardening (persist-credentials).

Pinning to a full SHA is the right security move. Also prevent leaving GITHUB_TOKEN in the repo’s origin URL.

Apply:

       - name: Checkout
-        uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5
+        uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5
+        with:
+          persist-credentials: false

21-21: Good pin; enable pip cache for speed.

Apply:

       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 #v5
+        uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 #v5
         with:
           python-version: ${{ matrix.python-version }}
           allow-prereleases: true
+          cache: pip
+          cache-dependency-path: pyproject.toml

36-36: Add minimal default permissions to the workflow

  • In .github/workflows/test.yml, at the top level add:
    permissions:
      contents: read
  • (Optional) To prepare for tokenless OIDC in the future, you can also include:
    permissions:
      id-token: write
.github/workflows/codspeed.yml (2)

29-30: Good pins; mirror checkout hardening and pip cache.

Apply:

-      - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8  #v5
+      - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8  #v5
+        with:
+          persist-credentials: false
-      - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 #v5
+      - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 #v5
         with:
           python-version: "3.13"
+          cache: pip
+          cache-dependency-path: pyproject.toml

38-38: Good pin; add least-privilege and cancel in-progress runs.

Keep tokens tight and save CI minutes on rapid pushes.

Apply at workflow root:

 name: CodSpeed
+
+permissions:
+  contents: read
+
+concurrency:
+  group: codspeed-${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 8b2b307 and 7de3ffa.

📒 Files selected for processing (2)
  • .github/workflows/codspeed.yml (1 hunks)
  • .github/workflows/test.yml (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: test (3.9)
  • GitHub Check: test (3.14)
  • GitHub Check: Run benchmarks

Copy link

codspeed-hq bot commented Aug 30, 2025

CodSpeed Performance Report

Merging #99 will not alter performance

Comparing update-commit-hash (7de3ffa) with main (8b2b307)

Summary

✅ 73 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use full commit SHA hash for dependency

1 participant