emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: Karl Voit <news2042@Karl-Voit.at>, Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Worg: issue with org-tools page
Date: Sat, 29 Jul 2023 12:14:00 +0000	[thread overview]
Message-ID: <877cqikj93.fsf@localhost> (raw)
In-Reply-To: <2023-04-18T15-32-06@devnull.Karl-Voit.at>

[-- Attachment #1: Type: text/plain, Size: 974 bytes --]

Karl Voit <devnull@Karl-Voit.at> writes:

>> I believe that I fixed the issue in
>> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=4929f0c55f
>>
>> But I am not sure if I actually did. We need to trigger WORG rebuild to
>> see, I think.
>
> I just committed a minimal change to that file which caused the CI
> to re-build the page: https://builds.sr.ht/~bzg/job/975519 which
> ended successfully but still shows an error:

I suspect that there is some misconfiguration of the build.
But before we go into this, let's first address the problem with
publishing being silent when some files fail to be exported.
We cannot even notice the failures now unless we check changes manually!
WORG build thinks that publishing is "success" and does not trigger
failure email.

I am attaching tentative patch that will revert demoting errors to
messages. However, I do not fully understand the purpose of the original
`condition-case' code in the publish.sh. Bastien?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-publish.sh-Trigger-error-when-any-file-fails-to-expo.patch --]
[-- Type: text/x-patch, Size: 1011 bytes --]

From 1a26aa06f1504d7c9da650c83964351f3cc61715 Mon Sep 17 00:00:00 2001
Message-ID: <1a26aa06f1504d7c9da650c83964351f3cc61715.1690632604.git.yantar92@posteo.net>
From: Ihor Radchenko <yantar92@posteo.net>
Date: Sat, 29 Jul 2023 15:08:59 +0300
Subject: [PATCH] * publish.sh: Trigger error when any file fails to export

If we do not throw an error, it may go unnoticed and will not trigger
CI report.

Link: https://orgmode.org/list/2023-04-18T15-32-06@devnull.Karl-Voit.at
---
 publish.sh | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/publish.sh b/publish.sh
index fd931893..71c3a175 100755
--- a/publish.sh
+++ b/publish.sh
@@ -53,6 +53,4 @@
 	(message " [skipping] unchanged %s" org-file)
       (message "[exporting] %s" (file-relative-name org-file default-directory))
       (with-current-buffer (find-file org-file)
-	(condition-case err
-	    (org-html-export-to-html)
-          (error (message (error-message-string err))))))))
+       (org-html-export-to-html)))))
-- 
2.41.0


[-- Attachment #3: Type: text/plain, Size: 224 bytes --]


-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

  reply	other threads:[~2023-07-29 12:20 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-09 15:37 Worg: issue with org-tools page Karl Voit
2023-04-09 16:53 ` Ihor Radchenko
2023-04-09 21:51   ` Karl Voit
2023-04-18 12:29     ` Ihor Radchenko
2023-04-18 13:48       ` Karl Voit
2023-07-29 12:14         ` Ihor Radchenko [this message]
2023-07-30  2:57           ` Max Nikulin
2023-07-30  6:40             ` Ihor Radchenko
2023-07-30  7:38               ` Max Nikulin
2023-07-30  9:16                 ` Ihor Radchenko
2023-07-31 16:12                   ` Max Nikulin
2023-07-31 16:41                     ` Ihor Radchenko
2023-08-05 12:14                       ` Max Nikulin
2023-08-05 12:23                         ` Ihor Radchenko
2023-08-06 11:31                           ` Max Nikulin
2023-08-06 15:08                             ` Ihor Radchenko
2023-08-09  7:44                               ` Ihor Radchenko
2023-08-09 10:35                                 ` Max Nikulin
2023-08-04 10:21           ` Bastien Guerry
2023-08-05  7:12             ` Ihor Radchenko
2023-08-05  8:50               ` Bastien Guerry
2023-08-05 11:06                 ` Ihor Radchenko
2023-08-05 18:07                   ` Bastien Guerry
2023-08-06  6:34                     ` Ihor Radchenko
2023-08-06 15:17                       ` Bastien Guerry
2023-08-07 13:46                         ` Ihor Radchenko
2023-08-07 14:26                           ` Bastien Guerry
2023-08-10  8:45         ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877cqikj93.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=news2042@Karl-Voit.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).