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

Run unit tests #1287

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Run unit tests #1287

wants to merge 3 commits into from

Conversation

aerosouund
Copy link
Member

@aerosouund aerosouund commented Sep 30, 2024

What this PR does / why we need it:

With moving bash opts to golang, unit tests were introduced for every opt. But they aren't being run as a part of any CI process
This PR fixes all broken tests and changes the make test command of the gocli to run all tests in the project

Checklist

This checklist is not enforcing, but it's a reminder of items that could be relevant to every PR.
Approvers are expected to review this list.

Release note:

NONE

- Update the node provisioner test to expect the empty string as the node ip
- Update the node01 provisioner test to pass etcd sync as false

Signed-off-by: aerosouund <aerosound161@gmail.com>
There is an import called container and a method named container, rename the method to containerFromNames.

Signed-off-by: aerosouund <aerosound161@gmail.com>
Signed-off-by: aerosouund <aerosound161@gmail.com>
@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Sep 30, 2024
@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign rmohr for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@aerosouund
Copy link
Member Author

cc: @xpivarc @dhiller @brianmcarey

Copy link
Member

@brianmcarey brianmcarey left a comment

Choose a reason for hiding this comment

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

Which CI job will these tests be run in?

@aerosouund
Copy link
Member Author

aerosouund commented Oct 2, 2024

@brianmcarey
Test provision manager
Its what runs the make test command

@brianmcarey
Copy link
Member

@brianmcarey Test provision manager Its what runs the make test command

Ok maybe we should update the job name to match the more generic nature of what is being run.

@dhiller
Copy link
Contributor

dhiller commented Oct 2, 2024

@brianmcarey Test provision manager Its what runs the make test command

Ok maybe we should update the job name to match the more generic nature of what is being run.

Good point - however a separate task from this PR, no?

Suggestion: how about changing make all to include test target, since check-gocli calls it anyway 1? Then we could get rid of the other presubmit job?

@aerosouund
Copy link
Member Author

aerosouund commented Oct 2, 2024

Ok maybe we should update the job name to match the more generic nature of what is being run.

Yes, but where should this change take place ?
I'm not aware of how you can change stuff in prow (job configs, names.. etc)

@dhiller
Copy link
Contributor

dhiller commented Oct 2, 2024

Ok maybe we should update the job name to match the more generic nature of what is being run.

Yes, but where should this change take place ? I'm not aware of how you can change stuff in prow (job configs, names.. etc)

it's inside project-infra folder github/ci/prow-deploy/files/jobs - there's the job definitions (see above link for the definition of check-gocli)

@dhiller
Copy link
Contributor

dhiller commented Oct 2, 2024

@brianmcarey Test provision manager Its what runs the make test command

Ok maybe we should update the job name to match the more generic nature of what is being run.

Good point - however a separate task from this PR, no?

Suggestion: how about changing make all to include test target, since check-gocli calls it anyway 1? Then we could get rid of the other presubmit job?

@brianmcarey WDYT? ^^

@brianmcarey
Copy link
Member

@brianmcarey Test provision manager Its what runs the make test command

Ok maybe we should update the job name to match the more generic nature of what is being run.

Good point - however a separate task from this PR, no?
Suggestion: how about changing make all to include test target, since check-gocli calls it anyway 1? Then we could get rid of the other presubmit job?

@brianmcarey WDYT? ^^

Sounds good to me - the lane should also be set to always run and be required too.

@aerosouund
Copy link
Member Author

@brianmcarey @dhiller
will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants