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

add details about running individual e2e test cases #960

Merged
merged 11 commits into from
Oct 23, 2024

Conversation

LiboYu2
Copy link
Collaborator

@LiboYu2 LiboYu2 commented Oct 15, 2024

Added 3 prerequisite steps for running individual e2e tests:
1 set up minio
2 set up/unset required environmental variables.
3 tune up timeout parameters kuttl-test.yaml

DEVELOPER.md Outdated
>
BASE_VERTICA_IMG and VERTICA_IMG are used for the upgrade test cases. The BASE_VERTICA_IMG is the base vertica vertion that will be installed. VERTICA_IMG is the vertica version that the base version will be upgraded to. The version in VERTICA_IMG must be higher than that in BASE_VERTICA_IMG.

VERTICA_DEPLOYMENT_METHOD=vclusterops lets the backend use vcluster package to manage vertica clusters, instead of the legacy admintools.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Given we still support admintools, let's say by default its value is admintools and in that case the vertica image must be admintools compatible

DEVELOPER.md Outdated
> ```shell
> unset LICENSE_FILE
>
BASE_VERTICA_IMG and VERTICA_IMG are used for the upgrade test cases. The BASE_VERTICA_IMG is the base vertica vertion that will be installed. VERTICA_IMG is the vertica version that the base version will be upgraded to. The version in VERTICA_IMG must be higher than that in BASE_VERTICA_IMG.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you move the explanation of the environment variables right below the examples mentioned above?
For example:

export VERTICA_DEPLOYMENT_METHOD=vclusterops
VERTICA_DEPLOYMENT_METHOD=vclusterops lets the backend use ...
```shell
export LICENSE_FILE=/file_path/license.key
If the total number of nodes used ...
...

DEVELOPER.md Outdated
> ```shell
> export VERTICA_DEPLOYMENT_METHOD=vclusterops
> ```
VERTICA_DEPLOYMENT_METHOD=vclusterops lets the backend use vcluster package to manage vertica clusters. If it is not set, the default value will be admintools and the vertica image must be admintools compatible.
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to indent the explanation of the environment variables.

DEVELOPER.md Outdated
> scripts/push-to-kind.sh -i $VERTICA_IMG
> scripts/push-to-kind.sh -i $BASE_VERTICA_IMG
>
This will speed up test case execution and avoid timeout.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line needs indent as well.

Copy link
Collaborator

Choose a reason for hiding this comment

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

This line needs to be fixed. It's still in a shell frame.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is fixed by the following commit

DEVELOPER.md Outdated
>
> ```shell
> make setup-minio
> ```
>
> To set up a different communal endpoint, see [Custom communal endpoints](#custom-communal-endpoints).
To set up a different communal endpoint, see [Custom communal endpoints](#custom-communal-endpoints).
Copy link
Collaborator

Choose a reason for hiding this comment

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

The explanation is currently inside a shell frame. We need to adjust the format. Could you try to remove the symbol ">" from lines 361 to 365? If this works, do the same thing for other env vars below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I made the change. It turns out ">" is used to add an indent to all lines in a graph.

@cchen-vertica
Copy link
Collaborator

There is still one comment that needs to be addressed

@LiboYu2
Copy link
Collaborator Author

LiboYu2 commented Oct 21, 2024

There is still one comment that needs to be addressed

That comment was fixed in a commit but I did not reply to that comment. Now all comments are addressed.

DEVELOPER.md Outdated Show resolved Hide resolved
@roypaulin
Copy link
Collaborator

If it is not done yet merge the main into this branch.

@cchen-vertica
Copy link
Collaborator

There is still one comment that needs to be addressed

That comment was fixed in a commit but I did not reply to that comment. Now all comments are addressed.

It's not fixed yet. From your branch, I still see that line is inside a shell frame.

@LiboYu2
Copy link
Collaborator Author

LiboYu2 commented Oct 23, 2024

There is still one comment that needs to be addressed

That comment was fixed in a commit but I did not reply to that comment. Now all comments are addressed.

It's not fixed yet. From your branch, I still see that line is inside a shell frame.

I noticed it. It is really hard to find a good local md file reviewer. I made another fix.

@LiboYu2 LiboYu2 merged commit 3c7866d into main Oct 23, 2024
35 of 37 checks passed
@LiboYu2 LiboYu2 deleted the VER-96590-doc-for-e2e-test branch October 23, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants