[bug] nightly: capability discovery browser test can pause its clock in the past

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

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

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

評価

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

調査の方向性

tests/browser/capability_discovery.mjs の517行目付近と .github/workflows/nightly.yml の browser-production のセットアップ(285~355行目)を読んでください。production browser のケースを再現し、draft service のチェックがどのように時計を設定し、一時停止する時刻を選ぶかを調べてください。fixture のタイムスタンプを制御された時計に合わせ、バイリンガルのアサーションと追加リクエストがないことを確認するアサーションを維持し、production browser で複数回実行して成功することを確認してください。

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

説明

area:ci

Observed failure

Scheduled Nightly 44645615189, browser-production tested main 7dc1152ba78bdec05db8d2bbeed4d347ca40b082 (attempt 1). Thirteen of fourteen browser journeys passed. capability_discovery.mjs:517 exited with clock.pauseAt: Error: Cannot fast-forward to the past, before the stale/future/legacy/connection assertions. Captured browser diagnostics had no page errors. Environment: GitHub-hosted Ubuntu 22.04.5, Node 24.22.1, Playwright Core 1.58.2 with Chromium headless shell, Vite production preview and isolated fixture (no live provider).

Reproduce

Use the browser-production setup, then run node tests/browser/capability_discovery.mjs. In the draft service check, after the partial-capability state, the test installs its browser clock and immediately asks it to pause at the Node process's current wall clock. The failure depends on timing; one local pass does not rule it out.

Expected: freeze browser time and verify the same service observation in both locales without a second request.
Actual: Playwright refuses to pause at the supplied timestamp and the observation checks never run.

Scope and acceptance

Current main still has these calls. The stack is in Playwright's clock controller, not the product service. The likely race is that the browser clock ticks past the timestamp before the pause applies. Set an explicit installed time and a later pause target within that controlled clock, or use an equivalent deterministic setup. Keep fixture timestamps consistent with the controlled clock, preserve the bilingual/no-extra-request assertions, and verify multiple runs of the production-browser case. No independent rerun or product regression is claimed.

主要言語
TypeScript
スター
119
フォーク
16
平均マージ
16時間 13分
マージ済み PR(30日)
195

環境構築

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

はじめの一歩

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

ThinkFlowLab/OpenDirector のほかの issue

ThinkFlowLab/OpenDirector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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