-
Notifications
You must be signed in to change notification settings - Fork 885
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
[CI] Restore cache failed: Dependencies file is not found #4901
Comments
Tracing upstream issue: |
seems like the reason is this workflow have a specially workspace path: karmada/.github/workflows/ci.yml Line 50 in 5e1191f
|
Refer to https://github.com/actions/setup-go/blob/cdcb36043654635271a94b9a6d1392de5bb323a7/src/cache-restore.ts#L52-L65, when cache restore occurs, it looks for the The reason for the inconsistency of the directory is what @liangyuanpeng said, this workflow have a specially workspace path. By tracing the history of the code, this specially workspace path was introduced in #1221 to solve the problem of ci failing to intercept the PR which introduced API change but without deepcopy update. |
Thanks for the details analysis, do we have a solution to fix it? |
The easiest way is to remove the specially workspace path. I gave it a try and submitting a PR which introduced API change but without deepcopy update and didn't end up with the problem described in #1221, so I guess I'll have to look into the reasons for adding the specially workspace path on PR #1221. |
actions/setup-go#427 (comment) |
Through experimentation, directly deleting the specially workspace path will not affect the functionality of the CI, as can be seen in https://github.com/zhzhuang-zju/karmada/actions/runs/8966655310/job/24622621482. The specific reason for this is the addition of this code inside the file karmada/hack/update-codegen.sh Lines 43 to 45 in c7c8f49
This code sets the variable ${{GOPATH}} to a path under ${REPO_ROOT}, so CI doesn't need to run under path |
Good job! @zhzhuang-zju |
/assign |
What would you like to be added:
Investigate if there is something wrong with the GitHub Action to address the warning:
You can get the warning from here: https://github.com/karmada-io/karmada/actions/runs/8957867986
References:
actions/setup-go#427
Why is this needed:
The text was updated successfully, but these errors were encountered: