Skip to content

Switch session url to port - #4285

Merged
helderco merged 3 commits into
dagger:mainfrom
sipsma:url-to-port
Jan 4, 2023
Merged

helderco merged 3 commits into
dagger:mainfrom
sipsma:url-to-port

Conversation

@sipsma

@sipsma sipsma commented Jan 3, 2023

Copy link
Copy Markdown
Contributor

Signed-off-by: Erik Sipsma [email protected]

Related to: #3830 (see DAGGER_SESSION_PORT or DAGGER_SESSION_URL? section of issue description)

Slight tweak which results in our SDKs only ever being expected to connect over 127.0.0.1

@marcosnils marcosnils left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@helderco

helderco commented Jan 3, 2023 •

Copy link
Copy Markdown
Contributor

Heads up, I'm going to update the Python part.

  • ConnectParams is meant to reflect the JSON that's read from stdout in the beginning of the session
  • Validation can now be simplified since only a positive int is required
  • The final URL is only really needed in Session, no need to validate that
  • Test conditions need to be updated

@helderco helderco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

:shipit:

@sipsma sipsma added this to the Engine v0.3.8 milestone Jan 4, 2023
@sipsma

sipsma commented Jan 4, 2023

Copy link
Copy Markdown
Contributor Author

Will wait for a review on the NodeJS code from @slumbering or @TomChv before merge

@slumbering slumbering left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM in the nodejs side.

@helderco
helderco merged commit 703c34b into dagger:main Jan 4, 2023
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.

4 participants