-
Notifications
You must be signed in to change notification settings - Fork 7
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
Refactor propfind tests and add a new one #18
Conversation
run k6 test with docker ocis and local k6: tests were successful:
small finding, here it try to run file |
good catch, thanks :) Fixed |
cc: @dragotin we need to come up with an concept hof those tests, maybe we can test with a smaller amount of files and still can get a meaningful result... ideas? I say we need to go to the lab and brainstorm |
we need to check and investigate, if the flakyness is in the tests.... this is not good. I bet it's the backend because we hammer it too much, then its a good thing and cdpers presents us the weak spots |
Agreed. If there are failing requests in the the tests, we need to recognize that immediately and fix the backend. The full success of the test should be an acceptance criteria for releases etc. I think the amount of files should not be the problem. It should be a for the test reasonable, and kind of "serious" amount of files... |
i mentioned the amount because it takes 30 minutes now to get an answer, maybe we can also reduce the amount of files inside a nested folder, be faster and be able to answer the same questions.... just thinking loudly ;) |
@dragotin can we discuss the new tests this week, dont wanna have this opened for too long |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@individual-it @fschade and me had a brief discussion yesterday and he proposed to run this test with less files to make it run faster. WIP I guess ;-) |
@fschade @ScharfViktor it would be cool to get this in :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My approval, but keep in mind: I am a javascript noob.
We added a test description doc in Do you mind rebasing and adding some description about these new tests? Thanks a lot. |
@individual-it i understand that the tests took really long… but I think this is not a test that will run too often, it’s more or less something to really get some pressure to the instance. I will refactor the test later and try to get it best of both worlds. |
@fschade what response would you expect if the server is under load? can we code that into the test? |
@individual-it in my opinion its ok if the test fails because of high load. We should not reduce the load to make the result green, instead we should finetune the server to be able to handle it. |
refactor to shared propfind lib add new propfind test with a depth of 45
@fschade yes I totally agree, I didn't meant to reduce the load, but wanted to ask what should happen under high load and if the server reacts correctly now. I assumed the server reacts under high load already as it should, if that is the case then I would love to get the tests green. |
Let me try to summarize:
As long as we can not check if 500 = red test or 492 = green I agree, we need to tweak the test that does not run into the overload. OTOH it would make sense to have this test case to provoke the 500 situation and debug it. Long story short: For now, we absolutely need a non failing version of the test. Either by debugging the server, enhancing the test to distinguish reply codes or lower the load on the server. I vote for the latter for now. |
b5b53ba
to
81d35c6
Compare
thanks for all your feedback, i created a less heavy version of the test. Should be good to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one small find
src/k6/src/test/issue/github/ocis/1018/propfind/deep_100_files_45_nested_folders.ts
Outdated
Show resolved
Hide resolved
updated the tests to be less pressing and time consuming
this resulted in a funny graph https://grafana.k6.infra.owncloud.works/d/8IV_hHt7k/test-durations?orgId=1&from=1644487427677&to=1644755529309 seems like multiple results of the test run are reported. Any idea what happened there? |
Description
Today we discussed that we need another propfind test with a deeper nested folder structure, in this breath i refactored those to use a shared lib which makes developing propfind tests more easy. Cc.: @dragotin & @ScharfViktor
To keep the old results meaningful the test with a nesting count of 5 is still there.
Changes
ToDos