-
Notifications
You must be signed in to change notification settings - Fork 91
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
Stop using shell output redirects #1515
Conversation
…pidly called state; I'll fix that in cumulus soon too)
Thank you @JoshOrndorff for this. There are more places where the outputs redirect is used and I think a more careful search and discovery of those is needed. I agree with the approach ( cc @pepoviola what do you think), but all of those should be in the same PR IMO. https://github.com/paritytech/zombienet/blob/main/javascript/packages/orchestrator/src/paras.ts#L239-L242 |
Are there build instructions anywhere so that I can build zombienet myself from my branch? It is hard to contribute to it when I can only wait for a release to test my changes. |
Hey @JoshOrndorff, sorry about the delay. I saw in your pr that you are now using But, as you suggest using the new method could be better since others that use Thanks! and again sorry about the delayed answer. |
Hey @JoshOrndorff, Thanks for open this Again, thanks for your feedback and contribution!! 🙌 |
Needing to use If you don't want this PR, that's your call. Each little annoyance that you don't fix is a more reason to find/make/hope for a better tool. |
Hey @JoshOrndorff, I understand what you say about Thx! |
Actually, this is even more important than I realized. There is a bug in Substrate Node Template for a while now where it occasionally prints Although I guess you could argue as well that the But still, this seems like a footgun that is worth avoiding. And also, just for the record, my collator is exactly the stock cumulus collator. The thing that is unusual about it is that it doesn't use FRAME. |
Hi @JoshOrndorff, thanks for pointing this issue. In a second thought, This improvement make total sense and I will add the fixes for other collators. Then in a follow up pr I will dig the same issue for building the spec. |
Hi @JoshOrndorff, this is already fixed and included in the latest version |
This tiny PR changes the way that genesis wasm and head data are generated very slightly.
In the old days, using the shell redirect was the only way to get the file you wanted. But later cumulus added the ability to provide an output file argument and just fallback to printing directly to stdout.
I prefer using the argument because sometimes I find myself needing to print debugging output when actually generating that data, and I don't want my debugging output being redirected to the generated file. (As a concrete example, here is a current PR where I'm having this problem, and it has happened in the past too.)