-
Notifications
You must be signed in to change notification settings - Fork 45
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
[BUG] sphinx build failures with json parse error #224
Comments
Can you please share the link where to see this error? Is it in some PR, or on main itself? |
all recent PR, e.g., #222 |
It is not quite a quick spot but the error is because https://github.com/sktime/skpro/blob/main/docs/source/conf.py#L148 sphinx doesn't get the json file but the whole HTML page so there is parse json error. L148 is edited in #125 to fix #122 but why don't just point it to the |
No I think you should revert that change. Or you could point it toward https://raw.githubusercontent.com/sktime/skpro/main/docs/source/_static/switcher.json |
oh, I see! Let's try that. I also remember why I changed #125: The problem was that after manually modifying the If I revert #125, it possibly fixes failure, but it might introduce the same problem into the release pipeline. I also wonder, why do we need this? |
It is for the version switcher panel that is theme-specific. The docs build for tags seem to not be available due to either failures of configs. So I think you could actually remove that panel. Edit: as you may observe in the newly build docs in PR. The version in the switcher direct to error page. |
hm, what precise change are you suggesting, with "I think you could actually remove that panel."? |
I meant removing the json and switcher related configs. Though normally a switcher.json is a minor enhancement for docs. So perhaps you should rebuild the docs for the legacy tags because they are currently not available. |
hm, the switcher dropdown doesn't seem to work for me at all... |
The switcher dropdown for release docs will be empty because probably only builds skipping json work. The one in the PR will have all tag links direct to broken page because they weren't built. |
i dont think it would introduce issue. While the changes in switcher not visible in PR or branch, it would still update correctly in release version. Also it have an added benefit that all legacy docs have the dropdown pointing to all available versions. |
ok, that makes sense. I reverted to the original state, this will unfortunately lead to release PRs failing. |
Could you point me to an instance of release PR failing due to this change? I would think the currently failed PRs are more likely because their conf.py still had the error before #225 merged. Also I think you would want to go to |
Thanks, @duydl - I've activated all legacy versions now. The automation rule for "automatic activate on semver tag" was not enabled, I've enabled this and now in the future it should automatically activate new release tags. |
I'll open one and we can see what happens. Here, fails as usual: To note, the code quality failure is not due to linting, it has to do with |
Sorry, how did you see it as failed? RTD seemed to build successfully https://readthedocs.org/projects/skpro/builds/23921941/ Also, FYI because most of the tags in the switcher point to version with buggy json_url, they could not be built. Seem like all tags after https://skpro.readthedocs.io/en/v2.1.1/index.html . From v2.1.1 the build is failing. Edit: I saw the test/code quality CI failure. Isnt it because of trilom/file-changes-action@v1.2.4 action. I am not sure what it does, but is not used in sktime. |
CI in the PR |
Should we rebuild with the URL fixed? E.g., push 2.1.2 where that's the only change? |
RTD seemed to build successfully https://readthedocs.org/projects/skpro/builds/23921941/
Or just remove those from the switcher.json . Fixing only the current stable version would be enough imo. |
The sphinx doc build seems to fail with json parse errors.
I don't think anything was changed that would cause this, it's a bit mysterious.
My suspicion is, based on it being the only
json
file in the docs afaik, the filedocs/source/_static/switcher.json
, but all seems ok there?FYI @yarnabrina, @duydl, in case you have any quick spots.
The text was updated successfully, but these errors were encountered: