-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Pipelines Parent Scaler not scaling (2.10) #4387
Comments
Hi, |
Well, I know what it is, I just don't know why it is :) It's adding $top to the url query. Will investigate further as it only seems to be affected the Its an interesting one. If you have access to AzDO can you just execute the jobrequests api with and without the $top query. Even the count changes (and not in line with top). I'd be interested if you see it too. Ideally if you can have a job pending with no agent to run it also shows the matchedAgent difference. |
@JorTurFer not sure what we want to do here. It seems to me like the quick and dirty fix is to exclude Any thoughts? Basically without the patch 2.10 is unusable if using parent |
Hi, I added the |
I'm writing a bunch of e2e tests at the moment to handle the more extreme cases using demands and parent type scalers. We should probably aim to coincide with that |
Ok great, so can you add the condition? |
Sure, I can put the hotfix in. @JorTurFer are you ok with that as an interim? |
Related: #4374 |
What meta type are you using? demands, parent or none? I haven't done any volume testing on it myself as I use parent and it won't load any jobs with that |
I use demands type |
In one agent pool, I have several agent types. so I use the introduced in the 2.10 feature |
for some reason there is no But it's weird, it stopped working a few hours ago, it worked like a charm before |
I wonder if it’s the top query flipping the response like with parent. I’ll look further into it tomorrow |
Let me know @Eldarrin if you need anything from our side to enable the new e2e scenarios |
I think so, the top is a new feature for huge cases, but if the API isn't compatible we cannot do anything... Ideally, we could check the API and somehow we could solve this gap, but IDK if we can do it. @tomkerkhove @v-shenoy , could you ask internally if there is any way to achieve this? |
The current e2e only deals with the base scale scenario so I’m rewriting it to a more comprehensive suite. The problem is around ADO slowness when testing /sigh . I’m hoping to get the new suite in the next day of so and retest against 2.9 and 2.10 to check for other scenarios that may need remediation. The only additions should be another pipeline and env which I’ll stick into test-tools and a new image type for the ado agent. |
@JorTurFer If the |
I understood that @Eldarrin wanted to add the $top in case of not using demands. Let's give some time 😄 |
I've got a commit in, needs more work which I'll do tomorrow, but at least you have a start point if I drop off the face of the earth :) luckily, the tests proved it was only |
Should be ready to run e2e on azure_pipelines and azure_pipelines_adv. Just need to mod your ado setup as per test-tools and build an adv agent or just use mine for now. |
kedacore#4387) (kedacore#4401) Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> Co-authored-by: Andy Ward <mortx@toothless.eldarrin.io>
kedacore#4387) (kedacore#4401) Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> Co-authored-by: Andy Ward <mortx@toothless.eldarrin.io> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
…<Jorge_turrado@hotmail.es> Co-authored-by: Andy Ward <mortx@toothless.eldarrin.io> Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com> Co-authored-by: Zbynek Roubalik <zroubalik@gmail.com> Co-authored-by: Eldarrin <32762846+Eldarrin@users.noreply.github.com> Co-authored-by: Eugene Lugovtsov <34510252+EugeneLugovtsov@users.noreply.github.com> fix(aws-sqs): Respect `scaleOnInFlight` value (#4358) fix odd number of arguments passed as key-value pairs for logging (#4369) fix: Azure Pipelines Scaler uses correct endpoint when demands are set (#4387) (#4401) fix: respect all required demands in azure pipeline scaler (#4405) fix: Allow to remove the finalizer even if the ScaledObject isn't valid (#4397) * Drop a transitive dependency on bou.ke/monkey (#4366) Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * fix(aws-sqs): Respect `scaleOnInFlight` value (#4358) Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * chore: update supported versions in the welcome message (#4360) Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * fix odd number of arguments passed as key-value pairs for logging (#4369) Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * fix: Azure Pipelines Scaler uses correct endpoint when demands are set (#4387) (#4401) Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es> Co-authored-by: Andy Ward <mortx@toothless.eldarrin.io> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * fix: respect all required demands in azure pipeline scaler (#4405) Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * fix: Allow to remove the finalizer even if the ScaledObject isn't valid (#4397) Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> * update changelog Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> --------- Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com> Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl> Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es> Co-authored-by: Zbynek Roubalik <zroubalik@gmail.com> Co-authored-by: Eldarrin <32762846+Eldarrin@users.noreply.github.com> Co-authored-by: Andy Ward <mortx@toothless.eldarrin.io> Co-authored-by: Eugene Lugovtsov <34510252+EugeneLugovtsov@users.noreply.github.com> Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com>
Hi @Eldarrin |
HI @JorTurFer
This should be set to use your version of the image. |
Would you open a PR with the change? (as you have done all the work and maybe you want to get the commit ownership) |
Submitted #4641 :) |
Thanks a lot! 🙇 |
No problem, time for a beer 🍺 |
Well deserved, thanks! |
Report
Just upgraded from 2.9 to 2.10 and scaling has stopped working. Will work it out and update but putting a pin here for now.
Expected Behavior
Pipelines to Scale
Actual Behavior
Pipelines don't scale
Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.10.0
Kubernetes Version
1.25.5
Platform
Microsoft Azure
Scaler Details
azure-pipelines
Anything else?
When calling */jobrequests?top=nnn returns a different api result to */jobrequests. For instance, different number of returns and no matchedAgent field. But json is sufficiently similar to not fail marshalling.
The text was updated successfully, but these errors were encountered: