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

PR1 - To install and upgrade noobaa version for running the tests #8517

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

achouhan09
Copy link
Member

@achouhan09 achouhan09 commented Nov 11, 2024

Explain the changes

  1. This PR is mainly to install and upgrade noobaa version from master to latest.

Testing Instructions:

  1. In PR2 we will the the required tests.

@achouhan09 achouhan09 marked this pull request as draft November 11, 2024 16:19
@achouhan09 achouhan09 force-pushed the upgrade-tests branch 8 times, most recently from 1032b01 to 15a23fc Compare November 18, 2024 16:08
@achouhan09 achouhan09 marked this pull request as ready for review November 19, 2024 07:42
@achouhan09 achouhan09 changed the title Added upgrade tests PR1 - To install and upgrade noobaa version for running the tests Nov 19, 2024
@pull-request-size pull-request-size bot added size/L and removed size/M labels Nov 27, 2024
.github/workflows/upgrade-tests.yaml Show resolved Hide resolved
.github/workflows/upgrade-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/upgrade-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/upgrade-tests.yaml Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
.github/workflows/upgrade-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/upgrade-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/upgrade-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/upgrade-tests.yaml Outdated Show resolved Hide resolved
@achouhan09 achouhan09 force-pushed the upgrade-tests branch 4 times, most recently from 9fcd6af to 7808b68 Compare December 30, 2024 15:36
@achouhan09 achouhan09 requested a review from shirady December 31, 2024 06:13
.github/workflows/upgrade-tests.yaml Show resolved Hide resolved
--db-resources='{ "limits": {"cpu": "200m","memory": "2G"}, "requests": {"cpu": "200m","memory": "2G"}}' \
--core-resources='{ "limits": {"cpu": "200m","memory": "1G"}, "requests": {"cpu": "200m","memory": "1G"}}' \
--endpoint-resources='{ "limits": {"cpu": "200m","memory": "1G"}, "requests": {"cpu": "200m","memory": "1G"}}' \
--noobaa-image='noobaa-core:${{ env.BRANCH_NAME || 'master' }}'
Copy link
Contributor

Choose a reason for hiding this comment

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

In the step you wrote: "Install noobaa system (from master)" - did you mean master in the core repo, right? Then why --noobaa-image='noobaa-core:${{ env.BRANCH_NAME || 'master' }}'? I think it should be noobaa-core:upgrade-tests (which according to the steps represents "Build noobaa (latest)".
Are you sure the system should be installed in the latest version?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have also added pull request referece in latest build (in step 4) in my last commit, it would work I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed the pull request reference as we don't need it I can see the latest code logs inside the upgrade tests pipeline, this proves that we checked out to latest code. Thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I still don't understand it - I think that the title should be updated "Install noobaa system (from master)" It is not from master as we passed --noobaa-image='noobaa-core:${{ env.BRANCH_NAME || 'master' }}'

.github/workflows/upgrade-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/upgrade-tests.yaml Outdated Show resolved Hide resolved
@achouhan09 achouhan09 force-pushed the upgrade-tests branch 2 times, most recently from ddd44ab to 5719ee6 Compare January 3, 2025 15:58
@achouhan09 achouhan09 requested a review from shirady January 3, 2025 15:58
@@ -1,5 +1,5 @@
name: Upgrade Tests
on: [push, pull_request, workflow_dispatch]
on: [pull_request]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why did you change it?

Copy link
Member Author

Choose a reason for hiding this comment

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

No need of it, removed. thanks

@shirady
Copy link
Contributor

shirady commented Jan 5, 2025

@achouhan09 I see the last run failed (link).

cd ./noobaa-core
make noobaa NOOBAA_TAG=noobaa-core:${{ env.BRANCH_NAME || 'master' }}

- name: Checkout noobaa-core (latest)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think "latest" might be confusing - as it is according to the branch that was set in the input, right?

--db-resources='{ "limits": {"cpu": "200m","memory": "2G"}, "requests": {"cpu": "200m","memory": "2G"}}' \
--core-resources='{ "limits": {"cpu": "200m","memory": "1G"}, "requests": {"cpu": "200m","memory": "1G"}}' \
--endpoint-resources='{ "limits": {"cpu": "200m","memory": "1G"}, "requests": {"cpu": "200m","memory": "1G"}}' \
--noobaa-image='noobaa-core:${{ env.BRANCH_NAME || 'master' }}'
Copy link
Contributor

Choose a reason for hiding this comment

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

I think I still don't understand it - I think that the title should be updated "Install noobaa system (from master)" It is not from master as we passed --noobaa-image='noobaa-core:${{ env.BRANCH_NAME || 'master' }}'

- name: Wait for phase Ready in the backingstore pod
run: |
cd ./noobaa-operator
./.travis/number_of_pods_in_system.sh --pods 5
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure we still need this.
In PR #7237 I mentioned that:

Run a script to wait until we have the backingstore pod (in k8s we cannot wait for a resource that doesn't exist (more information kubernetes/kubectl#1516, based on the change we did in noobaa/noobaa-operator#1063).

But it was on March 2023 and since that time I think the issue was closed with a solution that we can use.
Anyway, in version 4.19 the number of pods would probably change, so better avoid it if we can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants