Skip to content

Speed up Client_RequestTasks test path gen#8539

Open
sfayer wants to merge 1 commit into
DIRACGrid:integrationfrom
sfayer:test_speedup
Open

Speed up Client_RequestTasks test path gen#8539
sfayer wants to merge 1 commit into
DIRACGrid:integrationfrom
sfayer:test_speedup

Conversation

@sfayer
Copy link
Copy Markdown
Member

@sfayer sfayer commented May 17, 2026

Hi,

I've found the Client_RequestTasks test to be flaky on my machine: It sometimes overruns the 500ms deadline set on hypothesis. The cause of this is the regex based LFN generation taking a long time to generate valid results: Sometimes if it gets unlucky it doesn't manage to generate enough valid candidates in time. (The deadline is likely disabled in the CI, so it probably doesn't show up as an issue there).

I believe adjusting the strategy to joining random strings with "/" instead keeps approximately the same test parameter space, but runs in ~10 seconds instead the original ~93.

This still feels a bit suboptimal: The actual test runtime is 1 second, the other 9 seconds are spent generating the random input LFNs for inputData lists.

Regards,
Simon

BEGINRELEASENOTES
*RequestManagement
FIX: Speed up Client_RequestTasks test path gen
ENDRELEASENOTES

@sfayer sfayer requested a review from fstagni as a code owner May 17, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants