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

README.md: Add details on how the tests are run #20

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

Shwetha-Acharya
Copy link
Collaborator

Fixes: #19

@Shwetha-Acharya Shwetha-Acharya marked this pull request as draft August 9, 2023 15:18
@Shwetha-Acharya Shwetha-Acharya marked this pull request as ready for review August 17, 2023 08:01
@Shwetha-Acharya Shwetha-Acharya force-pushed the update-readme-new branch 6 times, most recently from 1b4b5f5 to e76b2ce Compare August 17, 2023 12:56
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@synarete synarete left a comment

Choose a reason for hiding this comment

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

Looks fine, but see style comments

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@Shwetha-Acharya Shwetha-Acharya force-pushed the update-readme-new branch 3 times, most recently from cf49681 to 7b785fe Compare August 21, 2023 13:39
Copy link
Collaborator

@obnoxxx obnoxxx left a comment

Choose a reason for hiding this comment

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

thanks for this PR! overall a great effort to enhance the docs! A few detail suggestions though.

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@spuiuk
Copy link
Collaborator

spuiuk commented Aug 22, 2023

Hello Shwetha,

Thanks for expanding on this README. This will help new users start out with the sit-test-cases repo and has been required for a while.

My comments are with respect to the sit-environment. While it started out as test cases to be run against the test environment which was setup with sit-environment, we do not have any reason to limit testing to that environment. sit-test-cases is designed to work against any SMB server and will work equally well against a locally running samba server.

I think instead of describing how to setup a sit-environment test infrastructure which requires a lot of resources, we should aim for the easiest option and describe testing against a local SMB server without going into much detail about setting up a Samba server. ie. we should start out with asking the user to have a working SMB server to test against and then proceed to setting up the test-info.yml and running the tests.

We can provide more information for sit-test-cases on sit-environment by either modifying an existing doc or creating a new one in https://github.com/samba-in-kubernetes/sit-environment/tree/main/docs

@Shwetha-Acharya
Copy link
Collaborator Author

Hello Shwetha,

Thanks for expanding on this README. This will help new users start out with the sit-test-cases repo and has been required for a while.

My comments are with respect to the sit-environment. While it started out as test cases to be run against the test environment which was setup with sit-environment, we do not have any reason to limit testing to that environment. sit-test-cases is designed to work against any SMB server and will work equally well against a locally running samba server.

I think instead of describing how to setup a sit-environment test infrastructure which requires a lot of resources, we should aim for the easiest option and describe testing against a local SMB server without going into much detail about setting up a Samba server. ie. we should start out with asking the user to have a working SMB server to test against and then proceed to setting up the test-info.yml and running the tests.

We can provide more information for sit-test-cases on sit-environment by either modifying an existing doc or creating a new one in https://github.com/samba-in-kubernetes/sit-environment/tree/main/docs

I was just wondering if it was good idea to add another option of directly using these tests on already created samba setup in sit-test-cases README.md itself?
If we provide two options, one who does not have samba setup already created can use the automation provided by sit-environment.
I had also not mentioned about already existing samba setup in this doc, as it requires manual efforts. My priority was automation.
But now I agree to your point about the additional resource utilization.

I felt it was necessary to add information in this README.md file because in sit-environment, we are already indicating about sit-test-cases repo.

As sit-test-cases is an individual repo, don't you think adding complete detail here makes it much useful?
Also as a newbie when I had installed this sit-test-cases repo, I was hoping to know about it with the help of README file. However, found the few lines in the existing file not much useful.

Please let me know if you think otherwise @spuiuk

@spuiuk
Copy link
Collaborator

spuiuk commented Aug 23, 2023

I agree that it is important to add information on how to use the repository. Since you are new to this project, your perspective on how best to present this is welcome.

I am assuming that users of this project will already have a SMB server available and would like to run their tests on them. I think it would be very useful if we just get to the point and help users get up and running with sit-test-cases.

We can add a doc on setting up a basic samba server setup for a devel environment for users who want to contribute to the sit-test-cases.

@obnoxxx
Copy link
Collaborator

obnoxxx commented Aug 25, 2023

@Shwetha-Acharya ,

Thanks again for your effort to make out docs better and more useful!
I agree with @spuiuk that this README should focus on describing how to run sit-test-cases, against some existing SMB server in the local network. in my opinion, it should not go into details about setting up an SMB server.

