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

dependency relationship unittests #44

Open
opalmer opened this issue Jan 26, 2014 · 0 comments
Open

dependency relationship unittests #44

opalmer opened this issue Jan 26, 2014 · 0 comments

Comments

@opalmer
Copy link
Member

opalmer commented Jan 26, 2014

Issue by opalmer from Thursday Sep 12, 2013 at 03:10 GMT
Originally opened as opalmer/deprecated-pyfarm-models#15


The existing unittests ensure basic functionality, types, validation, and some forms of basic relationships. Jobs and tasks however have much more complex relationships that should be tested to ensure that:

  • results can be replicated and edge cases are known
  • operate in the same way between database types
  • have a reasonable performance window

Some general job relationships to test include:
Linear (one to one)

A -> B -> C

Tree (one to many)

A|
   ---- E
B|         \
             ---- G
C|         /
   ---- F
D|

Circular (fails)

    A
 /     \
C       D
 \    /
    E

Though not as complex, tasks should also allow dependencies on tasks in other jobs (though this may be a separate issue eventually).

Finally, while constructing queries priority should also play into the final ordering of the dependencies so those managing the queue have some extra control.

@guidow guidow self-assigned this Feb 24, 2014
@opalmer opalmer removed this from the 0.7.0 milestone May 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants