Clear error when `install_cuda_host_injections` fails to run easybuild

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
bash, shell
領域
tooling

調査の方向性

Start in install_cuda_host_injections.sh, where the script runs eb CUDA-x.y.eb and then eb -S '^CUDA-*. Compare the reported output with the root-privilege and init failures shown in the issue. Done when an EasyBuild startup failure produces a distinct message telling the user to check the output above, instead of the generic 'easyconfig not found' error.

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

説明

The script first tries to run eb CUDA-x.y.eb and if that fails runs eb -S '^CUDA-* and if that fails it just shows a generic error.

However if the actual failure is with eb itself that message is misleading. E.g.:

# /cvmfs/software.eessi.io/versions/2023.06/scripts/gpu_support/nvidia/install_cuda_host_injections.sh --cuda-version 12.8.6 --temp-dir /tmp/ --accept-cuda-eula                                                          
Attempting to load an EasyBuild module to do actual install
ERROR: You seem to be running EasyBuild with root privileges which is not wise, so let's end this here.
ERROR: You seem to be running EasyBuild with root privileges which is not wise, so let's end this here.
ERROR: The easyconfig CUDA-12.8.6.eb was not found in EasyBuild version:
  This is EasyBuild 5.1.0 (framework: 5.1.0, easyblocks: 5.1.0) on host c144.
You either need to give a different version of CUDA to install _or_ 
use a different version of EasyBuild for the installation.

I've seen a similar failure when something else fails during initialization, e.g. pre-creating the modules/all folder.

It would be good if the script could detect such cases and report an error of the kind "EasyBuild failed to run, check the above output for reasons"

主要言語
Python
スター
14
フォーク
54
平均マージ
11時間 2分
マージ済み PR(30日)
41

環境構築

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

はじめの一歩

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

EESSI/docs のほかの issue

EESSI/docs の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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