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 2 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.

Issues: Fixed #xxx / Gap #xxx

Testing Instructions:

  • Doc added/updated
  • Tests added

@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
@@ -0,0 +1,94 @@
name: Upgrade Tests
on: [push, pull_request, workflow_dispatch]
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure you want to run this workflow on every PR?
From what you ran so far was it stable? (no false failures)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes I think, here we want to run the tests after upgrading to the latest code pushed.

./.travis/number_of_pods_in_system.sh --pods 5
kubectl wait --for=condition=available backingstore/noobaa-default-backing-store --timeout=5m

- name: Run Upgrade Tests (PR code)
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove this comment after the code review

Suggested change
- name: Run Upgrade Tests (PR code)
- name: Run Upgrade Tests

- name: Upgrade noobaa to latest
run: |
cd ./noobaa-operator
./build/_output/bin/noobaa-operator upgrade --noobaa-image='noobaa-core:upgrade-tests'
Copy link
Contributor

Choose a reason for hiding this comment

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

From the comments I can see that:

"The command should be used in conjunction with the global flags --noobaa-image and --operator-image to upgrade the system and its components to the desired versions."

reference, I noticed only one flag (--noobaa-image).

Copy link
Member Author

Choose a reason for hiding this comment

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

If its required here to provide both the flags then I will add --operator-image also. Thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

What do you mean by "latest"? can you give an example?
The current version is 5.18, we released 5.17, what do we want the script to test?
Could you echo a line that prints the upgrade that we test here somewhere?

Copy link
Member Author

Choose a reason for hiding this comment

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

The idea here is that we are first installing operator with master code and then we are upgrading the images with the latest code pushed.

Makefile Outdated
test-upgrade: tester
@echo "\033[1;34mRunning Upgrade Tests - after upgrading from master to latest\033[0m"
chmod +x ./src/test/system_tests/run_upgrade_tests.sh
./src/test/system_tests/run_upgrade_tests.sh || exit 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Why || exit 1?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is just for phase1 testing purpose. I will remove it. Thanks

make noobaa NOOBAA_TAG=noobaa-core:upgrade-tests

- name: Checkout noobaa-operator
uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

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

Why actions/checkout@v3?
The others are actions/checkout@v4.
I mean in the jobs that we download both of them:

Download action repository 'actions/checkout@v4' (SHA:11bd71901bbe5b1630ceea73d27597364c9af683)
Download action repository 'actions/checkout@v3' (SHA:f43a0e5ff2bd294095638e18286ca9a3d1956744)

(reference)

Copy link
Member Author

@achouhan09 achouhan09 Dec 3, 2024

Choose a reason for hiding this comment

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

Its a typo, I will update it to v4 for all. Thanks

cd ./noobaa-operator
./build/_output/bin/noobaa-operator upgrade --noobaa-image='noobaa-core:upgrade-tests'

- name: Wait for phase Ready in the backingstore pod
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to wait again for the backingstore pod?
Could you add a comment about 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.

I think you are right it is not required after upgrading. I will verify it once and update accordingly. Thanks

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