Skip to content

Speed up Client_RequestTasks test path gen#8539

Merged
fstagni merged 1 commit into
DIRACGrid:integrationfrom
sfayer:test_speedup
May 27, 2026
Merged

Speed up Client_RequestTasks test path gen#8539
fstagni merged 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
@fstagni fstagni merged commit d488e65 into DIRACGrid:integration May 27, 2026
23 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants