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 16, 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 16, 2024

/retest

@tuminoid
Copy link
Member

/retest

Retesting doesn't help, you need to fix the issue.

[2024-12-16T07:44:39.053Z] warning: Could not find remote branch fix-deploy-cli to clone.
[2024-12-16T07:44:39.053Z] fatal: Remote branch fix-deploy-cli not found in upstream origin

@mquhuy
Copy link
Member Author

mquhuy commented Dec 16, 2024

/retest

Retesting doesn't help, you need to fix the issue.

[2024-12-16T07:44:39.053Z] warning: Could not find remote branch fix-deploy-cli to clone.
[2024-12-16T07:44:39.053Z] fatal: Remote branch fix-deploy-cli not found in upstream origin

This is an old issue. It was fixed after the first fail.

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from dd73b39 to 6185294 Compare December 16, 2024 10:55
@mquhuy
Copy link
Member Author

mquhuy commented Dec 16, 2024

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

@mquhuy mquhuy changed the title WIP 🌱 Take Deploy-cli to replace deploy.sh 🌱 Take Deploy-cli to replace deploy.sh Dec 16, 2024
@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 Dec 16, 2024
@mquhuy
Copy link
Member Author

mquhuy commented Dec 16, 2024

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

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from 6185294 to 15726d4 Compare December 16, 2024 11:17
@mquhuy
Copy link
Member Author

mquhuy commented Dec 16, 2024

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

@mquhuy
Copy link
Member Author

mquhuy commented Dec 16, 2024

/retest-required

@mquhuy
Copy link
Member Author

mquhuy commented Dec 16, 2024

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

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from 15726d4 to 71bd2eb Compare December 17, 2024 07: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
/test metal3-centos-e2e-integration-test-release-1-7

@mquhuy
Copy link
Member Author

mquhuy commented Dec 17, 2024

/retest

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from 71bd2eb to f75dd9b Compare December 17, 2024 08:44
@mquhuy
Copy link
Member Author

mquhuy commented Dec 17, 2024

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

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch from f75dd9b to 4f4e3e4 Compare December 17, 2024 09:09
@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

Comment on lines +315 to +316
export DEPLOY_TOOL="${BMOPATH}/tools/deploy.sh"
if [[ "${BMOBRANCH}" = "main" ]] || [[ "${BMOBRANCH}" = "release-0.9" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

Since deploy.sh is going away, make it the subject of condition, so we don't have to be adding releases in this list to keep it working.

Suggested change
export DEPLOY_TOOL="${BMOPATH}/tools/deploy.sh"
if [[ "${BMOBRANCH}" = "main" ]] || [[ "${BMOBRANCH}" = "release-0.9" ]]; then
if [[ "${BMOBRANCH}" =~ release-0.(8|6|5) ]]; then
export DEPLOY_TOOL="${BMOPATH}/tools/deploy.sh"
else

Copy link
Member

Choose a reason for hiding this comment

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

Now it is in two places?

@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch 3 times, most recently from 49a82b7 to 6f9b837 Compare December 17, 2024 11:37
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 <[email protected]>
@mquhuy mquhuy force-pushed the mquhuy/test-deploy-cli branch 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

@metal3-io-bot
Copy link
Collaborator

metal3-io-bot commented Dec 17, 2024

@mquhuy: The following test 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

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.

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. 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.

4 participants