while it is perfectly fine and appropriate to mention https://github.com/samba-in-kubernetes/sit-environment, I think this doc and this repo are not the right places to explain how sit-environment works which was one of the main points of my previous review.

information about sit-environment should go into the sit-environment repo's docs. including details about sit-environment in this README doc does not make it more useful, to directly answer your question from the previous comment.

@Shwetha-Acharya , I don't want to sound off-putting. I am sorry if I do! your contribution to improve this doc with first hand experience from trying it out is highly appreciated! Please continue. 😄

@Shwetha-Acharya
Copy link
Collaborator Author

Thanks @obnoxxx and @spuiuk for your review, I will update the next PR accordingly!

@Shwetha-Acharya Shwetha-Acharya force-pushed the update-readme-new branch 2 times, most recently from 69d31c3 to 62fef0f Compare August 29, 2023 10:58
README.md Outdated Show resolved Hide resolved
@Shwetha-Acharya Shwetha-Acharya force-pushed the update-readme-new branch 3 times, most recently from 74686e8 to 961fc15 Compare September 21, 2023 11:22
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@synarete synarete left a comment

Choose a reason for hiding this comment

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

Looks fine, but require finial polish.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@Shwetha-Acharya Shwetha-Acharya force-pushed the update-readme-new branch 2 times, most recently from 5ee5144 to 46b108a Compare September 25, 2023 06:57
README.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@spuiuk spuiuk left a comment

Choose a reason for hiding this comment

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

ACK. Thanks for updating the README file.

@spuiuk
Copy link
Collaborator

spuiuk commented Sep 26, 2023

we have a new failure which doesn't seem to have been caused by the change in this PR but we need to fix this ASAP.

From the failed xfs test.

_______________ ERROR collecting testcases/mount/test_mount.py ________________
ImportError while importing test module '/root/sit-test-cases/testcases/mount/test_mount.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.tox/pytest/lib64/python3.6/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
testcases/mount/test_mount.py:6: in <module>
    import testhelper
E   ModuleNotFoundError: No module named 'testhelper'
__________ ERROR collecting testcases/consistency/test_consistency.py __________
ImportError while importing test module '/root/sit-test-cases/testcases/consistency/test_consistency.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.tox/pytest/lib64/python3.6/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
testcases/consistency/test_consistency.py:9: in <module>
    import testhelper
E   ModuleNotFoundError: No module named 'testhelper'

@spuiuk
Copy link
Collaborator

spuiuk commented Sep 26, 2023

Just checked the CI run from last night. This passed successfully.
https://jenkins-samba.apps.ocp.cloud.ci.centos.org/job/samba_xfs-integration-test-cases/135/console

Not sure what is causing this new failure.

@spuiuk
Copy link
Collaborator

spuiuk commented Sep 26, 2023

/retest all

@spuiuk
Copy link
Collaborator

spuiuk commented Sep 27, 2023

Shwetha, It looks like your patch is deleting the empty file conftest.py. This is causing issues with the tox running the test and it doesn't seem to accept the PYTHONPATH variable. Can you please fix this as the test is failing.

I get past this problem on my local test machine by simply creating an empty file conftest.py.

Information on working of sit-test-cases and the steps to manually run the
individual tests of sit-test-cases are missing.
Adding this data helps new contributers to quickly dive into development.

So added details and quick steps to start with individual tests.

Fixes: samba-in-kubernetes#19
Signed-off-by: Shwetha K Acharya <Shwetha.K.Acharya@ibm.com>
@Shwetha-Acharya
Copy link
Collaborator Author

Shwetha, It looks like your patch is deleting the empty file conftest.py. This is causing issues with the tox running the test and it doesn't seem to accept the PYTHONPATH variable. Can you please fix this as the test is failing.

I get past this problem on my local test machine by simply creating an empty file conftest.py.

Done!

@spuiuk
Copy link
Collaborator

spuiuk commented Oct 3, 2023

@anoopcs9 @obnoxxx @synarete @phlogistonjohn can you please take one more look at this PR.

Copy link
Collaborator

@phlogistonjohn phlogistonjohn left a comment

Choose a reason for hiding this comment

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

Works for me.

@anoopcs9 anoopcs9 requested a review from synarete October 4, 2023 12:16
@spuiuk spuiuk merged commit 3844357 into samba-in-kubernetes:main Oct 5, 2023
4 checks passed
@Shwetha-Acharya Shwetha-Acharya deleted the update-readme-new branch November 23, 2023 07:06
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.

The Readme file does not give much information on how to run the tests
6 participants