-
Notifications
You must be signed in to change notification settings - Fork 14
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
"Examples expected to fail, but not failing" #34
Comments
Note: it is maybe related to the last pull request merged #27 ? In particular maybe the examples fail the first time, but the second time the hash is already computed and therefore the execution is skipped. @mchaaler would you like to check this hypothesis ? In that case we should maybe change the |
Note: I yanked 0.7.4 on PyPi repo, so it is not available anymore to the general audience (except for those explicitly specifying mkdocs-gallery==0.7.4). |
Indeed this seems possible, since only a few modifications were made since the last successful build. |
I think I got it: we are both on windows and the issue appears on linux. mkdocs-gallery/src/mkdocs_gallery/gen_gallery.py Lines 804 to 806 in 2acaff3
on my machine once a first run of
However the What bugs me is that the code is the same than in mkdocs-gallery/src/mkdocs_gallery/gen_data_model.py Lines 180 to 193 in c3f2389
This is probably related to full vs. relative paths ? |
Ok it seems that this is due to the fact that
I see a few actions from this point on
I open a ticket #36 containing the first two steps |
I was just about to write something very similar about Windows/linux and the Tried to wrap everything up from work before leaving, but was not able to to tie it up in time. |
No worries of course ! Let me know (no hurry) |
First step should be adressed by PR#39 now |
It seems that the This is/was the case in mkdocs-gallery/src/mkdocs_gallery/gen_gallery.py Lines 788 to 791 in 7f39f9e
A quick search returns about 35 hits across all files in the project. Most of them are probably necessary, but some might lead to unexpected mismatch between the source file and the filename_pattern. |
Indeed. This is because when I migrated from sphinx-gallery the code was not using pathlib at all (everything was string-based). So I made the change gradually: my first step was to introduce pathlib and object-oriented gallery descriptions, but not to change much the execution part (that required strings). Thanks for #39 , I will have a look ! |
…e of md5 hash check Fix issue smarie#34
…skipped because of md5 hash check Fix issue smarie#34
Fixed by #39 |
https://github.com/smarie/mkdocs-gallery/actions/runs/1951764926
It seems related to expected failures in the gallery ?
The text was updated successfully, but these errors were encountered: