-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛 Fixes failing test in master #3094
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3094 +/- ##
========================================
+ Coverage 79.6% 80.9% +1.3%
========================================
Files 716 716
Lines 30922 30924 +2
Branches 4035 4035
========================================
+ Hits 24618 25044 +426
+ Misses 5405 5004 -401
+ Partials 899 876 -23
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Kudos, SonarCloud Quality Gate passed!
|
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.
thanks for fixing this
@@ -409,6 +409,10 @@ async def _run_scheduler_task(self) -> None: | |||
settings: DynamicServicesSchedulerSettings = ( | |||
self.app.state.settings.DYNAMIC_SERVICES.DYNAMIC_SCHEDULER | |||
) | |||
logger.debug( | |||
"dynamic-sidecars observation interval %s", | |||
settings.DIRECTOR_V2_DYNAMIC_SCHEDULER_INTERVAL_SECONDS, |
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.
question: is this not already printed out at the start of director-v2??
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.
No this one was not printed.
@@ -500,14 +504,13 @@ async def setup_scheduler(app: FastAPI): | |||
|
|||
async def shutdown_scheduler(app: FastAPI): | |||
scheduler: DynamicSidecarsScheduler = app.state.dynamic_sidecar_scheduler | |||
## FIXME: somehow this does not work | |||
# assert isinstance(scheduler, DynamicSidecarsScheduler) # nosec | |||
assert isinstance(scheduler, DynamicSidecarsScheduler) # nosec | |||
|
|||
# FIXME: PC->ANE: if not started, should it be shutdown? |
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.
maybe have a look at this FIXME too?
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 left it in there for a later review.
The action pointed out is already being handled by the function.
What do these changes do?
After an
httpx
upgrade a test started failing due to timing timing/concurrency. Making sure all the pending requests finish before closing the client.Related issue/s
How to test
Checklist