-
Notifications
You must be signed in to change notification settings - Fork 70
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
fix worker-queue update #1531
fix worker-queue update #1531
Conversation
assert.Equal(t, int(mockWorkerQueueDefaultOptions.MaxWorkers.Default), actualQueue.MaxWorkerCount) | ||
}) | ||
t.Run("sets default worker concurrency for queue if user did not provide it", func(t *testing.T) { | ||
actualQueue := SetWorkerQueueValues(10, 150, 0, mockWorkerQueue, mockWorkerQueueDefaultOptions) | ||
actualQueue := SetWorkerQueueValues(10, 150, 0, mockWorkerQueue, mockWorkerQueueDefaultOptions, mockMachineOptions) |
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.
for this test are workerQueueDefaultOptions.WorkerConcurrency.Default
and machineOptions.Concurrency.Default
the same value so it wasn't caught?
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.
I don't think if they were different values it would be caught. workerQueueDefaultOptions.WorkerConcurrency.Default
is only used by hybrid and machineOptions.Concurrency.Default
. But SetWorkerQueueValues was setup assuming that they both use workerQueueDefaultOptions.WorkerConcurrency.Default
and the tests were setup to reflect that. Just need to make sure that SetWorkerQueueValues
uses mockMachineOptions
for hosted deployments which the tests do now
* fix worker-queue update * fix lint * fix test * fix tests
Description
Worker queue update command was using worker concurrency default values for hybrid when it should be using the value for hosted.
🎟 Issue(s)
🧪 Functional Testing
manual testing
📸 Screenshots
📋 Checklist
make test
before taking out of draftmake lint
before taking out of draft