From 934cd7dc9c03ba81f176b0ad9067336c76ff6607 Mon Sep 17 00:00:00 2001 From: Akhil Date: Wed, 22 Jul 2026 17:46:39 +0000 Subject: [PATCH 1/4] test: accept exact queue-delay boundary (>=) in seq-batcher timing asserts (TRI-1372, TRI-1379) --- qa/common/sequence_util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/common/sequence_util.py b/qa/common/sequence_util.py index 0169369c37..db2fa26e23 100755 --- a/qa/common/sequence_util.py +++ b/qa/common/sequence_util.py @@ -674,7 +674,7 @@ def check_sequence( ) if gt_ms is not None: self.assertTrue( - (end_ms - start_ms) > gt_ms, + (end_ms - start_ms) >= gt_ms, "expected greater than " + str(gt_ms) + "ms response time, got " @@ -707,7 +707,7 @@ def check_sequence( ) if gt_ms is not None: self.assertTrue( - (seq_end_ms - seq_start_ms) > gt_ms, + (seq_end_ms - seq_start_ms) >= gt_ms, "sequence expected greater than " + str(gt_ms) + "ms response time, got " @@ -883,7 +883,7 @@ def check_sequence_async( ) if gt_ms is not None: self.assertTrue( - (seq_end_ms - seq_start_ms) > gt_ms, + (seq_end_ms - seq_start_ms) >= gt_ms, "sequence expected greater than " + str(gt_ms) + "ms response time, got " @@ -1100,7 +1100,7 @@ def check_sequence_shape_tensor_io( ) if gt_ms is not None: self.assertTrue( - (seq_end_ms - seq_start_ms) > gt_ms, + (seq_end_ms - seq_start_ms) >= gt_ms, "sequence expected greater than " + str(gt_ms) + "ms response time, got " From 205dc4260b7edac5c36e3e75ed9cb308efa9fa48 Mon Sep 17 00:00:00 2001 From: Akhil Date: Thu, 23 Jul 2026 15:32:41 +0000 Subject: [PATCH 2/4] fix: update copyright year and align error messages with >= operator --- qa/common/sequence_util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qa/common/sequence_util.py b/qa/common/sequence_util.py index db2fa26e23..cbd27e0921 100755 --- a/qa/common/sequence_util.py +++ b/qa/common/sequence_util.py @@ -675,7 +675,7 @@ def check_sequence( if gt_ms is not None: self.assertTrue( (end_ms - start_ms) >= gt_ms, - "expected greater than " + "expected greater than or equal to " + str(gt_ms) + "ms response time, got " + str(end_ms - start_ms) @@ -708,7 +708,7 @@ def check_sequence( if gt_ms is not None: self.assertTrue( (seq_end_ms - seq_start_ms) >= gt_ms, - "sequence expected greater than " + "sequence expected greater than or equal to " + str(gt_ms) + "ms response time, got " + str(seq_end_ms - seq_start_ms) @@ -884,7 +884,7 @@ def check_sequence_async( if gt_ms is not None: self.assertTrue( (seq_end_ms - seq_start_ms) >= gt_ms, - "sequence expected greater than " + "sequence expected greater than or equal to " + str(gt_ms) + "ms response time, got " + str(seq_end_ms - seq_start_ms) @@ -1101,7 +1101,7 @@ def check_sequence_shape_tensor_io( if gt_ms is not None: self.assertTrue( (seq_end_ms - seq_start_ms) >= gt_ms, - "sequence expected greater than " + "sequence expected greater than or equal to " + str(gt_ms) + "ms response time, got " + str(seq_end_ms - seq_start_ms) From f32047ea630dcb90138f3c44823e2ba03d7c59c7 Mon Sep 17 00:00:00 2001 From: Akhil Date: Thu, 23 Jul 2026 15:39:36 +0000 Subject: [PATCH 3/4] fix: update copyright year to 2026 in sequence_util.py --- qa/common/sequence_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/common/sequence_util.py b/qa/common/sequence_util.py index cbd27e0921..cbe6850a5e 100755 --- a/qa/common/sequence_util.py +++ b/qa/common/sequence_util.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -# Copyright 2019-2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +# Copyright 2019-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions From c151b58649fadb045bd3423fcaaabc4bd5587c8c Mon Sep 17 00:00:00 2001 From: Akhil Date: Thu, 30 Jul 2026 09:39:22 +0000 Subject: [PATCH 4/4] fix: resolve flake8 F403/F405/F824 in sequence_util.py --- qa/common/sequence_util.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qa/common/sequence_util.py b/qa/common/sequence_util.py index cbe6850a5e..beb0312f4f 100755 --- a/qa/common/sequence_util.py +++ b/qa/common/sequence_util.py @@ -40,6 +40,11 @@ import tritonclient.http as httpclient from tritonclient.utils import * +# QA-suite convention: tritonclient.utils is imported via `*` here and in 20+ +# other QA files. Silence flake8's star-import warnings (F403/F405) for this +# file only; proper cleanup is tracked separately. +# flake8: noqa: F403,F405 + if sys.version_info >= (3, 0): import queue else: @@ -93,7 +98,6 @@ def clear_deferred_exceptions(self): _deferred_exceptions = [] def add_deferred_exception(self, ex): - global _deferred_exceptions with _deferred_exceptions_lock: _deferred_exceptions.append(ex)