MX will occasionally fail to find .mx_vcs_root in some circumstances
まだ誰も着手していません。
評価
調査の方向性
mx.py で、.mx_vcs_root を検索し、current_dir から ci.hocon のパスを構築しているロジックから始めます。truffleruby のレシピを直接ビルドする場合と conan install の場合の差異を再現し、sandboxed のケースではどのディレクトリをチェックすべきかを判断します。直接のリポジトリビルドを壊すことなく、root が確実に見つかれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I might be in the wrong proposing this, but after I made this small edit, it fixed the problem for me.
I'm trying to set up a conan recipe for truffleruby (yeah i know its java and conan is for c++ but truffleruby supports the ruby C api and conan is a pretty nice way of managing C/C++ dependencies) and I was getting a really weird build error that did not make much sense, I was not getting the error building the recipe directly from the recipe's git repo, but I was getting it using conan install.

Conan install is a much more sandboxed environment that was likely messing with things causing the problem.
I decided to go through mx.py and see where it was trying to find .mx_vcs_root, and I noticed that it doesn't actually check if the directory starts with mx. (this is printing out current_dir)


After changing some lines around to check inside the mx dir that might be in current_dir, it fixed the problem.
hocon = join(current_dir, 'ci.hocon')
mx_vcs_root = join(current_dir, '.mx_vcs_root')
hocon = join(current_dir, "mx", 'ci.hocon')
mx_vcs_root = join(current_dir, "mx", '.mx_vcs_root')
Because I really don't understand how mx or any of the system revolving around it works, or even what these files are supposed to do, (I assume it marks where the mx git repo is?) I am unsure if this is intentional, or because this case happens so rarely nobody ever really tests it.
I'll assume it is the latter since when I tried a build straight from the truffleruby repository and patching mx.py, it worked fine.
I honestly don't really know what I am doing here, so I am probably wrong, but it's worth at least bringing the problem up.
- 主要言語
- Python
- スター
- 205
- フォーク
- 131
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
graalvm/mx のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
-
Error while doing maven-install再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
pr-babysit: the validator reports only the hex part of the harvest fingerprint, so a launch stops review-report-unusable対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンfollow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
Web download page shows a file as Completed when its download from S3 fails with an error responseオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
awslabs/visual-asset-management-system#2097 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
compiler-explorer/compiler-explorer#9738 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
openfoodfacts/openfoodfacts-python#573 ·
メンテナーはふだん 2 日以内に返信