CI: journey test asserts WCD cluster's replication default; timeDecay boost test is flaky

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

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

@dudanogueira がすでに取り組んでいます。

2026年9月30日 から。

  • #486 @dudanogueira による — オープン

評価

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

調査の方向性

まず test/collections/journey.test.ts と test/collections/query/integration.test.ts から始め、その後、影響を受ける collection と query の統合テストを実行します。journey のアサーションを共有 WCD クラスターのデフォルトと照合し、boost テストのオブジェクトの日付をその decay の起点との関係で確認します。関連する CI ジョブ全体で両方のテストが一貫してパスし、float の順序によるノイズに依存していなければ完了です。

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

説明

Two tests are failing CI independently of the code under change (seen on #459, which touches neither file).

1. test/collections/journey.test.ts — "should get the config for the created collection"

Fails on every tests-without-auth job regardless of Weaviate version, because it runs against a shared WCD cluster rather than the version-matrix container. The only real diff:

replication: {
-   asyncEnabled: false,
+   asyncEnabled: true,

The cluster now defaults new collections to asyncEnabled: true. main's last run (2026-09-09) did not hit this, so the cluster's defaults changed since. The test hard-codes a value that is owned by the server's configuration.

2. test/collections/query/integration.test.ts — boost timeDecay

Flaky (failed on 24.x / 1.38 only). All three objects are inserted with createdAt: new Date(Date.now()), while the decay origin is 2024-01-01 with a 35d scale — so every object's decay is ~0 and identical. The boost has no real effect, and expect(boosted).not.toEqual(baseline) only passes when float noise happens to reorder tied results.

Fix
  • Journey: assert asyncEnabled: expect.any(Boolean).
  • Boost: give the objects distinct createdAt dates around the decay origin so timeDecay deterministically reorders them.
主要言語
TypeScript
スター
101
フォーク
43
平均マージ
7時間 31分
マージ済み PR(30日)
6

環境構築

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

はじめの一歩

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

weaviate/typescript-client のほかの issue

weaviate/typescript-client の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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