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

chore/avoid bespoke protocol #46

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

blast-hardcheese
Copy link
Contributor

Adjust implementations to just use the IR as the protocol.

Benefits:

  • grep across network boundaries
  • a real parser instead of having to reason across stream formatting
  • New payload types are supported without munging

Drawbacks:

  • Tighter coupling between the babel harness and impls
  • Larger payload size during tests
  • Implicitly leaking otherwise "unsupported" payloads (if present)

@blast-hardcheese blast-hardcheese changed the title Dstewart/chore/avoid bespoke protocol chore/avoid bespoke protocol Nov 15, 2024
@blast-hardcheese blast-hardcheese force-pushed the dstewart/chore/linting branch 10 times, most recently from ce0664d to f0fac96 Compare November 16, 2024 01:03
@blast-hardcheese blast-hardcheese force-pushed the dstewart/chore/avoid-bespoke-protocol branch from 4e57c85 to 7738f54 Compare November 16, 2024 01:05
Base automatically changed from dstewart/chore/linting to main November 19, 2024 05:37
@blast-hardcheese blast-hardcheese force-pushed the dstewart/chore/avoid-bespoke-protocol branch from 7738f54 to 7c208be Compare November 19, 2024 05:43
return JSON.parse(line);
} catch (e) {
// Sometimes docker injects this into the stream:
// {"hijack":true,"stream":true,"stdin":true,"stdout":true,"stderr":true}{"type": "invoke", ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wtf

@@ -13,7 +13,6 @@ import DockerModem from 'docker-modem';
import logUpdate from 'log-update';
import { PassThrough } from 'stream';
import {
serializeInvokeAction,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete this function from export site pls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants