-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backend renaming (1.0 version bumps plus the lexicon) (#585)
* lexicon: start building a central lexicon of definitions * runtime: huge refactor of runtime core API * runtime: more refactoring * runtime: take initial state out of the execution plan * fix tests * runtime: changeset * runtime: extra type tweakings * runtime: readme * runtime: jobs -> steps (mostly) there are cases where job is more accurate and useful * cli: start refactoring towrads new runtime API Done a big chunk of execute but still a way to go * cli: basically get the CLI working again * cli: types * cli: fix a bunch of tests, update workflow parsing * cli: fix execute and compile tests * cli: more test fixes * fix more cli tests * cli: fix integration tests * cli: tidy * runtime: remove strict mode * remove strict mode * cli: default workflow name to the file name * runtime: tweak log output * cli: remove log * cli: types * docs * deploy: adjust logging * engine: update types * engine: update names and types This is 90% of the basic rename done. Tests may even pass * runtime: male statePropsToRemove a system options, rather than workflow specific If a workflow wants to remove props, it'll add an fn bock * engine: restore statePropsToRemove tests * mock: update to lexicon * worker: start mapping to lexicon. Handled run-> plan conversion * worker: typings * worker: fix all tests * engine: types * worker: fix cheeky test somehow missed it last time * tests: fix cli tests * worker: update test * package lock * tests: update test * changesets and housekeeping * more housekeeping * engine: tweak test * runtime: tweak error messages * worker: stricter type checkign on tests * fix test * typing in worker tests * worker: update channel mock * lexicon: docs * Run -> LightningPlan * version bumps for logger and mock * Send worker versions (#593) * worker: send worker and API versions to Lightning * lexicon: fix API_VERSION export
- Loading branch information
1 parent
909cf3e
commit 86dd668
Showing
186 changed files
with
5,275 additions
and
4,813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
'@openfn/cli': major | ||
--- | ||
|
||
The 1.0 Release of the CLI updates the language and input of the CLI to match the nomenclature of Lightning. | ||
|
||
See the readme for details of the new terminology. | ||
|
||
- Add support for execution plans | ||
- Deprecate old workflow format (old workflows are supported and will be automatically converted into the new "execution plans") | ||
- Update terminology across the codebase and docs | ||
- Remove strict mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@openfn/deploy': patch | ||
--- | ||
|
||
Log the result to success (not always) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@openfn/runtime': major | ||
--- | ||
|
||
The 1.0 release of the runtime updates the signatures and language of the runtime to match Lightning. It also includes some housekeeping. | ||
|
||
- Update main run() signature | ||
- Remove strict mode options | ||
- Integrate with lexicon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@openfn/engine-multi': major | ||
'@openfn/ws-worker': major | ||
--- | ||
|
||
The 1.0 release updates the language and input of the CLI to match the nomenclature of Lightning. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@openfn/lightning-mock': major | ||
'@openfn/logger': major | ||
--- | ||
|
||
Symbolic 1.0 version release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"id": "a", | ||
"expression": "x", | ||
"next": { "b": true } | ||
}, | ||
{ | ||
"id": "b", | ||
"expression": "x", | ||
"next": { "a": true } | ||
} | ||
] | ||
"workflow": { | ||
"steps": [ | ||
{ | ||
"id": "a", | ||
"expression": "x", | ||
"next": { "b": true } | ||
}, | ||
{ | ||
"id": "b", | ||
"expression": "x", | ||
"next": { "a": true } | ||
} | ||
] | ||
} | ||
} |
13 changes: 8 additions & 5 deletions
13
integration-tests/cli/test/fixtures/invalid-config-path.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"configuration": "does-not-exist.json" | ||
} | ||
] | ||
"workflow": { | ||
"steps": [ | ||
{ | ||
"configuration": "does-not-exist.json", | ||
"expression": "." | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"expression": "does-not-exist.js" | ||
} | ||
] | ||
"workflow": { | ||
"steps": [ | ||
{ | ||
"expression": "does-not-exist.js" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
{ | ||
"start": "nope", | ||
"jobs": [ | ||
{ | ||
"id": "x", | ||
"expression": "fn((state) => state)" | ||
} | ||
] | ||
"options": { | ||
"start": "nope" | ||
}, | ||
"workflow": { | ||
"steps": [ | ||
{ | ||
"id": "x", | ||
"expression": "fn((state) => state)" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"expression": "invalid.js" | ||
} | ||
] | ||
"workflow": { | ||
"steps": [ | ||
{ | ||
"expression": "invalid.js" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"id": "a", | ||
"expression": "x", | ||
"next": { "b": true, "c": true } | ||
}, | ||
{ | ||
"id": "b", | ||
"expression": "x", | ||
"next": { "c": true } | ||
}, | ||
{ | ||
"id": "c", | ||
"expression": "x" | ||
} | ||
] | ||
"workflow": { | ||
"steps": [ | ||
{ | ||
"id": "a", | ||
"expression": "x", | ||
"next": { "b": true, "c": true } | ||
}, | ||
{ | ||
"id": "b", | ||
"expression": "x", | ||
"next": { "c": true } | ||
}, | ||
{ | ||
"id": "c", | ||
"expression": "x" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"options": { | ||
"start": "b" | ||
}, | ||
"workflow": { | ||
"steps": [ | ||
{ | ||
"id": "a", | ||
"adaptor": "common", | ||
"expression": "fn((state) => { return state; });" | ||
}, | ||
{ | ||
"id": "b", | ||
"adaptor": "http", | ||
"expression": "get('https://jsonplaceholder.typicode.com/todos/1')" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
{ | ||
"jobs": [ | ||
{ | ||
"id": "a", | ||
"adaptor": "common", | ||
"expression": "fn((state) => { if (!state.data.items) { state.data.items = []; } return state; });", | ||
"next": { "b": true } | ||
}, | ||
{ | ||
"id": "b", | ||
"adaptor": "common", | ||
"expression": "fn((state) => { state.data.items.push('b'); return state; });", | ||
"next": { "c": true } | ||
}, | ||
{ | ||
"id": "c", | ||
"adaptor": "common", | ||
"expression": "fn((state) => { state.data.items.push('c'); return state; });" | ||
} | ||
] | ||
"workflow": { | ||
"steps": [ | ||
{ | ||
"id": "a", | ||
"adaptor": "common", | ||
"expression": "fn((state) => { if (!state.data.items) { state.data.items = []; } return state; });", | ||
"next": { "b": true } | ||
}, | ||
{ | ||
"id": "b", | ||
"adaptor": "common", | ||
"expression": "fn((state) => { state.data.items.push('b'); return state; });", | ||
"next": { "c": true } | ||
}, | ||
{ | ||
"id": "c", | ||
"adaptor": "common", | ||
"expression": "fn((state) => { state.data.items.push('c'); return state; });" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.