-
Notifications
You must be signed in to change notification settings - Fork 13
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
Added regression test scheduler #39
Conversation
Codecov ReportBase: 66.62% // Head: 66.71% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #39 +/- ##
==========================================
+ Coverage 66.62% 66.71% +0.08%
==========================================
Files 70 70
Lines 7871 7871
Branches 1811 1811
==========================================
+ Hits 5244 5251 +7
+ Misses 2276 2268 -8
- Partials 351 352 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
tests/test_scheduler.py
Outdated
assert len(task_pending) == 1 | ||
assert context.scheduler.job_allocations[jobs[0].name].status == Status.RUNNING | ||
|
||
# First job complete and the second job can be schedulated (timeout parameter useful if a deadlock occurs) |
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.
completes, scheduled
tests/test_scheduler.py
Outdated
tmp_directory=100, | ||
) | ||
|
||
# inject custom connector to manipolate available resources |
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.
manipulate
tests/test_scheduler.py
Outdated
tmp_directory=100, | ||
) | ||
|
||
# Inject custom connector to manipolate available resources |
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.
manipulate
tests/test_scheduler.py
Outdated
async def test_multi_env(context: StreamFlowContext): | ||
"""Test scheduling two jobs on two different environments.""" | ||
|
||
# Inject custom connector to manipolate available resources |
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.
manipulate
tests/test_scheduler.py
Outdated
|
||
@pytest.mark.asyncio | ||
async def test_multi_targets_one_job(context: StreamFlowContext): | ||
"""Test scheduling one jobs with two targets: Local and Docker Image. The job will be schedulated in the first because is free""" |
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.
scheduled
No description provided.