php / php/php-src

Flaky hrtime.phpt test

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

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

Bug Category: Tests Status: Verified
主要言語
C
スター
40.4k
フォーク
8.1k
平均マージ
2日 13時間
マージ済み PR(30日)
96

説明

Description

I've never seen this happening, but earlier today I had a number of failures on the ext/standard/tests/hrtime/hrtime.phpt test while doing test runs for the 8.6.0alpha1 packaging.

TEST 1/1 [ext/standard/tests/hrtime/hrtime.phpt]
========DIFF========
001- OK, %f
001+ FAIL, 0.050114826176838
========DONE========
FAIL Test hrtime() aligns with microtime() [ext/standard/tests/hrtime/hrtime.phpt]

Perhaps it could be worth increasing the 0.05 hard limit that is set in the test?

PHP Version
master
Operating System

Ubuntu 26.04

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

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

はじめの一歩

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

調査の方向性

ext/standard/tests/hrtime/hrtime.phpt から始め、hrtime() と microtime() の比較で使用されている 0.05 の厳しい上限を調べます。報告された packaging 環境でこのテストを繰り返し実行し、間欠的な失敗なしに時間比較の意味が保たれれば完了です。

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

評価

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

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

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