Uploaded image for project: 'Pegasus'
  1. Pegasus
  2. PM-1819 5.0.3 Python API Improvements
  3. PM-1834

ensure that yaml is serialized in a deterministic manner

XMLWordPrintable

      In the API, dict (not OrderedDict) and set are used in various places. When we serialize the objects to YAML, they can be written out in an indeterministic manner. When comparing yaml files, produced by the same workflow generator, this can make it difficult.

      https://github.com/pegasus-isi/pegasus/blob/c2ef72677d61a3a286409c6995a057d3c7dbde45/packages/pegasus-api/src/Pegasus/api/workflow.py#L1868-L1878 <-- try setting object_pairs_hook=OrderedDict

      Where sets are used, use an OrderedDict instead.

            Assignee:
            mayani Rajiv Mayani
            Reporter:
            tanaka Ryan Tanaka (Inactive)
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: