Skip to content
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

intermittent failure to render previews (but GHA reports success) #775

Open
KatherineCox opened this issue Sep 23, 2024 · 0 comments
Open

Comments

@KatherineCox
Copy link
Contributor

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 jhudsl/AnVIL_Book_Champions#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant