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
Docfx generated contents are not stable across multiple executions #3155
Comments
@lextm , thanks for reporting the issue. Is ordering the only thing that changes from run to run? Could you help attach two |
I was noticing the same thing all the time, NetTopologySuite/NetTopologySuite.IO.GPX@d82241e is an example. After NetTopologySuite/NetTopologySuite.IO.GPX@a407093, the next 3 clean rebuilds in a row gave me the exact same content. |
NetTopologySuite/NetTopologySuite.IO.GPX@0e5d0c0 might be necessary too. |
In fact, there are other instability issues more complicated than this one. I noticed that for the same method, sometimes a parameter is generated correctly, and sometimes not. But as that's intermittent, I will report back once I find a way to constantly reproduce it. |
@airbreather A small tip: you can call |
@airbreather I reviewed the workaround you provided.
A simpler workaround might be to write a custom script to reorder the items as post processing. It would be responsibilities of the developers to revise their code base to fix the ordering stability issue. For example, parallel execution might generate items randomly in cache, but the generation of |
@superyyrrzz that almost gets me what I need, but there's still the possibility of NetTopologySuite/NetTopologySuite.IO.GPX@049f086 showing up depending on whether or not I've done a build since the last time my working tree was clean. Thanks, though. @lextm I don't disagree. I just started using DocFX a few days ago, and I found a simple workaround that works for me today (at a cost, of course), so I wanted to share it in case it helps someone in the meantime. |
We have updated docfx to produce deterministic output for the majority of the cases and used it to publish our own docs to github pages incrementally. There could be cases we haven't covered yet, if you encountered indeterministic behaviors, create a new bug with a minimal repo so we could take a look and fix. |
DocFX Version Used: 2.37.2
Template used: (
default
orstatictoc
or contain custom template)Used custom template.
Steps to Reproduce:
Expected Behavior:
The files should be the same (as the source project never changes).
Actual Behavior:
Files like
index.json
andmanifest.json
seem to always change (items being reordered).This is very annoying in a CI/CD system, because such changes can trigger changes sensitive actions configured, while in fact the actions should not work at all.
The text was updated successfully, but these errors were encountered: