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

Removes Ansible reinstall in CI pipeline #10032

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

luksi1
Copy link
Contributor

@luksi1 luksi1 commented Apr 26, 2023

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

This removes the Ansible reinstall that is run on each job of the pipeline. These steps are already performed in the image. This should speed up the pipeline considerably.

Which issue(s) this PR fixes:

Fixes #10031

Special notes for your reviewer:

Does this PR introduce a user-facing change?:
NONE

[CI] Removes Ansible reinstall from build pipeline

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Apr 26, 2023
@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Apr 26, 2023
@k8s-ci-robot
Copy link
Contributor

Hi @luksi1. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 26, 2023
@luksi1 luksi1 changed the title Removes Ansible reinstall in pipeline image Removes Ansible reinstall in CI pipeline Apr 26, 2023
@luksi1 luksi1 force-pushed the issue_10031 branch 2 times, most recently from 8019ef6 to 8149d1b Compare April 27, 2023 06:37
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Apr 27, 2023
@luksi1 luksi1 marked this pull request as ready for review April 27, 2023 08:44
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 27, 2023
@luksi1
Copy link
Contributor Author

luksi1 commented Apr 27, 2023

@MrFreezeex, I know you aren't assigned as a reviewer, but this work is in the same vain as the Dockerfile and pipleine work if you want to take a peak.

Copy link
Member

@MrFreezeex MrFreezeex left a comment

Choose a reason for hiding this comment

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

Sure, this make a lot of sense to me, thanks! :D
/ok-to-test
/lgtm

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Apr 27, 2023
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 27, 2023
@MrFreezeex
Copy link
Member

MrFreezeex commented Apr 27, 2023

Actually it currently change something: when we test with the 2.11 requirements. We might just drop supporting the two requirements versions altogether and just keep one, both versions are end of life anyway right now so I don't believe it should change much...

@luksi1
Copy link
Contributor Author

luksi1 commented May 4, 2023

Actually it currently change something: when we test with the 2.11 requirements. We might just drop supporting the two requirements versions altogether and just keep one, both versions are end of life anyway right now so I don't believe it should change much...

Good catch @MrFreezeex! I missed the CI variable for ANSIBLE_MAJOR_VERSION and was under the presumption that we were simply re-installing Ansible, since the default values from the shell script were set to 2.12 as well as the requirements.txt.

I'm going to set this to draft because it certainly isn't ready-to-go as is, but I'd like to know how we should move forward with this, since speeding up, and slimming down, the test pipeline has value both from an administration maintenance point-of-view as well as giving developers faster feedback on their PRs. Either 1) we can agree that going forward, we'll only support one version of Ansible, get that work done, rebase this, and then simply merge this as-is or 2) we believe that using two versions is best for now and in that case, I'll alter this PR to include virtuell environments for each requirements.txt and then we should be ready-to-go with this. What are your thoughts?

It might even be nice to get some feedback as well from @floryut or @cristicalin, or some other maintainers, as this decision would change Kubespray's support matrix, moving from two Ansible versions down to one, if that's the consensus.

@luksi1 luksi1 marked this pull request as draft May 4, 2023 10:27
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 4, 2023
@luksi1
Copy link
Contributor Author

luksi1 commented May 5, 2023

@MrFreezeex, I just saw the changes in #10034 and it looks like that PR moves to a one Ansible version support model. If that is the case, let's rebase this after #10034 and we should be good to go.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 3, 2023
@MrFreezeex
Copy link
Member

Hi @luksi1, now that we have only one supported version of Ansible do you have some time to rebase your PR 🙏?

@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 26, 2023
@MrFreezeex
Copy link
Member

Could you remove the draft status as well 🙏?
/lgtm

@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 26, 2023
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 27, 2023
@luksi1 luksi1 marked this pull request as ready for review June 27, 2023 06:56
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 27, 2023
@k8s-ci-robot k8s-ci-robot requested a review from cristicalin June 27, 2023 06:56
@luksi1
Copy link
Contributor Author

luksi1 commented Jun 27, 2023

The draft status is now removed @MrFreezeex. I've also added ansible-base to the requirements.txt and ensured that it's a compatible version with ansible 7.6.0.

Good work on getting us moved over to a single Ansible version!

@MrFreezeex
Copy link
Member

MrFreezeex commented Jun 27, 2023

Hmmm the image doesn't build now, guessing it's because of ansible-base probably 🤔

@luksi1
Copy link
Contributor Author

luksi1 commented Jun 29, 2023

You are right @MrFreezeex and it appears that ansible-base is deprecated and ansible-core is a dependency on ansible, so ansible-base has been wrapped into ansible-core and ansible-core has become a dependency on ansible, so we only need to install ansible and then let ansible handle the dependency matrix. You can read about it here and here.

@MrFreezeex
Copy link
Member

You are right @MrFreezeex and it appears that ansible-base is deprecated and ansible-core is a dependency on ansible, so ansible-base has been wrapped into ansible-core and ansible-core has become a dependency on ansible, so we only need to install ansible and then let ansible handle the dependency matrix. You can read about it here and here.

Indeed I also double checked and ansible 7.6.0 has a dependency with ansible-core like ansible-core~=2.14.6. So seems fair indeed 👍
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 29, 2023
@luksi1
Copy link
Contributor Author

luksi1 commented Aug 14, 2023

@MrFreezeex, do we need do anything more to get this merged?

@MrFreezeex
Copy link
Member

no it should be fine, we just need an approval. Maybe @yankay or @floryut would you be able to give a look at this somewhat old PR? 🙏

@floryut floryut added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Aug 14, 2023
Copy link
Member

@floryut floryut left a comment

Choose a reason for hiding this comment

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

no it should be fine, we just need an approval. Maybe @yankay or @floryut would you be able to give a look at this somewhat old PR? 🙏

Thank you for the PR indeed @luksi1

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: floryut, luksi1, MrFreezeex

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 14, 2023
@k8s-ci-robot k8s-ci-robot merged commit 1955943 into kubernetes-sigs:master Aug 14, 2023
@yankay yankay mentioned this pull request Aug 24, 2023
guytet pushed a commit to guytet/kubespray that referenced this pull request Oct 30, 2023
pedro-peter pushed a commit to pedro-peter/kubespray that referenced this pull request May 8, 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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

Remove Ansible re-install from pipeline image
4 participants