-
Notifications
You must be signed in to change notification settings - Fork 119
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
Action fails with due to missing log file #5
Comments
Sorry for the late reply. Would you mind giving the latest version a shot? The sphinx log is needed to parse the errors and if the docs build successfully (which they seem like they do in your logs), then it should exist. |
I'm pinned to action version
|
Sorry for not replying, I can try this again after next week. |
I've figured out the problem. The issue is due to a problem with argument passing. When you use the default build cmd ( sphinx-action/sphinx_action/action.py Lines 100 to 105 in 3dd694e
In this manner, you pass the
This script doesn't take into account your env var so the log file won't be generated. An easy way to fix that is to use a custom build cmd like this one: Because in this case, the action script will execute this line. sphinx-action/sphinx_action/action.py Lines 107 to 110 in 3dd694e
Sphinx option will be hard written in the command. |
If I'm understanding this right another solution is to replace our current sphinx options e.g. |
I've just tested your solution and it works! Just add a plus before the equals like this :
That doesn't matter if the right side is empty. |
Wonder if this should be upstreamed? |
Tested, and can confirm the additive assignment worked in my case as well. |
If not I think the README should at least make note of it. |
Apologies for the late response, thanks for investigating this everyone. If you take a look at my test projects here: sphinx-action/tests/test_projects/no_errors/Makefile Lines 1 to 9 in 3dd694e
They seem to be setup so that they support overriding through environment variables. Maybe this is a change in newer version of sphinx. The intention with this project was to just have it be drop-in without having the user make any changes to their sphinx stuff, let me see if I can find a more versatile way to achieve this. |
Could someone try with the origin Makefile and the action pinned to master? I think this commit should help: |
Tested on my own project. Everything looks fine. Good job! |
Feel free to re-open if anyone finds the latest release doesn't work with their original Makefiles. |
Facing the log file issue with both original and updated make file. ====================================
|
Your build is failing for a different reason:
The build command doesn't have a source folder specified as you can see from the "Running:" line. Your |
Thank you. But, still the same error ====================================
|
Hi, I am still encountering the same issue:
when building the documentation using the action and this command:
Note that at the end of the log it says:
How can I modify the last argument? |
Looks like your build command is missing the |
Anyone still getting this? I'm using this for workflow -
and Makefile
and still get
|
Your Makefile seems irrelevant, it doesn't look to be using that. The output of the runner shows a different build command than the one you specified. Are you sure that it's using the configuration you posted? You also seem to be using At any rate, this issue is about builders that use |
Version 0.4 of sphinx-action contains a problem investigated and documented here: ammaraskar/sphinx-action#5. The action throws an error claiming it can't write the log file. The problem is fixed in master and since this is a tutorial, it is more or less expected that it should work off the bat, so I thinking pinning the master version for now and the next release when it comes out, might be the best way to help newbies.
Version 0.4 of sphinx-action contains a problem investigated and documented here: ammaraskar/sphinx-action#5. The action throws an error claiming it can't write the log file. The problem is fixed in master and since this is a tutorial, it is more or less expected that it should work off the bat, so I thinking pinning the master version for now and the next release when it comes out, might be the best way to help newbies.
I was having the same missing log file error, none of the above worked. The solution was to add this lines to my
|
@Claudio9701 +1 for this |
The following flags are added to the command: '-w', '/tmp/sphinx-log' This is causing the following issue: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/sphinx-log' This may be related to this issue: ammaraskar/sphinx-action#5 Attempted to fix this by forcing the upgrade of sphinx and docutils. Possibly the issue comes from the way older version would behave when passed -w. TBD.
Trying to debug failed sphinx workflow action. ammaraskar/sphinx-action#5 (comment)
At this point I'm just guessing ammaraskar/sphinx-action#5 (comment)
The GitHub action that was intended to publish the documentation failed because `FileNotFoundError: [Errno 2] No such file or directory: '/tmp/sphinx-log'` This issue claims the solution is to change one character in the make file: ammaraskar/sphinx-action#5
Version: 0.1
https://github.com/cmouse/dovecot-documentation/commit/95de65dc80bf4cf3ddbf57a3f0e1fc0c6fab4f9a/checks?check_suite_id=368217245
The build fails because it cannot find some sphinx log file. There is no indication anywhere how it should be created?
The text was updated successfully, but these errors were encountered: