Skip to content
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

Merged
merged 7 commits into from
Jan 13, 2023

Conversation

LanderOtto
Copy link
Collaborator

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jan 12, 2023

Codecov Report

Base: 66.62% // Head: 66.71% // Increases project coverage by +0.08% 🎉

Coverage data is based on head (d1aff0e) compared to base (0f8f0ec).
Patch has no changes to coverable lines.

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     
Impacted Files Coverage Δ
streamflow/data/aiotarstream.py 37.94% <0.00%> (+0.12%) ⬆️
streamflow/deployment/connector/container.py 60.26% <0.00%> (+0.26%) ⬆️
streamflow/scheduling/scheduler.py 76.37% <0.00%> (+3.93%) ⬆️

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.
📢 Do you have feedback about the report comment? Let us know in this issue.

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

completes, scheduled

tmp_directory=100,
)

# inject custom connector to manipolate available resources
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manipulate

tmp_directory=100,
)

# Inject custom connector to manipolate available resources
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manipulate

async def test_multi_env(context: StreamFlowContext):
"""Test scheduling two jobs on two different environments."""

# Inject custom connector to manipolate available resources
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manipulate


@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"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

scheduled

tests/test_scheduler.py Outdated Show resolved Hide resolved
tests/test_scheduler.py Outdated Show resolved Hide resolved
@GlassOfWhiskey GlassOfWhiskey merged commit 4d156b8 into alpha-unito:master Jan 13, 2023
@LanderOtto LanderOtto deleted the test_scheduler branch February 4, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants