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

🏃 Update test scripts #99

Merged
merged 1 commit into from
Jun 15, 2020

Conversation

maelk
Copy link
Member

@maelk maelk commented Jun 15, 2020

What this PR does / why we need it:
Adds golint.sh and codegen.sh and make gofmt.sh fail if files
are changed

@metal3-io-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: maelk

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

The pull request process is described 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

@metal3-io-bot metal3-io-bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 15, 2020
@maelk
Copy link
Member Author

maelk commented Jun 15, 2020

/test-integration

@maelk maelk mentioned this pull request Jun 15, 2020
@maelk
Copy link
Member Author

maelk commented Jun 15, 2020

/cc @kashifest
/cc @fmuyassarov
/cc @furkatgofurov7

Copy link
Member

@fmuyassarov fmuyassarov left a comment

Choose a reason for hiding this comment

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

Just some small nits

if [ "${IS_CONTAINER}" != "false" ]; then
export XDG_CACHE_HOME=/tmp/.cache
eval "$(go env)"
cd "${GOPATH}"/src/github.com/metal3-io/cluster-api-provider-metal3
Copy link
Member

Choose a reason for hiding this comment

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

Don't you need to export GOPATH?

Copy link
Member Author

Choose a reason for hiding this comment

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

it's defined as part of line 11

config/manager/*.yaml
config/rbac/*.yaml
config/webhook/*.yaml
config/*.yaml
Copy link
Member

Choose a reason for hiding this comment

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

I don't see /bmo. I'm not sure if it also needs to be added or not?

Copy link
Member Author

Choose a reason for hiding this comment

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

this is v1a3, there is no BMO, and no ipam

hack/codegen.sh Outdated
Comment on lines 5 to 6
IS_CONTAINER=${IS_CONTAINER:-false}
ARTIFACTS=${ARTIFACTS:-/tmp}
Copy link
Member

Choose a reason for hiding this comment

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

Double quotes around curly brackets?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can add that indeed

Copy link
Member

Choose a reason for hiding this comment

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

Do we need double quotes here? Check this

hack/golint.sh Outdated

set -eux

IS_CONTAINER=${IS_CONTAINER:-false}
Copy link
Member

Choose a reason for hiding this comment

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

Double quotes around curly brackets?

Copy link
Member Author

Choose a reason for hiding this comment

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

ok

Copy link
Member

Choose a reason for hiding this comment

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

Check this as well

@maelk
Copy link
Member Author

maelk commented Jun 15, 2020

/test-integration

Adds golint.sh and codegen.sh and make gofmt.sh fail if files
are changed
@maelk
Copy link
Member Author

maelk commented Jun 15, 2020

/test-integration

Copy link
Member

@fmuyassarov fmuyassarov left a comment

Choose a reason for hiding this comment

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

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 15, 2020
Copy link
Member

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

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

lgtm

@metal3-io-bot metal3-io-bot merged commit da2cf6b into metal3-io:release-0.3 Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants