fortran-lang.org icon indicating copy to clipboard operation
fortran-lang.org copied to clipboard

Run failed: Comment on the pull request and push the PR preview to the gh-pages branch - master

Open certik opened this issue 2 years ago • 6 comments

Every time I comment on a pull request such as: #295, I get an email with the above title and a link to:

https://github.com/fortran-lang/fortran-lang.org/actions/runs/1086966949

It seems something in the CI is broken.

certik avatar Aug 01 '21 09:08 certik

I keep getting these emails after every (?) comment I post in this repository. Here is an example:

Screen Shot 2021-09-05 at 6 23 45 PM

First such email is from July 31, 2021. Last one is from a couple minutes ago. So far I got 14 of them.

CC @milancurcic, @awvwgk, @LKedward. Do any of you also get these emails?

certik avatar Sep 06 '21 00:09 certik

So far I believe I got only 2, but I may have only written 2 comments. Let's see if I get one for this comment.

milancurcic avatar Sep 06 '21 00:09 milancurcic

Yes, I just got another one. This started with the merging of #297.

milancurcic avatar Sep 06 '21 00:09 milancurcic

I dread to post another comment, as I will get another email. Thanks @milancurcic for confirming. Yes, it looks like #297 caused it, so that should help in figuring out a fix.

certik avatar Sep 06 '21 04:09 certik

Do any of you also get these emails?

No, I reduced my GitHub notification emails to the absolute minimum and I'm still getting like ~50 a day. Failing job emails are like 100% noise in my inbox.

The issue is that the two-stage workflow for building the build preview will trigger on every comment event in this repository. The first stage will skip if the required phrase is not part of the comment body. But apparently the second stage will always trigger regardless. It either has to check the comment body as well and skip, only get triggered on successful first stage or be able to fail gracefully.

This check stops workflows from running in the first stage:

https://github.com/fortran-lang/fortran-lang.org/blob/66ed1d4f35b01c01ec54d9494d2e9de5980ae0c1/.github/workflows/buildPRPreview.yml#L22

While the event used here seems to always evaluate to a true value

https://github.com/fortran-lang/fortran-lang.org/blob/66ed1d4f35b01c01ec54d9494d2e9de5980ae0c1/.github/workflows/commentAndPushPRPreview.yml#L24-L26

awvwgk avatar Sep 06 '21 18:09 awvwgk

Please checkout the preview workflow on the new repository, this seems to be resolved there.

awvwgk avatar Aug 06 '22 09:08 awvwgk