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

🌱 Take Deploy-cli to replace deploy.sh #1447

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mquhuy
Copy link
Member

@mquhuy mquhuy commented Aug 13, 2024

This PR is currently used to test metal3-io/baremetal-operator#1669 Eventually we could consider merging it (to use deploy-cli in CI), but for now let's hold

This PR takes Deploy-cli into use to replace deploy.sh in dev-env deployment and tests.

@metal3-io-bot metal3-io-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 13, 2024
@metal3-io-bot
Copy link
Collaborator

[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 lentzi90 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

@metal3-io-bot metal3-io-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 13, 2024
@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from 50f68c9 to 62479c0 Compare August 13, 2024 06:37
@mquhuy
Copy link
Member Author

mquhuy commented Aug 13, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-dev-env-integration-test-centos-main

@mquhuy mquhuy marked this pull request as draft August 13, 2024 06:38
@metal3-io-bot metal3-io-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 13, 2024
@mquhuy mquhuy marked this pull request as ready for review August 13, 2024 06:38
@metal3-io-bot metal3-io-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 13, 2024
@mquhuy
Copy link
Member Author

mquhuy commented Aug 13, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-dev-env-integration-test-centos-main

@mquhuy
Copy link
Member Author

mquhuy commented Aug 14, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-dev-env-integration-test-centos-main

@mquhuy
Copy link
Member Author

mquhuy commented Aug 14, 2024

/retest

@mquhuy
Copy link
Member Author

mquhuy commented Aug 15, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-dev-env-integration-test-centos-main

@mquhuy
Copy link
Member Author

mquhuy commented Aug 15, 2024

/retest

4 similar comments
@mquhuy
Copy link
Member Author

mquhuy commented Aug 16, 2024

/retest

@mquhuy
Copy link
Member Author

mquhuy commented Aug 16, 2024

/retest

@mquhuy
Copy link
Member Author

mquhuy commented Aug 20, 2024

/retest

@mquhuy
Copy link
Member Author

mquhuy commented Aug 21, 2024

/retest

@mquhuy
Copy link
Member Author

mquhuy commented Sep 3, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-dev-env-integration-test-centos-main

@mquhuy
Copy link
Member Author

mquhuy commented Sep 3, 2024

/retest

@mquhuy
Copy link
Member Author

mquhuy commented Sep 16, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-dev-env-integration-test-centos-main

@mquhuy
Copy link
Member Author

mquhuy commented Sep 16, 2024

/retest

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from 62479c0 to 36505c0 Compare September 16, 2024 14:09
@mquhuy
Copy link
Member Author

mquhuy commented Sep 16, 2024

Deploy-CLI was merged. Repurposing this PR as adaptation of the new tool to dev-env.

/retitle 🌱 Take Deploy-cli to replace deploy.sh

@metal3-io-bot metal3-io-bot changed the title DO NOT MERGE Test Deploy-cli 🌱 Take Deploy-cli to replace deploy.sh Sep 16, 2024
@mquhuy
Copy link
Member Author

mquhuy commented Dec 17, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-8

02_configure_host.sh Outdated Show resolved Hide resolved
@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch 4 times, most recently from 6f9b837 to 5c22adb Compare December 17, 2024 11:41
@mquhuy
Copy link
Member Author

mquhuy commented Dec 17, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-8

@mquhuy
Copy link
Member Author

mquhuy commented Dec 17, 2024

/test metal3-dev-env-integration-test-ubuntu-main

@mquhuy
Copy link
Member Author

mquhuy commented Dec 18, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-8

@mquhuy
Copy link
Member Author

mquhuy commented Dec 18, 2024

/retest-required

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from 5c22adb to 9210083 Compare December 18, 2024 12:04
@mquhuy
Copy link
Member Author

mquhuy commented Dec 18, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-8

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from 9210083 to 4e4db6a Compare December 19, 2024 08:20
@metal3-io-bot metal3-io-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 19, 2024
@mquhuy
Copy link
Member Author

mquhuy commented Dec 19, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-8

@mquhuy
Copy link
Member Author

mquhuy commented Dec 19, 2024

/unhold
We can take it into use now.

@metal3-io-bot metal3-io-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 19, 2024
@mquhuy mquhuy requested a review from tuminoid December 19, 2024 12:52
# if it's available, and use deploy.sh otherwise.

pushd "${BMOPATH}"
make deploy-cli && chmod +x tools/bin/deploy-cli && rm tools/deploy.sh && cp tools/bin/deploy-cli tools/deploy.sh
Copy link
Member

Choose a reason for hiding this comment

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

What happens when we run this in BMO 0.8 or older? It will just exit the script with failure?

Copy link
Member

@tuminoid tuminoid Dec 19, 2024

Choose a reason for hiding this comment

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

There is a lesson to be learned here, just don't know what lesson that would be. This definitely should exit, as there is "set -e", make is returning 2 for failure, and && does not trigger pipefail shenanigans.

Anyways, let's write it properly, ie.

Suggested change
make deploy-cli && chmod +x tools/bin/deploy-cli && rm tools/deploy.sh && cp tools/bin/deploy-cli tools/deploy.sh
pushd "${BMOPATH}"
if make deploy-cli; then
chmod +x tools/bin/deploy-cli
cp tools/bin/deploy-cli tools/deploy.sh
fi
popd

Now that we have deploy-cli in BMO main, we can start using it to
replace deploy.sh in installing BMO and Ironic.

Signed-off-by: Huy Mai <huy.mai@est.tech>
@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from 4e4db6a to 04f84c8 Compare December 19, 2024 13:21
@mquhuy
Copy link
Member Author

mquhuy commented Dec 19, 2024

/test metal3-centos-e2e-integration-test-release-1-8

pushd "${BMOPATH}"
if make deploy-cli; then
chmod +x tools/bin/deploy-cli
rm tools/deploy.sh
Copy link
Member

Choose a reason for hiding this comment

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

We don't need to delete it, we copy over it on next line.

@mquhuy
Copy link
Member Author

mquhuy commented Dec 20, 2024

/test metal3-dev-env-integration-test-ubuntu-main
/test metal3-centos-e2e-integration-test-release-1-8

@mquhuy
Copy link
Member Author

mquhuy commented Dec 20, 2024

/test metal3-centos-e2e-integration-test-release-1-9

@mquhuy
Copy link
Member Author

mquhuy commented Dec 20, 2024

/retest

1 similar comment
@tuminoid
Copy link
Member

/retest

@metal3-io-bot
Copy link
Collaborator

@mquhuy: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
metal3-centos-e2e-integration-test-release-1-7 71bd2eb link false /test metal3-centos-e2e-integration-test-release-1-7
metal3-centos-e2e-integration-test-release-1-9 04f84c8 link true /test metal3-centos-e2e-integration-test-release-1-9

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@metal3-io-bot
Copy link
Collaborator

@mquhuy: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
metal3-centos-e2e-integration-test-release-1-7 71bd2eb link false /test metal3-centos-e2e-integration-test-release-1-7
metal3-centos-e2e-integration-test-release-1-9 04f84c8 link true /test metal3-centos-e2e-integration-test-release-1-9

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants