-
Notifications
You must be signed in to change notification settings - Fork 731
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
[bug]: Error: ENOENT: no such file or directory, lstat '...'
when trying to upload artifact using wildcard on Linux runners with v4.4.1
#628
Comments
👋 The bug for symlinks in
Can you share file attributes of what you are trying to upload? And can you also try with |
Not easily unfortunately. All of the files in question though should be ‘regular’ files (no symlinks, directories, or any other file types) owned by the user default user in the GHA runner and with 644 or 755 permissions.
Updating the workflows now to check. |
Yep, looks like v4.4.2 fixes the issue. |
Great! edit, see: #590 (comment) |
Possibly stupid question, but is there some reason that |
Because apparently they can’t manage their shit properly.
Apologies for the back and forth. We decided to rollback to the most recent version that was known working to avoid any further disruptions. |
|
Could you please LOG the But I'm completely lost in the various issues connected to this and the main reason is because I have absolutely no idea which First failing run:
|
Even if the target were missing, broken symbolic links are "valid" Unix objects and should be included in the upload. On my Linux system, Anyway the links missing in https://github.com/thesofproject/sof/actions/runs/11226456767/job/31207017532#step:7:15 were not broken. |
I'm trying to use Example error:
However, this may just be because if issues with relative symlinks: #590 . |
In the "set up job" step of your workflow run, you can see the SHA of the resolved action version:
You can view that commit to see any tags associated with it, e.g. b4b15b8 Your issue with relative symlinks should be resolved as of v4.4.3 yesterday, and v4 is now updated to include this. |
Not including broken symlinks have been behavior of this actions since Of course we can always change that, but I'm not sure there's a lot of use cases that require it. |
@markfickett Judging from the error, your |
Since the fix has been out for about a week now, closing |
I think a typical use case for broken symlinks is: "composition". That is: two different archives where one "provides" some symlink targets for the other. It is clearly an unusual case and there is an obvious and not so inconvenient workaround: pre-tar or pre-zip before the upload. Same workaround as for permissions: https://github.com/actions/upload-artifact?tab=readme-ov-file#permission-loss Whichever the default is, the ability to pass But I'm afraid the main problem is: SILENTLY dropping broken symbolic links? Consider the case when these links were not supposed to be broken. Now this is not a corner case any more at all but hiding a serious problem from a "regular" user! I didn't test (sorry) but I see https://github.com/actions/toolkit/blob/29d342f1765379a4ab7b028e4c683928f23030a9/packages/glob/src/internal-globber.ts#L207 seems to have only a My 2 cents, sorry I spent a limited time researching all this. PS: I found a broken... URL at the bottom of https://github.com/actions/upload-artifact/blob/82c141cc518b40d92cc801eee768e7aafc9c2fa2/README.md
https://github.com/actions/toolkit/blob/main/packages/artifact/docs/additional-information.md does not exist. |
What happened?
Starting with
actions/[email protected]
, something has changed about artifact file selection when using a wildcard which is causing some files in our workflows that are supposed to be included in the artifacts to not be included, with errors being logged essentially claiming those files do not exist. The files in question are all actual files (not symlinks), and downgrading toactions/[email protected]
seems to resolve the issue.Log output from the step doing the upload:
What did you expect to happen?
I expected all the files that match the wildcard pattern to actually be found and included.
How can we reproduce it?
Attempt to upload an artifact with files selected using a wildcard pattern using an affected version of
actions/upload-artifact
. There may be other conditions required to reproduce the issue that I do not know of.Anything else we need to know?
Despite the similar error message, this is not a duplicate of #240 as it has nothing to do with path-length limitations on Windows runners.
What version of the action are you using?
v4.4.1
What are your runner environments?
linux
Are you on GitHub Enterprise Server? If so, what version?
No response
The text was updated successfully, but these errors were encountered: