Skip to content

Use the correct version of tools (from go.mod)#813

Merged
metal3-io-bot merged 1 commit intometal3-io:masterfrom
asalkeld:vendored-tools
Mar 17, 2021
Merged

Use the correct version of tools (from go.mod)#813
metal3-io-bot merged 1 commit intometal3-io:masterfrom
asalkeld:vendored-tools

Conversation

@asalkeld
Copy link
Copy Markdown
Contributor

Currently if you have a different version of the tools in GO_BIN something will fail.
I happened to have a slightly different version of controller-gen and kept getting manifest diffs.
By using the version specified in go.mod we avoid this annoyance.

@metal3-io-bot metal3-io-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Mar 11, 2021
@dhellmann
Copy link
Copy Markdown
Member

Nice!

/approve

@metal3-io-bot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: asalkeld, dhellmann

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

The pull request process is described here

Details 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 the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 11, 2021
@dhellmann
Copy link
Copy Markdown
Member

/test-integration

@asalkeld
Copy link
Copy Markdown
Contributor Author

/retest

@andfasano
Copy link
Copy Markdown
Member

/test-integration

Copy link
Copy Markdown
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.

Integration test failed when running Install Ironic ansible task from metal3-dev-env. The task is running tools/deploy.sh script from BMO repo, which includes a Makefile target to create Kustomize binary. That line can probably be removed and all the referenced kustomize commands in deploy.sh also need to be changed accordingly.
CI output:

TASK [v1aX_integration_test : Install Ironic] **********************************
�[1;30mtask path: /home/****/metal3/vm-setup/roles/v1aX_integration_test/tasks/move.yml:65�[0m
�[0;31mfatal: [localhost]: FAILED! => {�[0m
�[0;31m    "changed": true,�[0m
�[0;31m    "cmd": "/home/****/tested_repo/tools/deploy.sh false true true true true",�[0m
�[0;31m    "delta": "0:00:00.405636",�[0m
�[0;31m    "end": "2021-03-12 11:10:09.423146",�[0m
�[0;31m    "invocation": {�[0m
�[0;31m        "module_args": {�[0m
�[0;31m            "_raw_params": "/home/****/tested_repo/tools/deploy.sh false true true true true",�[0m
�[0;31m            "_uses_shell": true,�[0m
�[0;31m            "argv": null,�[0m
�[0;31m            "chdir": null,�[0m
�[0;31m            "creates": null,�[0m
�[0;31m            "executable": null,�[0m
�[0;31m            "removes": null,�[0m
�[0;31m            "stdin": null,�[0m
�[0;31m            "stdin_add_newline": true,�[0m
�[0;31m            "strip_empty_ends": true,�[0m
�[0;31m            "warn": true�[0m
�[0;31m        }�[0m
�[0;31m    },�[0m
�[0;31m    "msg": "non-zero return code",�[0m
�[0;31m    "rc": 2,�[0m
�[0;31m    "start": "2021-03-12 11:10:09.017510",�[0m
�[0;31m    "stderr": "make[1]: *** No rule to make target 'bin/kustomize'.  Stop.",�[0m
�[0;31m    "stderr_lines": [�[0m
�[0;31m        "make[1]: *** No rule to make target 'bin/kustomize'.  Stop."�[0m
�[0;31m    ],�[0m
�[0;31m    "stdout": "~/tested_repo ~/metal3/vm-setup\nmake[1]: Entering directory '/home/****/tested_repo'\nmake[1]: Leaving directory '/home/****/tested_repo'",�[0m
�[0;31m    "stdout_lines": [�[0m
�[0;31m        "~/tested_repo ~/metal3/vm-setup",�[0m
�[0;31m        "make[1]: Entering directory '/home/****/tested_repo'",�[0m
�[0;31m        "make[1]: Leaving directory '/home/****/tested_repo'"�[0m
�[0;31m    ]�[0m
�[0;31m}�[0m

Comment thread Makefile
@asalkeld
Copy link
Copy Markdown
Contributor Author

Integration test failed when running Install Ironic ansible task from metal3-dev-env. The task is running tools/deploy.sh script from BMO repo, which includes a Makefile target to create Kustomize binary. That line can probably be removed and all the referenced kustomize commands in deploy.sh also need to be changed accordingly.

Thanks for the pointer! I'll fix that right now.

@metal3-io-bot metal3-io-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Mar 14, 2021
@asalkeld
Copy link
Copy Markdown
Contributor Author

/test-integration

1 similar comment
@fmuyassarov
Copy link
Copy Markdown
Member

/test-integration

@hardys
Copy link
Copy Markdown
Member

hardys commented Mar 16, 2021

/test-integration

@fmuyassarov
Copy link
Copy Markdown
Member

fmuyassarov commented Mar 16, 2021

Most probably the CI failure this time is not about the patch, but a common issue in the CI itself. The issue is being worked on right now, and update will be given soon. Related slack chat

@furkatgofurov7
Copy link
Copy Markdown
Member

Most probably the CI failure this time is not about the patch, but a common issue in the CI itself. The issue is being worked on right now, and update will be given soon. Related slack chat

Thanks, hopefully, should be fine now.

/test-integration

@hardys
Copy link
Copy Markdown
Member

hardys commented Mar 17, 2021

/lgtm

@metal3-io-bot metal3-io-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 17, 2021
@metal3-io-bot metal3-io-bot merged commit 9b93d97 into metal3-io:master Mar 17, 2021
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants