プルリクエストにおけるCodeQLの高速な増分分析
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
GitHub Changelog
GitHubが、プルリクエストにおけるCodeQLの静的解析を増分分析化し、C#、Java、JavaScript/TypeScript、Python、Rubyのコードスキャンを高速化した。変更部分のみを分析することでパフォーマンスを向上させている。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
C#、Java、JavaScript/TypeScript、Python、Rubyのプルリクエストに対するCodeQLスキャンがインクリメンタル化され、より高速になりました。今年初め、新規または変更されたコードのみを分析することで、プルリクエスト時のCodeQLスキャンを約20%高速化しました。現在では、プルリクエストで導入された新規または変更されたコードを表現するCodeQLデータベースを生成し、コードベース全体のキャッシュ済みデータベースと組み合わせることで、CodeQLインクリメンタル分析のパフォーマンスをさらに向上させています。
10万以上のリポジトリを対象に、非インクリメンタルスキャンの実行にかかる時間に基づき、リポジトリを以下の3つのグループに分類しました:
- 3分未満
- 3分以上7分以下
- 7分超
この分類に基づき、7日間にわたって観測されたスキャン時間の、言語ごとの平均高速化率は以下の通りです:
インクリメンタル分析に対する今回の最新の改善は、デフォルトのCodeQLクエリスイートを使用している場合にのみ適用されます。
インクリメンタル分析は、github.comにおけるデフォルト設定および詳細設定の両方で、「ビルドモードなし」抽出メカニズムを使用しているC#、Java、JavaScript/TypeScript、Python、Rubyプロジェクトにおいて、デフォルトで有効化されています。
CodeQL CLIに対するインクリメンタルスキャンのサポートは、後日提供される予定です。
この投稿「Faster incremental analysis with CodeQL in pull requests」は、The GitHub Blogで最初に公開されました。
原文を表示
CodeQL scans on pull requests for C#, Java, JavaScript/TypeScript, Python, and Ruby are now incremental, making them faster. Earlier this year, we sped up scans during pull requests with CodeQL by approximately 20% by analyzing only new or changed code. We are now further improving the performance of CodeQL incremental analysis by generating a CodeQL database to represent your new or changed code introduced in pull requests and combining it with a cached database for your entire codebase.
Across more than 100,000 repositories, we classified repositories into three groups based on how long it takes to run a non-incremental scan:
Less than three minutes
Between three and seven minutes
Over seven minutes
Based on that classification, here’s the average per-language speedup we observed on scan times over a seven-day period:
This latest improvement to incremental analysis will only be applicable to those using the default CodeQL query suite.
The incremental analysis is enabled by default for C#, Java, JavaScript/TypeScript, Python, and Ruby projects that are using the build mode none extraction mechanism in both default setup and advanced setup on github.com.
CodeQL CLI will receive support for incremental scanning at a later date.
The post Faster incremental analysis with CodeQL in pull requests appeared first on The GitHub Blog.
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み