Switch to syncing tracks via push rather than pull config
Los mantenedores suelen responder en 1 día
@SaschaMann ya está trabajando en esto.
Desde el 29/12/2020.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
GitHub recently introduced a new feature called Environments that let you create a »container« of sorts to limit access to secrets in a more fine-grained way than giving everyone with the commit bit permission to access and use them. GHA workflows can require access to an environment, which will prevent them from running until a select group of people has »reviewed« the run and clicked a button.
This feature would allow us to switch to trigger events from problem-specifications to the track repos, rather than the current configuration where track repos must pull new info.
What would (need to) change?
-
Configure a machine user with write access to all track repos.
-
Configure an environment in
problem-specificationswith an access token of that bot user. -
Determine a trusted group of (currently up to 6) people who can approve workflow runs in that environment.
-
Configure a workflow in
problem-specificationsthat sends outrepository_dispatchto each track repo.repository_dispatchevents are kinda like webhooks. They are web requests that may contain an arbitrary payload that are sent to the track repos and trigger a workflow run there.
There are two viable triggers, both with their own up- and downsides:push:- Send an event to tracks on every commit to the main branch in
problem-specifications. - 👍 Changes to
problem-specificationsmap 1-to-1 torepository_dispatch. - 👍 Changes will make their way to the track repos ASAP.
- 👎 This may cause a lot of work for the workflow approvers, as they’ll have to approve a run for every PR.
- 👎 It is not clear when a change will hit the track repos as it depends on the availability of the approvers.
- Send an event to tracks on every commit to the main branch in
schedule:- Once a day (or more/less often), send out an event that contains a »summary« of recent changes (if there were any) to the track repos.
- 👍 The work for workflow approvers is limited.
- 👍 It’s fairly predictable how long it will take for a change to trigger an event in the track repos.
- 👎 It may take more time for a change to make its way into a track repo.
- 👎 The receiving workflows will be more complex, as they’ll have to handle several changes at once.
-
Each track can then decide if and how they want to act on these events. For example, they could…
- … automatically run their test generators on the new tests.
- … open an issue that contains a summary of the change.
Some of these could be standardized in actions, so that tracks don’t have to write their own workflows from scratch.
Advantages
-
Less resources are wasted on scheduled runs looking for changes in problem-specs.
-
We can create an event payload ourselves to make it easier for tracks to handle updates (semi-) automatically.
-
It would be easy to setup each track with a default behaviour, like creating an issue, so that even tracks that lack the peoplepower to setup elaborate automated workflows would benefit from update notifications.
-
All of this would also be possible with webhooks and an external (serverless) service where secrets are stored. However, that would require additional infrastructure and would make it harder to change or fix the setup compared to a purely GHA-based setup.
- Lenguaje dominante
- Ruby
- Estrellas
- 362
- Forks
- 566
- Merge medio
- 15 h 13 min
- PR fusionados (30 d)
- 8
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 exercism/problem-specifications
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
exercism/problem-specifications#2686 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
exercism/problem-specifications#2704 · 21 comentarios · 8 reacciones ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 35/100
exercism/problem-specifications#2153 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
exercism/problem-specifications#2120 · 7 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
exercism/problem-specifications#2108 · 1 comentario · 5 reacciones ·
Los mantenedores suelen responder en 1 día
Todos los issues de exercism/problem-specifications
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Bug Ruby Waiting for: Product Owner
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
getsentry/sentry-ruby#3228 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
開発用DockerイメージにPlaywrightのシステム依存を追加するPosiblemente ocupada @momocus la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
sakazuki-org/sakazuki#1453 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100