Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: codspeed がうまく連携できてなかたt #125

Merged
merged 5 commits into from
Jan 30, 2024
Merged

Conversation

mew-ton
Copy link
Contributor

@mew-ton mew-ton commented Jan 30, 2024

Summary by CodeRabbit

  • 新機能
    • プルリクエストのトリガー条件とinit__nodeジョブの条件を更新し、プルリクエストのラベルとタイトルに基づいて細分化しました。
    • @codspeed/vitest-pluginからcodspeedをインポートし、設定のplugins配列にcodspeedを追加しました。

Copy link

changeset-bot bot commented Jan 30, 2024

🦋 Changeset detected

Latest commit: 1e5d7f7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
json-origami Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

coderabbitai bot commented Jan 30, 2024

Warning

Rate Limit Exceeded

@mew-ton has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 1 minutes and 35 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.

Commits Files that changed from the base of the PR and between 0a34122 and 1e5d7f7.

Walkthrough

この変更では、プルリクエストのトリガー条件とinit__nodeジョブの条件が更新されました。また、vitest.config.ts@codspeed/vitest-pluginからcodspeedをインポートし、設定のプラグイン配列に追加しました。これにより、プルリクエストの管理とテスト設定が改善されます。

Changes

ファイル 変更内容
.github/workflows/codspeed.yml プルリクエストのトリガー条件とinit__nodeジョブの条件を更新
vitest.config.ts @codspeed/vitest-pluginからcodspeedをインポートし、プラグイン配列に追加

🐰✨
変更を祝って、跳ねる私
コードは速く、バグは遠く
新しい始まり、心躍る

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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>.
    • Generate unit-tests for this file.
  • 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. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • 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 generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

Copy link

codspeed-hq bot commented Jan 30, 2024

CodSpeed Performance Report

Merging #125 will create unknown performance changes

Comparing fix/codspeed (1e5d7f7) with main (55ecd14)

Summary

🆕 22 new benchmarks

Benchmarks breakdown

Benchmark main fix/codspeed Change
🆕 omit (complex object including 100 values, omit 10% of keys) N/A 45.4 ms N/A
🆕 pick (complex object including 100 values, pick 10% of keys) N/A 2.1 ms N/A
🆕 omit (complex object including 100 values, omit 90% of keys) N/A 27.4 ms N/A
🆕 omit (complex object including 1000 values, omit 10% of keys) N/A 4.3 s N/A
🆕 twist (complex object including 1000 values, twist 50% of keys) N/A 6.5 s N/A
🆕 fold (complex object including 1000 values) N/A 53.9 ms N/A
🆕 omit (complex object including 1000 values, omit 50% of keys) N/A 2.8 s N/A
🆕 unfold (complex object including 1000 values) N/A 3.9 s N/A
🆕 twist (complex object including 100 values, twist 90% of keys) N/A 216.1 ms N/A
🆕 fold (complex object including 100 values) N/A 4.9 ms N/A
🆕 pick (complex object including 100 values, pick 90% of keys) N/A 58.6 ms N/A
🆕 unfold (complex object including 100 values) N/A 50.4 ms N/A
🆕 omit (complex object including 1000 values, omit 90% of keys) N/A 2.4 s N/A
🆕 pick (complex object including 100 values, pick 50% of keys) N/A 17.6 ms N/A
🆕 twist (complex object including 100 values, twist 50% of keys) N/A 222.8 ms N/A
🆕 omit (complex object including 100 values, omit 50% of keys) N/A 47.7 ms N/A
🆕 twist (complex object including 1000 values, twist 90% of keys) N/A 7.6 s N/A
🆕 pick (complex object including 1000 values, pick 90% of keys) N/A 3.2 s N/A
🆕 twist (complex object including 100 values, twist 10% of keys) N/A 91.6 ms N/A
🆕 pick (complex object including 1000 values, pick 10% of keys) N/A 71.1 ms N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 55ecd14 and 0a34122.
Files ignored due to path filters (2)
  • package.json is excluded by: !**/*.json
  • yarn.lock is excluded by: !**/*.lock
Files selected for processing (2)
  • .github/workflows/codspeed.yml (1 hunks)
  • vitest.config.ts (1 hunks)
Additional comments: 7
vitest.config.ts (4)
  • 1-1: codspeedのインポートが追加されていますが、codspeedのバージョンや依存関係に関する変更がpackage.jsonに含まれているか確認する必要があります。
Verification successful

@codspeed/vitest-pluginのバージョンがpackage.json"^3.1.0"として含まれていることが確認されました。これにより、vitest.config.tsファイルでのcodspeedのインポートに必要な依存関係が適切に管理されていることが確認できます。

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# `@codspeed/vitest-plugin`の依存関係を確認
rg '@codspeed/vitest-plugin' package.json

Length of output: 82

* 6-6: `plugins`配列に`codspeed()`が追加されました。この変更は、テストの設定を強化する目的で行われたようです。`codspeed`プラグインの設定オプションが必要かどうか、またはデフォルト設定で十分かどうかを確認してください。 * 1-9: > 📝 **NOTE** > This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [7-14]

test.benchmark.includeにベンチマークテストのパスが指定されています。この設定は、特定のテストファイルのみをベンチマークとして実行するために追加されたようです。このパス設定がプロジェクトのディレクトリ構造と一致しているか確認してください。

  • 1-9: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [11-11]

resolve.aliasを使用して、~をプロジェクトのsrcディレクトリにエイリアスしています。この設定は、インポートパスを簡潔にするために有用ですが、既存のコードベースでこのエイリアスが適切に使用されているか、または新たに追加されたコードでこのエイリアスが必要かどうかを確認する必要があります。

.github/workflows/codspeed.yml (3)
  • 13-19: pull_requestトリガーの条件が更新され、ready_for_reviewタイプと特定のパスが追加されました。これにより、関連するファイルが変更された場合、またはプルリクエストがレビュー準備完了になった場合にのみ、ワークフローがトリガーされるようになります。この変更は、不要なワークフローの実行を減らすための良い改善です。
  • 24-25: init__nodeジョブの条件が更新され、renovateラベルが付いていない、かつタイトルがVersion Packagesで始まらないプルリクエストに限定されました。この条件は、特定のタイプのプルリクエストでのみノードの初期化を行うために有用ですが、他の重要なプルリクエストタイプが除外されていないか確認する必要があります。
  • 10-28: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [2-10]

ワークフローのpermissionsが設定されていますが、packages: readpull-requests: writeの権限はこのワークフローで必要ですか?特にpackagesの読み取り権限は、このワークフローで使用されているアクションやステップでパッケージの読み取りが必要な場合にのみ設定するべきです。

@mew-ton mew-ton merged commit 27733a4 into main Jan 30, 2024
7 checks passed
@mew-ton mew-ton deleted the fix/codspeed branch January 30, 2024 08:42
@github-actions github-actions bot mentioned this pull request Jan 30, 2024
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