-
Notifications
You must be signed in to change notification settings - Fork 19
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
publish-site Started to Fail recently due to build-book #457
Comments
My first guess is that a new path issue would be from some changes in the
@erogluorhan where do you see the user-facing differences for v45? Changing to v44 seems like a safe way to have this working for now and to verify that this is the source of the error, but we don't want it to be pinned in an old version for however long. |
Not sure about v45's user facing differences for now either. I also think we can try changing to v44 for a quick easy trial then can look into actual fix with v45 |
I didn't scroll down enough! |
Okay that's good to know though. I'm not sure either. I'll poke around and see if I come up with any ideas. |
As of now, Though, I don't know why it was chosen to get the code through artifact-download rather than code checkout for the |
@erogluorhan it looks like metrics were last updated September 2nd, does that line up with the time of this failure occurring? |
Yes, it does (publish-site auto-runs on every Monday, and Sep 2nd was Monday two weeks ago, which is the last time publish-site succeeded). Yes the artifact download is also clear to me. I think we need to somehow satisfy the following expectation though to get |
I took a look to compare one of the recent failed runs to the last successful run of the One difference I noticed: the list of extracted files during the "Download code artifact" step is not the same. The last successful run included files in the That could very well mean that the I suggest focusing on why this change occurred in the files captured in the artifact during the |
Further comment: I see here the comment that
Version 4.4.0 of actions/upload-artifact was released three weeks ago: https://github.com/actions/upload-artifact/releases/tag/v4.4.0 Pretty sure this is the culprit. |
Great detective work @brian-rose |
Looks like so. Let us try it quick in the PR I had created. Great catch, @brian-rose ! |
@erogluorhan made this PR before I saw your comment. Closing it now in favor of your existing PR with more conversation. |
What happened:
The publish-site actions started to fail in the last two weeks. The error is happening at the cookbook-actions/build-book.yaml's "Test for environment change" step, which uses
tj-actions/changed-files@v45
.The failure started to occur after the version bump from v44 to v45 for
tj-actions/changed-files
. FYI: @jukentThe error message is:
"Error: Unable to locate the git repository in the given path: /home/runner/work/projectpythia.github.io/projectpythia.github.io.
Please run actions/checkout before this action (Make sure the 'path' input is correct).
If you intend to use Github's REST API note that only pull_request* events are supported. Current event is "schedule"."
With the
publish-site
actions, we don't runCheckout the code from the repo
becausebuild_from_code_artifact: 'true'
in here.Minimal Complete Verifiable Example:
https://github.com/ProjectPythia/projectpythia.github.io/actions/runs/10871645277
Anything else we need to know?:
It looks like we will need to either downgrade
tj-actions/changed-files
from v45 to v44 to fix things for now, or figure if we can runactions/checkout
inpublish-site
as it is requested by v45.The text was updated successfully, but these errors were encountered: