Andrzej Wójcik (Tigase) opened 8 years ago
|
|
I've checked failed tests which should pass and it was caused by few issues in components ported to kernel. I fixed this components. There are still some tests failing, most likely due to misconfiguration of my test server. I need to verify this, but I think it is not important and may be done later. |
|
I needed to add following settings to make most of tests pass:
Still need to review issues with Jaxmpp tests failing with new version of Jaxmpp:
|
|
I found few issues related to new version of Jaxmpp and changed event propagation mechanism from synchronous to single threaded which lead to improper state of Jaxmpp instance after error or reconnection and fixed it. Looks like most of TTS-NG tests passes and for me only tests without valid configuration like |
|
Given those are "general functionalities" I think we should make them pass as well - those would require particular configuration on server side (see "V" project for what's required) and provide this configuration as the "dist" in the tts-ng. |
|
I checked this 2 last tests and they work fine. I prepared example |
|
I've tried to run the TTS against 7.2.0 with the provided
|
|
Wojciech Kapcia wrote:
I've fixed most of the issues. I think that only 1 is left with SASL SCRAM mechanism ignoring state of account - so even user with disabled account can log in as it uses
No, this is correct. Fields are in separate class not in
As I mentioned, most of them is working now. In most cases issues were caused by changes in configuration and addition of new features which were not enabled in example config file which I provided. It would be best to check after next snapshot build will be generated to make sure that all my changes are include in a build. |
|
I run the tests against latest nightly and they still seem to fail (with the clean DB, just created):
Most of the time it looks like off by 1 error (looking at the sizes). Also, at one point Tigase started with the DB exceptions (most likely concurrency problems) most likely adding to failing tests:
|
|
%wojtek I've just executed same TTS-NG on a clean database (using older version of MySQL 5.5) and I got following results:
Some of them may be related to usage of I've also found that some errors are reported as Tigase uses I will check every single issue reported in this list and try to fix it, or if issue is bigger I will create separate task for that. |
|
Andrzej Wójcik wrote:
I was executing it with The locks happened after 2-3 runs. If I reproduce them in the future I'll report it.
Which tests? There were a couple of tests but I think they were testing BMP symbols only so should fit into basic utf8 supported by MySQL. |
|
Most of issues was caused by lack of precision in MySQL database schema - Additionally I've found few issues in tests (as code in server is more strict now in some cases) Here is a list of issues and tests which were failing because of each issue:
We should consider to improve TTS-NG so it would automatically register admin accounts so automatic tests will be better as while I was running tests on empty DB I forgot to create admin user. I think we should also automatically create PubSub node and subscribe admin to it for We are now left with following errors:
This needs to be fixed in server source code as SCRAM retrieves password without checking if account is disabled or not.
If I'm correct it is now required to have a running mail server for this test to pass - not a good idea for automatic tests. |
|
Andrzej Wójcik wrote:
We need to bring back TTS nightlies in jenkins pronto, and probably finally configure TTS-NG as well, but for that we need sane defaults that we can quickly copy and provide configuration to the server.
Thanks, there was a related issue reported with this! With the:
I still see following tests falling:
Can be a good idea, especially for other domains (e.g. test of two-way TLS)
Looking at the code - there was a code doing that but it's commented out?
That's another problem (vide: #5076) - I've created: #5084
Why this task can't be disabled? When running the tests I've encoutered a couple of more problems:
|
|
Wojciech Kapcia wrote:
Yes, we need this, as not this task started to be a bag for all issues related to TTS-NG, test configuration issues, issues related to new changes in code, etc.
This tests are passing for me. This issues were related to timing and usage of
Right now it is required to manually prepare admin users, nodes, etc. This is not a good idea, and it is easy to forget about something. If we provide TTS-NG to everyone so, they could test it, it need to be automatic as much as possible to deal with possible configuration issues on user side leading user to believe that our software is buggy (as tests will be failing).
I think you should ask Bartosz about that, as he is author of this test and he removed this part (commented out).
OK
I'm not sure. I think it would be best to delegate this to person who created this feature and test to verify it.
This is fixed now. |
|
Andrzej Wójcik wrote:
Created #5205. I'll work on it ASAP. One thing that seems to be missing is ability to reference various databases while maintaining common init-properties (then the only thing changing is the JDBC url thus chances of skipping some property in one database is smaller) - is it possible to have something like this with DSL config format? AFAIR now it only supports one property file? (this can be followed-up in different ticket if appropriate)
I've re-run the tests with the latest nightly, new database and latest stable MySQL5.7 and those tests passed (i.e. no more discrepant number of returned items).
%bmalkow can you comment on the issue shortly? Why you skipped out in the end creation of the required node within the test? Was it that it was possible to configure different name? %andrzej.wojcik %bmalkow - possibly a followup in #5207?
As I mentioned - almost all works for me now so I would close this issue and focus on automatic tests (and fix issues detected on the nightly basis). |
|
It is possible to use variables now, so you can set environment variable and in DSL file reference to use value of following environment variable as a database URI. |
|
Thank you Andrzej, closing the issue. |
Type |
Task
|
Priority |
Normal
|
Assignee | |
RedmineID |
4348
|
Version |
tigase-server-8.0.0
|
Spent time |
260h
|
While working on refactoring of TTS-NG, I looked on results and some tests are not passing event that this test should pass.
We need to make sure that all tests that should pass are passing as a lot of changes in 7.2.0 could create issues with this tests.