AcademySoftwareFoundation / AcademySoftwareFoundation/OpenColorIO

Invalid YAML in test_cpu suite rejected by yaml-cpp 0.9.0

オープン 初心者向け
#2,340 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
2.1k
フォーク
505
PR マージ指標
30日以内にマージされた PR はありません

説明

https://github.com/NixOS/nixpkgs/pull/560590#issuecomment-5564165433

When built against yaml-cpp version 0.9.0, `test_cpu_exec` fails:

```
[ 129/1169] [Config / inactive_color_space_precedence ] - PASSED
/build/source/tests/cpu/Config_tests.cpp:6502:
FAILED: exception thrown from config = OCIO::Config::CreateFromStream(is): "Error: Loading the OCIO profile failed. yaml-cpp: error at line 25, column 1: plain value cannot start with flow indicator character"
Segmentation fault (core dumped) ./test_cpu_exec
```

https://github.com/AcademySoftwareFoundation/OpenColorIO/blob/c52966a6677723d5bd2dbef0ccec3fed9cbc3790/tests/cpu/Config_tests.cpp#L6492-L6502

If you want to continue using funky YAML in this test, then the continued lines of the array with more than just whitespace content must be indented. Example fix (without CLA signature): #2339

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

tests/cpu/Config_tests.cpp の 6492-6502 行付近から始め、yaml-cpp 0.9.0 に対して test_cpu テストスイートを実行して失敗を再現します。テストで使用されている YAML fixture を調査します。test_cpu_exec が YAML parsing error や segmentation fault なしで完了すれば完了です。

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

評価

技術スタック
cpp
領域
testing
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
活発
明瞭さ
明確に書かれている
初心者へのやさしさ
84/100

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

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