Clarify computation of suite durations

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
70/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
ci-cd, testing

調査の方向性

まず track_time_taken(test_results, test_times, suite_times) を読み、次に format_suite_durations_table とその呼び出し元を調べます。テスト出力全体からスイートの所要時間が計算され、フォーマット関数が結果のテーブルのフォーマットとソートだけを行い、例の出力と一致すれば完了です。

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

説明

The suite duration table, bucketed by platform, computes shortest and longest suite execution duration, and slowest matrix branch.

Like so:

longest taken shortest taken slowest branch platform
124 min 42 sec 117 min 13 sec kind-v1.32.11-PostgreSQL-18.6 kind

The main loop if Ciclops iterates through all test outputs in JSON, recording start times and end times.
This happens in track_time_taken(test_results, test_times, suite_times):
It is not until Ciclops has seen all the test outputs that we can compute suite duration, since this is spanned from the start of the first test to execute to the end of the last test to execute.

There is extra logic that gets applied in format_suite_durations_table
This should be unnecessary. The format... function should simply apply formatting directives and sort the table elements.

主要言語
Python
スター
16
フォーク
0
平均マージ
6時間 59分
マージ済み PR(30日)
1

環境構築

はじめの一歩

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

cloudnative-pg/ciclops のほかの issue

cloudnative-pg/ciclops の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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