-
Notifications
You must be signed in to change notification settings - Fork 348
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: Add new files. #1006
chore: Add new files. #1006
Conversation
Thanks for adding, I thought those files were auto generated. |
I can try rebase and get the builds passing if you're busy @stephenh |
@dasco144 ah yeah! That would be great! I thought this would be a quick PR to update, but then the build checks didn't immediately pass, for a reason I couldn't immediately figure out, so haven't gotten around to digging into why. :-/ Thank you! |
I managed to fix the error in the lint check, but the build check I'm not so sure about. When I run /* eslint-disable */
export * from "./base";
export * from "./extension"; when I then run /* eslint-disable */
export * from "./base"; I can push this but I'm not sure why there is a difference here, as doesn't |
9fb6943
to
2cd7f37
Compare
@dasco144 for some reason rebuilding my ...I went down a rabbit hole thinking this was related to specific versions of Node, but actually the output is just non-deterministic. If I jut run This is pretty bizarre; I don't think I've heard had ts-proto produce non-deterministic output before. This is very annoying. :-/ |
This is the code that generates the index file: https://github.com/stephenh/ts-proto/blob/main/src/utils.ts#L47 I didn't write it ... I dunno, maybe each invocation of If you want to poke around, I'd appreciate it, but it seems really tricky... |
I'll see what I can find out 👍 Thanks for taking a look! |
I think I've found where this is happening. In You can see that output here, with some console logs as I was trying to find the cause: When I limit the integration tests to only 1, instead of running up to 5 in parallel, you get the same output every time. Not ideal as we lose a ton of speed when running through the integrations. I don't know protos and the binaries they generate that well, so I'm not 100% why they would be different. but my guess would be because of the import in the |
Oh shoot... @dasco144 that's a great find... So, seems like this is a synthetic problem created by the ~naive
Even if we could make this deterministic, my guess is that either order (a then b, or b then a) are technically wrong, and the test probably actually wants 🤔 I'm not sure the best way to teach We have this line:
Maybe we could do a
At the end of That might work, but making Honestly with the docker-hosted Dunno...it'd be amazing if you wanted to try either of these approaches (a small incremental hack to |
Well, took awhile to get to, but I finally re-did this PR in #1050, but following up on the idea of "maybe the *.bin approach has outlived its usefulness". Now we just directly invoke |
No description provided.