This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 07af24d Run paths checks slowly when a test filename is detected
07af24d is described below
commit 07af24db59fe10f2cc865b5c4de07f7ae1ce5d84
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Jul 24 15:27:18 2025 +0100
Run paths checks slowly when a test filename is detected
---
atr/tasks/checks/paths.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/atr/tasks/checks/paths.py b/atr/tasks/checks/paths.py
index 2e3b274..58a4ece 100644
--- a/atr/tasks/checks/paths.py
+++ b/atr/tasks/checks/paths.py
@@ -15,6 +15,7 @@
# specific language governing permissions and limitations
# under the License.
+import asyncio
import pathlib
import re
@@ -166,6 +167,11 @@ async def _check_path_process_single(
full_path = base_path / relative_path
relative_path_str = str(relative_path)
+ # For debugging and testing
+ # TODO: Scope this to admin users
+ if full_path.name == "deliberately_slow_ATR_task_filename.txt":
+ await asyncio.sleep(20)
+
errors: list[str] = []
warnings: list[str] = []
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]