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

fix(ci): remove warnings caused by missing actions/checkout step #5874

Merged
merged 4 commits into from
Jan 10, 2023

Conversation

gustavovalverde
Copy link
Member

Motivation

We get this warning when running the continous-delivery.yml workflow:

Deploy single instance
The "create_credentials_file" option is true, but the current GitHub workspace is empty. Did you forget to use "actions/checkout" before this step? If you do not intend to share authentication with future steps in this job, set "create_credentials_file" to false.

Fixes #5729

Solution

Add missing actions/checkout steps to allow the credentials file to be written correctly

Review

Anyone can review this

Reviewer Checklist

  • Will the PR name make sense to users?
    • Does it need extra CHANGELOG info? (new features, breaking changes, large changes)
  • Are the PR labels correct?
  • Does the code do what the ticket and PR says?
    • Does it change concurrent code, unsafe code, or consensus rules?
  • How do you know it works? Does it have tests?

@gustavovalverde gustavovalverde added C-bug Category: This is a bug A-devops Area: Pipelines, CI/CD and Dockerfiles P-Low ❄️ I-usability Zebra is hard to understand or use labels Dec 19, 2022
@gustavovalverde gustavovalverde self-assigned this Dec 19, 2022
@gustavovalverde gustavovalverde marked this pull request as ready for review December 19, 2022 14:13
@gustavovalverde gustavovalverde requested a review from a team as a code owner December 19, 2022 14:13
@gustavovalverde gustavovalverde requested review from dconnolly and removed request for a team December 19, 2022 14:13
@github-actions github-actions bot added C-removed C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG labels Dec 19, 2022
@arya2
Copy link
Contributor

arya2 commented Dec 19, 2022

@arya2
Copy link
Contributor

arya2 commented Dec 19, 2022

WARNING: Default device-name for disk name [auto-delete=yes] will be [auto-delete=yes] because it is being mounted to a container with [--container-mount-disk]
ERROR: (gcloud.compute.instances.create-with-container) Could not fetch resource:

  • Invalid value for field 'resource.disks[1].deviceName': 'auto-delete=yes'. Must be a match of regex '(^$|\w[\w.-]{0,254})'

https://github.com/ZcashFoundation/zebra/actions/runs/3734154152/jobs/6335869442#step:6:74

@arya2 arya2 requested review from arya2 and removed request for dconnolly December 19, 2022 18:48
@arya2
Copy link
Contributor

arya2 commented Dec 21, 2022

WARNING: Default device-name for disk name [auto-delete=yes] will be [auto-delete=yes] because it is being mounted to a container with [--container-mount-disk]
ERROR: (gcloud.compute.instances.create-with-container) Could not fetch resource:

  • Invalid value for field 'resource.disks[1].deviceName': 'auto-delete=yes'. Must be a match of regex '(^$|\w[\w.-]{0,254})'

https://github.com/ZcashFoundation/zebra/actions/runs/3734154152/jobs/6335869442#step:6:74

@gustavovalverde I don't see why this PR would cause this issue, but it's not happening on the main branch or anywhere else.

@arya2 arya2 requested review from arya2 and removed request for arya2 December 21, 2022 17:49
Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Default device-name for disk name [auto-delete=yes] will be [auto-delete=yes] because it is being mounted to a container with [--container-mount-disk]
ERROR: (gcloud.compute.instances.create-with-container) Could not fetch resource:

  • Invalid value for field 'resource.disks[1].deviceName': 'auto-delete=yes'. Must be a match of regex '(^$|\w[\w.-]{0,254})'

https://github.com/ZcashFoundation/zebra/actions/runs/3734154152/jobs/6335869442#step:6:74

@gustavovalverde I don't see why this PR would cause this issue, but it's not happening on the main branch or anywhere else.

This seems to be an existing bug in the workflow, which is only triggered by a workflow_dispatch.

The name= field is missing for manual dispatch:

--create-disk=name=auto-delete=yes,size=300GB,type=pd-ssd \

This is what it should be like:

--create-disk=name=zebrad-cache-${{ env.GITHUB_SHA_SHORT }},auto-delete=yes,size=300GB,type=pd-ssd \

This seems like a blocker for this PR, because we can't test the PR without fixing it.

@gustavovalverde
Copy link
Member Author

@teor2345
Copy link
Contributor

teor2345 commented Jan 9, 2023

Is this warning a problem?

WARNING: Default device-name for disk name [None] will be [None] because it is being mounted to a container with [--container-mount-disk]

https://github.com/ZcashFoundation/zebra/actions/runs/3877453287/jobs/6612495110#step:6:75

Copy link
Contributor

@teor2345 teor2345 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good otherwise!

@gustavovalverde
Copy link
Member Author

Is this warning a problem?

That's part of the issues with the GCP documentation that I reported to them

@mergify mergify bot merged commit fb3cc7b into main Jan 10, 2023
@mergify mergify bot deleted the chore-warning branch January 10, 2023 10:11
@oxarbitrage oxarbitrage mentioned this pull request Jan 29, 2023
36 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-devops Area: Pipelines, CI/CD and Dockerfiles C-bug Category: This is a bug C-trivial Category: A trivial change that is not worth mentioning in the CHANGELOG I-usability Zebra is hard to understand or use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

create_credentials_file checkout warning in continous-delivery.yml
3 participants