Implement Decaying Runs in CodeChecker
Los mantenedores suelen responder en 8 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 15/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 2.6k
- Forks
- 494
- Merge medio
- 9 d 2 h
- PR fusionados (30 d)
- 23
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Ericsson/codechecker
-
infer analyzer does not work with --jobsPosiblemente ocupada @pcbeingused333 la tomó hace 5 días. Abiertogood to go :rocket:
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Ericsson/codechecker#5110 ·
Los mantenedores suelen responder en 8 días
-
Bug Report: diagtool not found on WindowsPosiblemente ocupada @pujitha24 la tomó hace 17 días. Abiertogood to go :rocket:
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Ericsson/codechecker#4802 ·
Los mantenedores suelen responder en 8 días
-
analyzer :chart_with_upwards_trend: CLI :computer: discussion :bulb: enhancement :star2:
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Ericsson/codechecker#3836 · 2 comentarios ·
Los mantenedores suelen responder en 8 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Ericsson/codechecker#5165 ·
Los mantenedores suelen responder en 8 días
-
Cppcheck addon reports are dropped since 6.27 (regression from #4690)Posiblemente ocupada @pcbeingused333 la tomó hace 6 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
Ericsson/codechecker#5161 ·
Los mantenedores suelen responder en 8 días
Todos los issues de Ericsson/codechecker
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
pytest-dev/pyfakefs#1367 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
IFEvalG exclude_word_harder misses the keyword next to punctuation, at the start or end of the text, and in other letter casePosiblemente ocupada @damienen la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
allenai/open-instruct#2151 ·
Los mantenedores suelen responder en 1 día
-
feat(plan): support convertorLabels and convertorAffinity in Plan resourcePosiblemente ocupada @AmenB la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
RedHatQE/openshift-python-wrapper#2849 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 25 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
libnativeapi/nativeapi#21 ·