Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[TASK] Postman and Karate test stacks sleep 3 s after every write

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

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

関連するプルリクエストがすでにマージされています。

  • #38226 @swicken による — マージ済み

評価

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

調査の方向性

指定された3つの設定ファイルを確認します: dotcms-postman/pom.xml、dotcms-postman/docker-compose.yml、test-karate/pom.xml。キャッシュフラッシュの遅延設定を、統合テストスタックの短い遅延と比較します。コミットリスナーは同期のままにします。Postman と Karate の CI ジョブでタイミング競合がないか確認し、以前より速く完了することを確認します。

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

説明

Team : Platform Type : Test Automation
Description

The Postman and Karate test stacks set DOT_ASYNC_COMMIT_LISTENERS=false and leave NETWORK_CACHE_FLUSH_DELAY at its default of 3000 ms. With synchronous commit listeners, HibernateUtil.finalizeCommitListeners runs the cache flushers on the request thread, sleeps for that delay, and then flushes again. Nearly every write registers a flusher through CommitListenerCacheWrapper, so nearly every write request waits 3 seconds before it returns.

The affected files are:

  • dotcms-postman/pom.xml
  • dotcms-postman/docker-compose.yml
  • test-karate/pom.xml

The E2E stack had the same problem and was fixed in #38218. The integration tests already use a short delay.

Part of epic #34645 (CI/CD pipeline stability).

Evidence

In CI run 39993994634, newman request times fall into two groups. Reads finish in under a second, and writes take 3, 6 or 9 seconds. Rounding each request down to a multiple of 3 seconds gives these upper bounds on the time spent sleeping:

Job Sleep, at most Job length
Category Content 26 min 36.5 min
GraphQL 21.6 min 37.9 min
Default and Default Split, combined 49 min

These four are the slowest Postman jobs in PR CI.

Acceptance Criteria
  • The Postman and Karate stacks set a short cache-flush delay. The commit listeners stay synchronous, so tests still see committed state before a response returns.
  • Any timing races that the shorter delay exposes are fixed.
  • The Postman and Karate jobs pass in CI and take less time than before.
主要言語
Java
スター
972
フォーク
489
平均マージ
2日 12時間
マージ済み PR(30日)
188

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

dotCMS/core のほかの issue

dotCMS/core の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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