Investigate opam tests of `libbinaryen` include

Aperta
#260 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github-actions, ocaml
Ambito
ci-cd

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C
Stelle
54
Fork
9
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di grain-lang/binaryen.ml

Tutte le issue di grain-lang/binaryen.ml

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.