-
Notifications
You must be signed in to change notification settings - Fork 521
test: E2E fix scale test indexing out of bounds #3873
Conversation
@jackfrancis can you please take a look at this change? It is a small test fix to some recent changes to cluster.sh |
/azp run pr-e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report
@@ Coverage Diff @@
## master #3873 +/- ##
=======================================
Coverage 72.83% 72.83%
=======================================
Files 149 149
Lines 23171 23173 +2
=======================================
+ Hits 16876 16878 +2
Misses 5178 5178
Partials 1117 1117
Continue to review full report at Codecov.
|
Hmmm, I am seeing the opposite problem:
In the above the I think we're not correctly using bash to evaluate the number of pools in the string array returned from |
@jackfrancis # Hard coded API model path for testing the loop In that case $i gives the name of the node pool, so there is no need to do the second jq query to translate from numerical index to node pool name... do we need the numerical index as well or would this approach work? |
My comment above didn't work, it was as you said @jackfrancis. There was something wrong in how the node pool number was being thrown by the jq query. I updated that part in a new commit. Please take a look. |
/assign @jackfrancis |
Thanks! Testing your change now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
Tested out O.K., thanks for fixing this @JesusAlvarezTorres! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jackfrancis, JesusAlvarezTorres The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Reason for Change:
Fixing a test issue on E2E scale tests, the loop iterating the node pools needs to stop when the index is less than the total of agent pool profiles; currently the fix causes an additional call to scale with node poll set to null
(( ++i ))
(( i <= 1 ))
++ jq -r --arg i 1 '. | .properties.agentPoolProfiles[$i | tonumber].name'
nodepool=null
'[' '' = true ']'
Related to changes made in this PR: #3830
Issue Fixed:
Credit Where Due:
Does this change contain code from or inspired by another project?
If "Yes," did you notify that project's maintainers and provide attribution?
Requirements:
Notes: