Investigate opam tests of `libbinaryen` include

Abierto
#260 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
github-actions, ocaml
Área
ci-cd

Línea de trabajo

The proposed flow starts from the opam install-deps step and reads resolutions['@grain/libbinaryen'] in package.json to find the libbinaryen repo URL and commit hash. The run-local-tests script and the dispatch workflow do not exist yet, so the first step is to read the existing CI workflow files and see how opam tests run. Done means a workflow that clones the pinned libbinaryen commit, overrides the opam version, and reruns the build, with a documented trigger. Scope and the release-please follow-up need maintainer agreement first.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

It would be nice if we could investigate testing through opam, for unreleased libbinaryen versions to catch downstream failures.

I think a good workflow process would be:

  • If install-deps fails (Would be nice if we could say specifically due to libbinaryen not being available)
    • Check if package.json contains resolutions['@grain/libbinaryen']
    • Parse out the repo url and commit hash.
    • Dispatch a workflow run to a run-local-tests script with the repo and commit hash
    • Clone the repo
    • Check out the hash
    • Pin the local package to override the version specified via opam
    • Try rebuilding.

This should still cause the opam tests to fail, but should help to catch any downstream issues in libbinaryen before we do releases.

If we want to get really fancy, we could have release-please in libbinaryen dispatch a workflow to open a pr with the resolution changed to pre-test releases (This would fail with typical api changes in binaryen through).

If we want to optimize this a little as well, it may make sense to run the standard Ubuntu build of the opam test on 5.3.0 and, depending on the state, dispatch the rest of the runs so we avoid doing the failover work multiple times.

Lenguaje dominante
C
Estrellas
54
Forks
9
Métricas de merge de PR
Sin PR fusionados en 30 d

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

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de grain-lang/binaryen.ml

Todos los issues de grain-lang/binaryen.ml

Issues similares

Más issues de C

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.