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

Build ironic locally when running tests on ironic-image repo #694

Conversation

mboukhalfa
Copy link
Member

There is a behavior implimented in old ansible tests to use postfix that make the test building ironic locally even when running on a different repo but it does not seem being used

Signed-off-by: Mohammed Boukhalfa <mohammed.boukhalfa@est.tech>
@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 ask for approval from mboukhalfa. 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 10, 2024
@mboukhalfa mboukhalfa requested a review from tuminoid April 10, 2024 16:31
@@ -54,13 +54,10 @@ KUBERNETES_VERSION_UPGRADE_FROM="${KUBERNETES_VERSION_UPGRADE_FROM:-}"
KUBERNETES_VERSION_UPGRADE_TO="${KUBERNETES_VERSION_UPGRADE_TO:-}"
KUBECTL_SHA256="${KUBECTL_SHA256:-}"

if [[ "${IRONIC_INSTALL_TYPE}" == "source" ]]; then
# Build ironic locally when running tests on ironic-image repo
if [[ "${REPO_NAME}" == "ironic-image" ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

We do not want to always build from source. RPM installation is the default method, source building is special case.

We need to have source build triggerable via a keyword for those special cases, and default should stay RPM based install. It will still build the ironic container with the changes via tested_repo, as we can see from the e2e keyword tested yesterday, since metal3-io/ironic-image#495 failed as it depends on metal3-io/ironic-image#493 which succeeded.

/hold

@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 Apr 11, 2024
@mboukhalfa mboukhalfa closed this Apr 19, 2024
@mboukhalfa
Copy link
Member Author

tests are working as expected building ironic from main by default will be considered

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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants