Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: 1.0 (worker, engine, cli, runtime) #592

Merged
merged 138 commits into from
Feb 15, 2024
Merged

Release: 1.0 (worker, engine, cli, runtime) #592

merged 138 commits into from
Feb 15, 2024

Conversation

josephjclark
Copy link
Collaborator

@josephjclark josephjclark commented Feb 8, 2024

The 1.0 release across the stack includes a number of polishes, tidyups, refactorings and renamings.

This release uses a new data structure for wofklows in the CLI. Old structures are still supported, but you'll see log output like this:

image

Closes #259

This cause problems with the worker because errors get  flattened to {}, and also we have to double parse.

Now the logger will just emit whatever it logged to whatever the log emmiter is, so JSON stays as JSON. Which is good, but it no longer guarantees it'll be serializable
The logger always sends raw json, but the log message is stringified by the engine, and rebuilt by the worker before sending to lightning

this last bit needs work but its better
They were neglecting to parse the strings sent out by the new json logger
It was secretly failing under the hood
josephjclark and others added 27 commits February 14, 2024 14:37
Worker: Better error handling for credential errors
* worker: start trying to verify the attempt token

* worker: roughly verify the run token

* mock: generate a real jwt for runs

* mock: tweak key handling

* worker: verify the run token

* changesets

* todo

* worker: support public key from env

* worker: better cli handling

* error handling

* worker: destroy server if run token is invalid

* test: add integration test for errors

* tests: add keys to more tests

* test: fix privateKey

* tidyups

* more tidyups
1.7.11 introduces a compatability issue
If a server is destroyed before the lightning connection returned, the workloop will still fire even if the server is technically destroyed
@josephjclark josephjclark marked this pull request as ready for review February 15, 2024 15:48
@josephjclark josephjclark merged commit 7554a34 into main Feb 15, 2024
6 checks passed
@josephjclark josephjclark deleted the release/1-0 branch February 15, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

CLI 1.0.0
3 participants