Skip to content

Commit

Permalink
Reimplement workflow parser (drops HCL syntax)
Browse files Browse the repository at this point in the history
Reimplement parser assuming no backwards-compatibility for HCL. This new
implementation makes use of pykwalify and python-box to significantly
simplify the parsing and validation of workflow specification, as all of
this is done by these libraries instead of the Popper codebase.

One breaking change is that now step attributes 'runs', 'args', and
'secrets' are now assumed to be list of strings, whereas before these
could be either a string or list of strings.
  • Loading branch information
ivotron committed May 15, 2020
1 parent 021ba19 commit ae7daa8
Show file tree
Hide file tree
Showing 15 changed files with 146 additions and 1,601 deletions.
879 changes: 131 additions & 748 deletions cli/popper/parser.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"click==7.1.2",
"docker==4.2.0",
"GitPython==3.1.0",
"pyhcl==0.4.0",
"pykwalify==1.7.0",
"python-box==4.2.3",
"pyyaml==5.3.1",
"spython==0.0.79",
Expand Down
36 changes: 0 additions & 36 deletions cli/test/fixtures/a.workflow

This file was deleted.

28 changes: 0 additions & 28 deletions cli/test/fixtures/a.yml

This file was deleted.

49 changes: 0 additions & 49 deletions cli/test/fixtures/b.workflow

This file was deleted.

39 changes: 0 additions & 39 deletions cli/test/fixtures/b.yml

This file was deleted.

10 changes: 0 additions & 10 deletions cli/test/fixtures/missing_dependency.workflow

This file was deleted.

7 changes: 0 additions & 7 deletions cli/test/fixtures/missing_dependency.yml

This file was deleted.

11 changes: 0 additions & 11 deletions cli/test/fixtures/ok.workflow

This file was deleted.

4 changes: 0 additions & 4 deletions cli/test/fixtures/ok.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions cli/test/fixtures/substitutions.workflow

This file was deleted.

14 changes: 0 additions & 14 deletions cli/test/fixtures/substitutions.yml

This file was deleted.

9 changes: 0 additions & 9 deletions cli/test/fixtures/wf_1.yml

This file was deleted.

56 changes: 0 additions & 56 deletions cli/test/test_cmd_scaffold.py

This file was deleted.

0 comments on commit ae7daa8

Please sign in to comment.