Three unit tests flake on timing in the Coverage job

オープン
#4,321 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

Start with artifact-tracking.test.ts, snapshot-source/lifecycle.test.ts, and remote-test-artifacts-materialization.test.ts; inspect each timing assertion and the async work it observes. Run them under the Coverage job's parallelism and identify whether each depends on a real-time sleep, wall-clock bound, or unawaited step. Done means all three pass 20 consecutive runs without added real-time waits, wider timeouts, retries, or skips.

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

説明

bug ready-for-agent

Purpose

Three unit tests fail intermittently on timing in the Coverage job. #4316 found them while measuring every Coverage failure from 2026-11-05 to 2026-11-07: 7 of the 34 failed attempts in that window were these tests, on PRs that don't touch them.

Current behavior

The flaky tests:

  • artifact-tracking.test.ts
  • snapshot-source/lifecycle.test.ts
  • remote-test-artifacts-materialization.test.ts

Each fails on a timing assertion or timeout under load and passes when rerun. Once #4316 lands, the failing test and line appear as a check annotation on the PR.

Required behavior

  • For each test, find what it times: a real-time sleep, a wall-clock bound, or an unawaited async step.
  • Make it deterministic with fake timers, awaited events or an explicit ordering signal. Don't widen the timeout or retry the test.
  • Don't skip any of the three.

Completion conditions

  • Each test passes 20 consecutive runs under the Coverage job's parallelism, locally or in CI.
  • No new real-time waits are added.

Dependencies

#4316 (annotations), which makes future recurrences visible.

主要言語
TypeScript
スター
5.3k
フォーク
377
平均マージ
13時間 58分
マージ済み PR(30日)
654

環境構築

はじめの一歩

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

callstack/agent-device のほかの issue

callstack/agent-device の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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