-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Post Run: Error: Value cannot be null. (Parameter 'target') #1460
Comments
Okay, this definitely seems related to - name: "Create Terraform cache directory"
env:
TF_PLUGIN_CACHE_DIR: "${{ github.workspace }}/.terraform.d/plugin-cache"
run: mkdir --parents "$TF_PLUGIN_CACHE_DIR"
shell: bash
- name: "Setup Terraform cache"
env:
TF_PLUGIN_CACHE_DIR: "${{ github.workspace }}/.terraform.d/plugin-cache"
uses: actions/cache@v2
with:
path: ${{ env.TF_PLUGIN_CACHE_DIR }}
key: ${{ runner.os }}-terraform-${{ hashFiles('${{ inputs.working-directory }}/.terraform.lock.hcl') }} Strangely, there don't seem to be any changes to this action for awhile and we only started seeing these failures recently. I'm not sure if the problem is with that action specifically or something related to the runner. |
@fhammerl related to any of the recent composite action changes we did? |
Perhaps it is from
|
@TingluoHuang it could be related to either #1433 or #1438. @solarmosaic-kflorence did this workflow ever fail on the previous runner version (2.283.3) or did it ever run successfully on the current one? |
@fhammerl I first noticed this failure yesterday in our monorepo. Previously without any changes the same workflow configuration worked as of 5 days ago (that is the last run I saw, anyways) on runner version 2.283.3. It has never completed successfully on 2.284.0 without the workaround above. |
@solarmosaic-kflorence Thanks for confirming it, we'll be tracking this issue as a regression. As an alternative workaround, perhaps you could try invoking is as a global action?
|
Describe the bug
Some of our "Post job cleanup" steps are failing when using
actions/cache@v2
(https://github.com/actions/cache). Unclear if the issue is related to that action or with the runner.The error manifests as the following:
To Reproduce
Define a composite action like the following:
And then invoke that action in a workflow:
This results in the above error during the "Post Run" phase of the job. An example run with this error: https://github.com/solarmosaic-internal/mosaic/runs/4098670986 (note: this is a private organization).
If the following is commented out from the composite action:
The workflow succeeds without error.
Expected behavior
I expect the "Post run" steps to succeed. Additionally, if they do fail, I would expect a better indication of where the failure is happening and why. It's not clear to me if this is an issue with
actions/cache
, or the runner, or both.Runner Version and Platform
What's not working?
Potentially related to #1438
Job Log Output
Runner and Worker's Diagnostic Logs
Not sure how to access diagnostic logs.
The text was updated successfully, but these errors were encountered: