OTTR_Template icon indicating copy to clipboard operation
OTTR_Template copied to clipboard

intermittent failure to render previews (but GHA reports success)

Open KatherineCox opened this issue 5 months ago • 0 comments

Description

I've had this happen a few times while working on https://github.com/jhudsl/AnVIL_Book_Champions. One preview will render just fine (i.e. include my new content), and then the next preview (within the same PR) will claim to have rendered fine, but

  1. the html preview looks like main (i.e. does not include the new content)
  2. the downloadable preview gives me a 404 error

This only happens for some renders - I'll have a render that runs fine, then the next one won't, then a later one will work fine again.

You can see it in https://github.com/jhudsl/AnVIL_Book_Champions/pull/10

Logs

Failed render

In the most recent render, it reports success but the html preview is missing my new chapter. If I check the logs, I see this:

From https://github.com/jhudsl/AnVIL_Book_Champions
 * branch            preview-10 -> FETCH_HEAD
Current branch preview-10 is up to date.
To https://github.com/jhudsl/AnVIL_Book_Champions
 ! [remote rejected] preview-10 -> preview-10 (cannot lock ref 'refs/heads/preview-10': is at 1c9a3a93c7b9ceb8ac65a89b8cc6c491b0c484fa but expected 621cf0366a8eba353ca5a2117df2a7ac6191a8cb)
error: failed to push some refs to 'https://github.com/jhudsl/AnVIL_Book_Champions'
No changes to commit

Successful render

The new chapter had rendered fine in an earlier commit within this same PR: https://github.com/jhudsl/AnVIL_Book_Champions/actions/runs/10995603242/job/30526800056

In the successful render, it says:

From https://github.com/jhudsl/AnVIL_Book_Champions
 * branch            preview-10 -> FETCH_HEAD
   7188208..e662ed8  preview-10 -> origin/preview-10
Rebasing (1/1)

                                                                                
Successfully rebased and updated refs/heads/preview-10.
To https://github.com/jhudsl/AnVIL_Book_Champions
   e6[62](https://github.com/jhudsl/AnVIL_Book_Champions/actions/runs/10995603242/job/30526800056#step:11:63)ed8..818f10f  preview-10 -> preview-10

Additional notes

My repo is based off of AnVIL_Template rather than OTTR_Template. @avahoffman has kept AnVIL_Template pretty up-to-date (last updated in Aug) but it doesn't have some of the most recent OTTR updates. I'm submitting this issue here because I think this is a general OTTR issue rather than AnVIL_Template-specific, but I don't know for sure if there are any relevant differences.

KatherineCox avatar Sep 23 '24 22:09 KatherineCox