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

Assign OPENSHIFT_VERSION early if not manually defined #1652

Conversation

elfosardo
Copy link
Member

No description provided.

@elfosardo
Copy link
Member Author

/retest

@dtantsur
Copy link
Member

/approve

Copy link

openshift-ci bot commented Apr 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dtantsur

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 17, 2024
@elfosardo
Copy link
Member Author

/retest

@elfosardo elfosardo changed the title Assign OPENSHIFT_VERSION soon if not manually defined Assign OPENSHIFT_VERSION early if not manually defined Apr 17, 2024
@elfosardo elfosardo force-pushed the assign-openshift-version-soon branch 7 times, most recently from cf30bd4 to 784bceb Compare April 18, 2024 13:11
@elfosardo elfosardo force-pushed the assign-openshift-version-soon branch from 784bceb to b885ada Compare April 18, 2024 13:31
@elfosardo
Copy link
Member Author

/retest

Copy link

openshift-ci bot commented Apr 18, 2024

@elfosardo: 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
ci/prow/e2e-agent-ha-dualstack b885ada link false /test e2e-agent-ha-dualstack
ci/prow/e2e-metal-ipi-bm-bond b885ada link false /test e2e-metal-ipi-bm-bond
ci/prow/e2e-metal-ipi-serial-ovn-ipv6 b885ada link false /test e2e-metal-ipi-serial-ovn-ipv6

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/test-infra repository. I understand the commands that are listed here.

Copy link
Member

@zaneb zaneb left a comment

Choose a reason for hiding this comment

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

This is dragging us deeper and deeper into dependency hell.

I created release_info.sh so that we would not have to include it everywhere that utils.sh is used.
This patch is now including both release_info.sh and utils.sh in common.sh so that basically every function is available everywhere and you have to have all of the data in the system in your head to know if any of it is going to work.

Bash is a horrible language to write something this big in. What we have now is borderline unmaintainable. This is going in exactly the wrong direction IMHO and I fear it will push us right over the edge. We need to make it more modular over time and not throw everything in one big pot.

common.sh Show resolved Hide resolved
@elfosardo
Copy link
Member Author

/hold
I'm not happy either about this, I was looking for a way to just get OPENSHIFT_VERSION early during the run to be available for the entire process, but at some point we got in a dependency loop.
Besides the fact that bash is definitely not the right way to go, we should find an alternative to provide all the needed info, especially a basic one like the running openshift version, at the start of the script.
I won't continue this, but I'll leave it here for the time being just as a reminder of the current status of dev-scripts.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 19, 2024
@elfosardo elfosardo closed this Apr 29, 2024
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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants