Implement Decaying Runs in CodeChecker
メンテナーはふだん 8 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
調査の方向性
The issue names no specific files or tests. Start from the existing storage command and the server's run-deletion path, then look at how run records are stored in the database. Done would mean a lifetime can be set at storage time, expired runs are removed by a background job, and the lifetime is visible in the CLI and web UI. Agree the design with maintainers first, since the work spans schema, server, CLI and UI.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
There is a problem with CodeChecker runs accumulating and consuming excessive space on the server. For example, when using a Jenkins job to analyze a set of OpenSource projects, every build creates a new run in the CodeChecker server. These runs are not automatically cleaned up, leading to server storage issues over time.
Describe the solution you would like
Implement a "decaying runs" feature in CodeChecker with the following characteristics:
- Allow users to specify a lifetime for runs during the storage phase.
- Implement a backend mechanism that periodically cleans up runs older than their specified lifetime.
- Maintain backward compatibility by keeping runs indefinitely by default.
- Provide ways to view and modify the remaining time until deletion for runs in both the CLI and CodeChecker web UI.
Describe alternatives you have considered
- Manual deletion of old runs: This requires constant monitoring and manual intervention, which is not scalable.
- Fixed deletion schedule: This doesn't allow for flexibility in retention times for different types of runs.
Additional context
This feature would greatly improve the management of storage resources for CodeChecker servers, especially in CI/CD environments where new runs are frequently created.
Implementation details to consider:
- Add a new parameter to the storage command to specify run lifetime.
- Implement a background job in the server to check and delete expired runs.
- Extend the database schema to include lifetime and expiration information for runs.
- Update the CLI and web UI to display and allow modification of run lifetimes.
- Ensure proper documentation of the new feature in the CodeChecker documentation.
- Make sure to test the backend, the interaction with the web app and the CLI as well.
- 主要言語
- Python
- スター
- 2.6k
- フォーク
- 494
- 平均マージ
- 9日 2時間
- マージ済み PR(30日)
- 23
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Ericsson/codechecker のほかの issue
-
infer analyzer does not work with --jobs対応中かも @pcbeingused333 が 5 日前に担当しました。 オープンgood to go :rocket:
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Ericsson/codechecker#5110 ·
メンテナーはふだん 8 日以内に返信
-
Bug Report: diagtool not found on Windows対応中かも @pujitha24 が 17 日前に担当しました。 オープンgood to go :rocket:
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Ericsson/codechecker#4802 ·
メンテナーはふだん 8 日以内に返信
-
analyzer :chart_with_upwards_trend: CLI :computer: discussion :bulb: enhancement :star2:
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
Ericsson/codechecker#3836 · コメント 2 件 ·
メンテナーはふだん 8 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Ericsson/codechecker#5165 ·
メンテナーはふだん 8 日以内に返信
-
Cppcheck addon reports are dropped since 6.27 (regression from #4690)対応中かも @pcbeingused333 が 6 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
Ericsson/codechecker#5161 ·
メンテナーはふだん 8 日以内に返信
Ericsson/codechecker の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pytest-dev/pyfakefs#1367 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
IFEvalG exclude_word_harder misses the keyword next to punctuation, at the start or end of the text, and in other letter case対応中かも @damienen が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
allenai/open-instruct#2151 ·
メンテナーはふだん 1 日以内に返信
-
feat(plan): support convertorLabels and convertorAffinity in Plan resource対応中かも @AmenB が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
RedHatQE/openshift-python-wrapper#2849 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 25 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
libnativeapi/nativeapi#21 ·