Investigate opam tests of `libbinaryen` include

オープン
#260 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
22/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
github-actions, ocaml
領域
ci-cd

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C
スター
54
フォーク
9
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

grain-lang/binaryen.ml のほかの issue

grain-lang/binaryen.ml の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。