On 31/07/2023 23:41, Ihor Radchenko wrote:
Max Nikulin writes:I hope, there is a better way to address the issue with failure notifications.That sounds too complex. I think we can simply add an extra "check" task to https://git.sr.ht/~bzg/worg/tree/master/item/.build.yml It will run after "upload", re-exporting files, but not ignoring errors this time.
I was trying to modify publish.sh to collect errors up to a reasonable number, a draft is attached. It can be improved further to save list of failures to some file, so final step of .build.yml may be to check whether this file is empty and to send a notification otherwise.
Currently it just prints summary of failures. When allowed failures count is exceeded, it fails immediately.
./publish.sh --maxfail 32 ...org-release-notes.org: Could not find plantuml.jar at /usr/share/plantuml/plantuml.jar
org-faq.org: Could not find ditaa.jar at /usr/bin/ditaaorg-blog-wiki.org: Unable to resolve link: "[https://github.com/kaushalmodi/ox-hugo/tree/master/test/site/content-org"
library-of-babel.org: Symbol’s function definition is void: fiborg-tutorials/images-and-xhtml-export.org: Unable to resolve link: "worg/images/orgmode/org-mode-unicorn.png"
org-tools/index.org: Cannot open load file: No such file or directory, ess org-contrib/babel/intro.org: Could not find ditaa.jar at /usr/bin/ditaaorg-contrib/babel/languages/ob-doc-scheme.org: Symbol’s value as variable is void: geiser-default-implementation org-contrib/babel/languages/ob-doc-ditaa.org: Could not find ditaa.jar at /usr/bin/ditaa org-contrib/babel/languages/ob-doc-LaTeX.org: Cannot open load file: No such file or directory, ess org-contrib/babel/examples/org-check.org: Symbol’s value as variable is void: org-latex-to-pdf-process org-contrib/babel/examples/lob-table-operations.org: Symbol’s function definition is void: flet
org-contrib/babel/examples/foo.org: Inline error: list result cannot be usedorg-contrib/babel/examples/drift.org: Could not find ditaa.jar at /usr/bin/ditaa org-contrib/babel/examples/data-collection-analysis.org: Cannot open load file: No such file or directory, ess org-contrib/babel/examples/ascii.org: Cannot open load file: No such file or directory, ess org-contrib/babel/examples/Rpackage.org: Cannot open load file: No such file or directory, ess
publish.sh
Description: application/shellscript