Commit Graph

19381 Commits

Author SHA1 Message Date
chris meyers
244cf819cc more efficient graph processing
* Getting parent nodes from child was inefficient. Optimize it with a
hash table like we did for the getting of children.
* Getting leaf nodes was inefficient. Optimize it like we did getting
root nodes. A node is assumed to be a leaf node until it gets a child.
2018-11-16 09:18:06 -05:00
mabashian
df6c453c86 Fix long name tooltip. Fixed bug adding new node before finishing adding new link.
Fixed template list column layout.  Ensure that we're getting 200 workflow nodes per GET request
2018-11-16 09:18:06 -05:00
chris meyers
62e5140bb7 remove print statements 2018-11-16 09:18:06 -05:00
chris meyers
26056ddaa6 optimization fix
* WorkflowDAG accepts workflow job template and workflow jobs for which
to build a graph out of the nodes. The optimized query for each is
different. This changeset adds the differing queries for a workflow job.
2018-11-16 09:18:06 -05:00
chris meyers
d6bf2aeca9 optimize cycle detection 2018-11-16 09:18:06 -05:00
mabashian
52c3211a9f Fixes for post-rebase bugs 2018-11-16 09:18:06 -05:00
chris meyers
0675f2559f bump migration 2018-11-16 09:18:06 -05:00
mabashian
d97a0e415f Fixed serveral bugs including credential prompting. Added logic to bring links/nodes to the forefront when you hover over them in case there's some overlap 2018-11-16 09:18:06 -05:00
mabashian
4917046e47 First pass at implementing better node placement in the workflow graph 2018-11-16 09:18:06 -05:00
mabashian
3b05936eec Implements workflow convergence without proper layout 2018-11-16 09:18:06 -05:00
chris meyers
f5aa8a7f11 more flake8 2018-11-16 09:18:06 -05:00
chris meyers
29b9d2be2b try2 at the devil flake8 2018-11-16 09:18:06 -05:00
chris meyers
47eece0cce fix flake8 anyway I can 2018-11-16 09:18:06 -05:00
chris meyers
bb128b5800 remove workflow test
* We now handle workflows with jobs that have errored. We treat them the
same as a failure result. Before, we would abort the workflow when we
encountered an error.
2018-11-16 09:18:06 -05:00
chris meyers
44b19245c2 handle job error state in convergence 2018-11-16 09:18:06 -05:00
chris meyers
7b751ea2ff handle edge case ring cycle 2018-11-16 09:18:06 -05:00
chris meyers
ea80e244b9 remove relationship in view if cycle detected 2018-11-16 09:18:06 -05:00
chris meyers
5caff392eb fixup migrations 2018-11-16 09:18:06 -05:00
chris meyers
db8cafdd2c rework wf cycle detection for convergence 2018-11-16 09:18:06 -05:00
chris meyers
6e310fdb9c cycle detection when multiple parents 2018-11-16 09:18:06 -05:00
mabashian
f285186f66 Completed work necessary to support editing workflow links and nodes separately. Added hover and tooltip to links 2018-11-16 09:16:41 -05:00
mabashian
eebff1f855 Decouple editing a wf node with editing a node link 2018-11-16 09:16:41 -05:00
chris meyers
207441bd14 update docs 2018-11-16 09:16:41 -05:00
chris meyers
670a751647 correctly name migration to align with 3.4.0 2018-11-16 09:16:41 -05:00
chris meyers
9493f50ccf merge artifacts deterministically 2018-11-16 09:16:41 -05:00
chris meyers
9c0dc27cf2 prevent job launching twice 2018-11-16 09:16:41 -05:00
chris meyers
f72d6b9554 flake8 2018-11-16 09:16:41 -05:00
chris meyers
07461eb62a fix workflow finish state detector
* Take into account the new do_not_run field when finding if a workflow
is finished. If do_not_run is True then the node is considered finished.
2018-11-16 09:16:41 -05:00
chris meyers
2badb4fdbb cleaner code 2018-11-16 09:16:41 -05:00
chris meyers
589862cba4 save state 2018-11-16 09:16:41 -05:00
chris meyers
e60f4d0980 all parents should finish before start child 2018-11-16 09:16:41 -05:00
chris meyers
84f5d2687c short circuit performance optimization 2018-11-16 09:16:41 -05:00
chris meyers
e7057ce23a stop DNR propogation on always path
* This makes sure DNR propogation stops when a job is successful, down
an always path
2018-11-16 09:16:41 -05:00
chris meyers
d060bd441b correct stop DNR propogation
* If a child has a parent that is not in the finished state then do not
propogate the DNR to the child in question.
* If a parent is in a finished state; do not propogate the DNR to the
child if the path to the child is traversed (based on the parent job
status).
2018-11-16 09:16:41 -05:00
chris meyers
92aeb082ed satisfy flake8 2018-11-16 09:16:41 -05:00
chris meyers
73feeea42b always find and mark dnr nodes 2018-11-16 09:16:41 -05:00
chris meyers
eec44b2269 Revert "mark dnr field read only"
This reverts commit 3dbc52d91223167683fd01174222bd6c22813dbd.

Workflow Job Nodes are read only already
2018-11-16 09:16:40 -05:00
chris meyers
62a5512185 update debug dot graph to output dnr data 2018-11-16 09:16:40 -05:00
chris meyers
8a62580667 mark dnr field read only 2018-11-16 09:16:40 -05:00
chris meyers
a76ecd278a remove dnr field from jt wf node 2018-11-16 09:16:40 -05:00
chris meyers
a541efeaad only visit nodes once for dnr 2018-11-16 09:16:40 -05:00
chris meyers
ded557cc0a code cleanup 2018-11-16 09:16:40 -05:00
chris meyers
c18bd274c9 support workflow convergence nodes
* remove convergence restriction in API
* change task manager logic to be aware of and support convergence nodes
2018-11-16 09:16:40 -05:00
softwarefactory-project-zuul[bot]
9b992c971e Merge pull request #2672 from AlanCoding/sliceanator
Fix bug with non-sliced JT job spawn

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-11-15 20:16:19 +00:00
softwarefactory-project-zuul[bot]
e0d59766e0 Merge pull request #2696 from AlanCoding/bulk_del_inv
Pre-delete bulk delete related, fix parallel request conflicts

Reviewed-by: Alan Rominger <arominge@redhat.com>
             https://github.com/AlanCoding
2018-11-15 19:58:49 +00:00
AlanCoding
a9d88f728d Pre-delete bulk delete related, fix parallel request conflicts 2018-11-15 11:39:48 -05:00
softwarefactory-project-zuul[bot]
e24d63ea9a Merge pull request #2665 from ryanpetrello/fips
add support for running awx w/ FIPS enabled

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-11-15 15:18:07 +00:00
softwarefactory-project-zuul[bot]
1833a5b78b Merge pull request #2667 from saito-hideki/issue/admin_with_docker-compose
Fixed issue where admin_user and password change are not reflected

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-11-15 14:24:43 +00:00
softwarefactory-project-zuul[bot]
4213a00548 Merge pull request #2686 from AlanCoding/fast_workflows
Add task manager rescheduling hooks, de-duplication, lifecycle tests

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-11-15 14:19:09 +00:00
softwarefactory-project-zuul[bot]
7345512785 Merge pull request #2690 from ryanpetrello/ldap-long-name
truncate user first/last name if it exceeds 30 chars on LDAP auth

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
2018-11-14 22:29:43 +00:00