Make borrow-state tests portable to 32-bit targets

オープン 初心者向け
#565 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
numpy, rust
領域
testing-qa

調査の方向性

borrow-state テストから始め、プロセスグローバルな n_flags カウントに対するアサーションを見つけます。32 ビットターゲットで no-feature テストスイートを実行し、64 ビットターゲットと比較します。その際、配列カウントと安全性のチェックは維持してください。アーキテクチャ固有のレジストリ動作が原因で、正確なカウントチェックが失敗しなくなれば完了です。

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

説明

The borrow-state tests assert exact values of the process-global borrow-flag count. On Debian i386, the no-feature test suite can observe an additional registered flag and fails with an assertion such as left: 2, right: 1, while the array-count and safety checks remain valid.

The exact n_flags assertions should either be made architecture-independent or limited to targets where the underlying registry behavior is deterministic. This was found while packaging rust-numpy 0.28.0 for Debian unstable.

A Debian-side patch currently gates the exact n_flags assertions to 64-bit targets while preserving the other borrow-state checks. The corresponding i386 build passes with that patch.

主要言語
Rust
スター
1.4k
フォーク
141
平均マージ
16分
マージ済み PR(30日)
3

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

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

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

PyO3/rust-numpy のほかの issue

PyO3/rust-numpy の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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