Trigger hardware registry imports on repository updates
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start by locating the existing hardware registry import command in the Dashboard and the cron job that invokes it; then inspect how the kernelci-pipelines repository stores the registry YAML and configures GitHub Actions. The issue is done when updates to that file on main trigger a secure, retryable import, report failures, and prevent overlapping or stale imports from corrupting newer data.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Description
Currently, the Dashboard periodically imports the hardware registry from the kernelci-pipelines repository using a cron job. This process downloads the YAML file and updates the Dashboard database, even when the file hasn't changed.
We could replace this periodic polling mechanism with an event-driven approach using GitHub Actions.
Proposed solution
When changes to the hardware registry YAML file are merged into the main branch of kernelci-pipelines, a GitHub Actions workflow should trigger the import process on the Dashboard server.
The workflow should:
- Run only when the hardware registry YAML file is updated on
main. - Securely connect to the Dashboard server.
- Execute the existing import management command to update the database.
- Report whether the import succeeded or failed.
Benefits
- Faster updates: Hardware registry changes are reflected in the Dashboard shortly after being merged.
- Reduced unnecessary work: Imports only run when the registry changes.
Caveats
- Idempotency: The import command should be safe to execute multiple times for the same registry version, without creating duplicate or inconsistent data.
- Concurrency: Multiple updates may trigger overlapping imports. We should ensure that concurrent executions do not interfere with each other.
- Out-of-order execution: GitHub Actions workflows are not guaranteed to execute in the order they were triggered. An older import could finish after a newer one and overwrite the latest registry data. We should ensure that stale imports cannot overwrite newer data.
- Failure recovery: Failed imports should be easy to retry, ideally through a manually triggered workflow, without compromising data consistency.
Acceptance criteria
- A GitHub Actions workflow in
kernelci-pipelinestriggers when the hardware registry file changes onmain. - The workflow securely triggers the import command on the Dashboard server.
- Import failures are reported.
- The import process remains safe to retry in case of failures.
- The import command can still be invoked manually if necessary
- Lenguaje dominante
- Python
- Estrellas
- 10
- Forks
- 32
- Merge medio
- 3 d 36 min
- PR fusionados (30 d)
- 23
Preparar el entorno
- Incluye un Dockerfile o un 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 kernelci/dashboard
-
notifications
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
Show how to add a board missing from the hardware registryPosiblemente ocupada @alanpeixinho la tomó hace 3 días. AbiertoFrontend q4-plan
Dificultad 2/5 Medio día Aptitud para principiantes 65/100
kernelci/dashboard#2167 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
Backend bug Ingester URGENT
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
Los mantenedores suelen responder en 2 días
-
Show the last hardware registry syncPosiblemente ocupada @alanpeixinho la tomó hace 8 días. AbiertoBackend Frontend q4-plan
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
kernelci/dashboard#2170 · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de kernelci/dashboard
Issues similares
-
[Resource]: LoreAbiertoresource-submission validation-passed
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
hesreallyhim/awesome-claude-code#3234 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openminion/openminion#376 ·
Los mantenedores suelen responder en 1 día
-
Type: ☹︎ Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
posit-dev/great-tables#1028 ·
Los mantenedores suelen responder en 1 día
-
integration: apple_tv
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
home-assistant/core#188282 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
A "since" range is worded as a career: "the past two seasons" says "regular season career (2025 on)"AbiertoP4: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
jeffknupp/association#538 ·