Add batch user creation step for speeding up the requests#35403
Conversation
|
Can you make this run by default? Would be good to find what difference does this make. |
Codecov Report
@@ Coverage Diff @@
## master #35403 +/- ##
=========================================
Coverage 65.66% 65.66%
Complexity 18666 18666
=========================================
Files 1221 1221
Lines 70597 70597
Branches 1288 1288
=========================================
Hits 46358 46358
Misses 23862 23862
Partials 377 377
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #35403 +/- ##
============================================
- Coverage 65.93% 65.61% -0.33%
Complexity 18735 18735
============================================
Files 1160 1221 +61
Lines 63470 70793 +7323
Branches 0 1288 +1288
============================================
+ Hits 41852 46449 +4597
- Misses 21618 23967 +2349
- Partials 0 377 +377
Continue to review full report at Codecov.
|
299635b to
8c9b8f6
Compare
individual-it
left a comment
There was a problem hiding this comment.
please squash before merging
|
There are various acceptance test CI fails, so I guess something in this code is not quite right. |
| $requests, | ||
| $client = null | ||
| ) { | ||
| if (!isset($client)) { |
There was a problem hiding this comment.
Only null check should be enough. isset checks if the variable is declared or not in addition to null-check.
| if (!isset($client)) { | |
| if ($client === null) { |
or,
| if (!isset($client)) { | |
| if (is_null($client)) { |
| ); | ||
| } | ||
| // Send all the requests in parallel. | ||
| $response = HttpRequestHelper::sendBatchRequest($requests, $client); |
There was a problem hiding this comment.
This is not really a response. Could get confusing.
|
Backport on #35522 |
@phil-davis I have already started refactoring. It's almost over. I couldnt do PR today because it was late. |
Description
Add new step for user creation using batch requests to speed up the ci
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: