C++ test false positive errors with non-Linux hosts

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, docker

調査の方向性

“Deprecated specification causes deprecation compiler warning” という名前の C++ テストとその CTest 正規表現チェックから始め、次に macOS と Windows について説明されているコンパイラフラグの扱いを比較します。macOS で警告チェックが機能し、Windows での抑制に認識されるフラグが使用され、Linux 以外のホストで統合テストがパスすれば完了です。

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

説明

What

C++ tests fail on non Linux hosts

Why

MacOS: the test "Deprecated specification causes deprecation compiler warning" fails, i.e. the CTest regex check of the build output cannot find the expected warning. Perhaps it's being optimised out?

Windows: unrecognised compiler flag -Wno-deprecated-declarations. We set this flag to prevent the main tests from failing (due to -Werror "warnings-as-error"). However, /wd4996 is the correct flag on Windows.

Unfortunately, enabling MacOS and Windows C++ tests is tricky, since we currently rely on a Docker build of OpenAssetIO for all C++ tests, and therefore only test Ubuntu. See https://github.com/OpenAssetIO/OpenAssetIO/issues/1235 (and its parent issue).

However, the integration tests in the upstream OpenAssetIO repo do run on multiple OSes, which is what flagged these issues.

主要言語
Python
スター
7
フォーク
7
平均マージ
1時間 7分
マージ済み PR(30日)
1

環境構築

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

はじめの一歩

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

OpenAssetIO/OpenAssetIO-TraitGen のほかの issue

OpenAssetIO/OpenAssetIO-TraitGen の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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