-
Notifications
You must be signed in to change notification settings - Fork 16
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
tests: run html and latexpdf builders for all tests #91
Conversation
cbfe1f4
to
1d17156
Compare
graphicsmagick-imagemagick-compat might be a better dependency than inkscape, but let's see if this passes tests now that I added inkscape as a dependency first.
|
Doesn't appear that inkscape is available via direct conda channels, might need to add |
How about switching to "convert" from the Ubuntu graphicsmagick-imagemagick-compat package? sphinx.ext.imgconverter relies on "convert", so perhaps a more suitable dependency? If "convert" exists, I can make change from inkscape to convert... |
03f376e
to
b9239ab
Compare
If |
The CI looks like it is failing because no |
Using "convert" comes with it's own problems... Some sort of security vulnerability in parsing .svg files from the web...
|
@mithro The failure is actually in yosys, which is odd... see assert in line 300. This PR doesn't modify that part of the code. Strange... yowasp_yosys.run_yosys() returns an error code that is not checked....
|
de7e755
to
069485f
Compare
Run html and latexpdf builders for all tests These two builders are substantially different, so worth running both. Other builders, such as DirectoryHTMLBuilder, doesn't result in different codepaths for wavedrom graphics imagemagick has a default security policy that disables svg to pdf conversion as this conversion goes through ghostscript that uses a turing complete .eps language. Signed-off-by: Øyvind Harboe <[email protected]>
069485f
to
5f72d39
Compare
@mithro Tested locally, but it seems like it runs out of memory... I am not surprised latex needs substantially more memory than the html output... |
Overall, this change looks fine. From what I can see, this doesn't change the memory usage? I tried adding the following; diff --git a/conda.mk b/conda.mk
index cf35d8b..6c60817 100644
--- a/conda.mk
+++ b/conda.mk
@@ -142,7 +142,7 @@ $(CONDA_ENVS_DIR): $(CONDA_PYTHON)
$(MKDIR) "$(CONDA_ENVS_DIR)"
$(CONDA_ENV_PYTHON): $(ENVIRONMENT_FILE) $(REQUIREMENTS_FILE) | $(CONDA_PYTHON) $(CONDA_PKGS_DEP) $(CONDA_ENVS_DIR) $(CONDA_PYVENV)
- $(IN_CONDA_ENV_BASE) conda env update --name $(CONDA_ENV_NAME) --file $(ENVIRONMENT_FILE)
+ $(IN_CONDA_ENV_BASE) /usr/bin/time --verbose conda env update --name $(CONDA_ENV_NAME) --file $(ENVIRONMENT_FILE)
$(TOUCH) "$(CONDA_ENV_PYTHON)"
env:: $(CONDA_ENV_PYTHON) Before - |
@mithro The extra memory consumption is not surprising: I think it comes from testing latex in addition to html... |
@mithro I cant test anything more until Monday... I am unsure on what to try next... |
From my reading of the output, the command seems to be failing during the conda environment setup before anything like tests are run. |
I'm going to proceed with merging. |
Thanks! It would be great to have the regression test working. I think rsvg-r is the least problematic depdendency. inkscape and convert are tools on top of a raft of libraries and rsvg-r seems like a small leaf dependency. |
These two builders are substantially different, so worth running both.
Other builders, such as DirectoryHTMLBuilder, doesn't result in different codepaths for wavedrom graphics