-
Notifications
You must be signed in to change notification settings - Fork 708
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
Assets binary data changes dependng on OS and / or architecture / nodejs version #2796
Comments
I'll try to get a version where at least nodejs major is the same, but due to some internal restrictions I can't run that right now |
That data is just base 64 encoded deflate compressed JSON - if you decompress it, is it the same? I wonder if Node's default compression settings have changed |
Going to guess it isn't Node version -- I don't have a computer with another architecture to test on, but Node 18, 20, and 23 all produce identical results on my Fedora box. |
I've decompressed both and compared the json, and it is exactly the same. So my guess is, the compression is creating different results on the different systems |
https://stackoverflow.com/a/26521451/7186598 implies that switching to using deflate directly rather than gzip might solve this, if you patch |
I have just tested this, and can confirm: Changing to |
thanks for the quick fix of this :) |
Search terms
Expected Behavior
No matter on what machine I run typedoc, the output with the same input should always be the same.
Actual Behavior
Typedoc produces different asset output, depending on which machine its run on. The following things produce different output:
assets/hierarchy.js
thewindow.hierarchyData
assets/navigation.js
window.navigationData
assets/search.js
window.searchData
I'm not yet sure if its a OS and / or an architecture or nodejs version difference that causes this difference. In our case a developer runs typedoc on their Apple Silicon Macbook, and get one version of the files mentioned above. The CI system which uses a linux container on x86 gets another output.
In our case we block deployments that change checked in files. I added the environment for both variants on the bottom.
Steps to reproduce the bug
Run typedoc with the following in different systems
Environment
Developer Macbook
0.27.2
5.7.2
v20.17.0
CI System
0.27.2
5.7.2
v18.20.5
The text was updated successfully, but these errors were encountered: