public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2 0/3] Refine overall timeout and runtime management in LTP
Date: Thu,  9 Jan 2025 12:55:28 +0800	[thread overview]
Message-ID: <20250109045532.43017-1-liwang@redhat.com> (raw)

This patch series introduces a restructured approach to managing
timeouts and runtime limits in the LTP framework. The changes aim to
simplify timeout handling, improve clarity, and provide better
separation between the phases of a test (setup, execution, and cleanup).

The main updates include refining the description and usage of .timeout,
deprecating TST_UNLIMITED_RUNTIME, and introducing the tst_set_timeout()
function. Additionally, test cases that previously relied on .max_runtime
have been updated to adopt the revised logic, either by moving to .timeout
directly or transitioning to .runtime depending on their behavior.

The series ends with an update to the set_mempolicy01 test, demonstrating
the use of tst_set_timeout() to determine an upper bound for its execution.

CI job: https://github.com/wangli5665/ltp/actions/runs/12683826906/

Major changes V1 to V2:

  * Refined the description of .timeout usage and its relationship with .runtime.

  * Moved .max_runtime to .timeout directly for tests where runtime is not explicitly used.

  * Transitioned .max_runtime to .runtime for tests that call tst_remaining_runtime()
    or use the fuzzy_sync library.

  * Added the tst_set_timeout() function to allow test cases to set the overall
    timeout dynamically, particularly useful for tests that aim to determine
    upper execution bounds.

  * Updated set_mempolicy01 to make use of tst_set_timeout().


Li Wang (3):
  lib: redefine the overall timeout logic of test
  lib: add tst_set_timeout for reset entire timeout
  set_mempolicy01: make use of tst_set_timeout

-- 
2.47.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

             reply	other threads:[~2025-01-09  4:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09  4:55 Li Wang [this message]
2025-01-09  4:55 ` [LTP] [PATCH v2 1/4] lib: redefine the overall timeout logic of test Li Wang
2025-01-09  9:53   ` Cyril Hrubis
2025-01-09  4:55 ` [LTP] [PATCH v2 2/4] lib: add tst_set_timeout for reset entire timeout Li Wang
2025-01-09 10:26   ` Cyril Hrubis
2025-01-09  4:55 ` [LTP] [PATCH v2 3/4] set_mempolicy01: make use of tst_set_timeout Li Wang
2025-01-09 10:26   ` Cyril Hrubis
2025-01-09 10:33     ` Li Wang
2025-01-09  4:55 ` [LTP] [PATCH v2 4/4] readahead02: reset timeout based the IO test elapsed Li Wang
2025-01-09  9:03   ` Li Wang
2025-01-09  5:02 ` [LTP] [PATCH v2 0/3] Refine overall timeout and runtime management in LTP Li Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250109045532.43017-1-liwang@redhat.com \
    --to=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox