selinon / selinonlib

*depracated* CLI interface for Selinon with a pack of prepared utilities for a user
https://selinonlib.readthedocs.io/
Other
9 stars 3 forks source link

Detect dead paths in YAML configuration #10

Closed fridex closed 6 years ago

fridex commented 7 years ago

For the following configuration:

tasks:
  - name: A
    import: foo.bar

  - name: B
    import: foo.bar

  - name: C
    import: foo.bar

  - name: D
    import: foo.bar

flows:
  - flow1

flow-definitions:
    - name: flow1
      edges:
        - from:
          to: A
        - from: A
          to: B
        - from:
            - B
            - C
          to: D
        - from: D
          to: C

selinonlib should report error as C and D will never be run due to cyclic dependencies. We should examine attainability of graph nodes in YAML config file.

fridex commented 6 years ago

Replaced with https://github.com/selinon/selinon/issues/90