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

fix: live tunnel arch issue #4064

Merged
merged 10 commits into from
Jan 19, 2022
Merged

fix: live tunnel arch issue #4064

merged 10 commits into from
Jan 19, 2022

Conversation

lukasholzer
Copy link
Collaborator

@lukasholzer lukasholzer commented Jan 17, 2022

πŸŽ‰ Thanks for submitting a pull request! πŸŽ‰

Summary

Fixes #3561

This will now stop working for debian arm64 so we need to build the image first before merging.

The matching PR for cross compiling the different CPU architectures https://github.com/netlify/live-tunnel/pull/112

For us to review and ship your PR efficiently, please perform the following steps:

  • Open a bug/issue before writing your code πŸ§‘β€πŸ’». This ensures we can discuss the changes and get feedback from everyone that should be involved. If you`re fixing a typo or something that`s on fire πŸ”₯ (e.g. incident related), you can skip this step.
  • Read the contribution guidelines πŸ“–. This ensures your code follows our style guide and
    passes our tests.
  • Update or add tests (if any source code was changed or added) πŸ§ͺ
  • Update or add documentation (if features were changed or added) πŸ“
  • Make sure the status checks below are successful βœ…

A picture of a cute animal (not mandatory, but encouraged)

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Jan 17, 2022
@lukasholzer lukasholzer changed the title Fix/live tunnel arch issue fix: live tunnel arch issue Jan 17, 2022
@github-actions
Copy link

github-actions bot commented Jan 17, 2022

πŸ“Š Benchmark results

Comparing with 7ec8cdc

Package size: 355 MB

⬆️ 0.00% increase vs. 7ec8cdc

^  448 MB  448 MB  448 MB  448 MB  448 MB  448 MB  448 MB  448 MB  448 MB  448 MB  448 MB  448 MB         
β”‚   β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”    β”Œβ”€β”€β”          
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |          
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |          
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |   355 MB 
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    β”Œβ”€β”€β”  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
β”‚   |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |  |    |β–’β–’|  
└───┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴────┴──┴──>
    T-12    T-11    T-10    T-9     T-8     T-7     T-6     T-5     T-4     T-3     T-2     T-1      T    
Legend

@@ -1,13 +1,15 @@
// @ts-check
const path = require('path')
const process = require('process')
const { stringify } = require('querystring')
Copy link
Contributor

Choose a reason for hiding this comment

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

[sand] What are your thoughts on using new URL() and url.searchParams.set() instead?
This is mostly equivalent, except it uses the DOM API instead of Node.js core API. What are your thoughts on this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yea why not I don't have a preference to be honest -> is there any benefit?

Copy link
Contributor

@ehmicky ehmicky Jan 17, 2022

Choose a reason for hiding this comment

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

If we had more code to share with the front-end, it would be better. And Node.js has been moving in that direction lately of using more and more the DOM API, as opposed to to its own core Node.js modules (URI, AbortSignal, EventTarget, globalThis, ES modules, Blob, ReadableStream/WritableStream/TransformStream, Worker, Web Crypto, performance, structuredClone), which seems a good thing at a higher level, and is also closer to the direction Deno is heading.

However, this is more of a conceptual benefit in this case, since we do not intend to run this file anywhere but on a terminal in this case, so either way could work. πŸ‘

Copy link
Contributor

Choose a reason for hiding this comment

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

I just realized this too: querystring is marked as "legacy" in the Node.js documentation.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'll change it for you ;)

ehmicky
ehmicky previously approved these changes Jan 17, 2022
bin/run Outdated Show resolved Hide resolved
erezrokah
erezrokah previously approved these changes Jan 18, 2022
Copy link
Contributor

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

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

@ehmicky
Copy link
Contributor

ehmicky commented Jan 18, 2022

https://github.com/netlify/cli/pull/4064/files#r786137881 was more of a side note, please feel free to dismiss! :)

@lukasholzer
Copy link
Collaborator Author

@erezrokah who is the best one to review the matching PR in the live tunnel repo? netlify/live-tunnel#112

@lukasholzer
Copy link
Collaborator Author

just tried the new binary for arm64 on my m1 mac and it works πŸ₯³

@lukasholzer lukasholzer added the automerge Add to Kodiak auto merge queue label Jan 18, 2022
@lukasholzer
Copy link
Collaborator Author

@charliegerard I hope it works now on the raspberry pi ;)

I added now following CPU architectures: https://github.com/netlify/live-tunnel-client/releases/tag/v0.2.10

@charliegerard
Copy link
Contributor

omg thank you so much for working on it!! πŸ˜ƒ πŸ™Œ Right on time for a talk I have to give next week πŸ₯³ I'll test it a bit later today!

@kodiakhq kodiakhq bot merged commit 41c2fdf into main Jan 19, 2022
@kodiakhq kodiakhq bot deleted the fix/live-tunnel-arch-issue branch January 19, 2022 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Add to Kodiak auto merge queue type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"netlify dev --live" error
4 participants