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

Check Tests #175

Open
luke- opened this issue Apr 27, 2023 · 7 comments
Open

Check Tests #175

luke- opened this issue Apr 27, 2023 · 7 comments
Labels

Comments

@luke-
Copy link
Contributor

luke- commented Apr 27, 2023

It seems that the tests currently fail randomly.

@yurabakhtin
Copy link
Contributor

@luke- Yes, I confirm it is randomly, because after commit the PR #182 tests were broken, and only after re-run they became green. It looks sometimes not enough time to execute, and it always randomly.

@luke-
Copy link
Contributor Author

luke- commented May 31, 2023

@yurabakhtin Can you identify which steps has not enough time?

@yurabakhtin
Copy link
Contributor

@luke- Today I have re-run the tests of the PR 2 times and they were successful.
Then I run them locally:

tests_random_error

The error $I->waitForElement(".disable-module-cfiles") at ..\..\..\humhub\tests\codeception\_support\AcceptanceTester.php:258 is from core module enabling $I->enableModule($guid, 'cfiles').

tests_random_error2

The error 31. $I->waitForText("newFile.txt") at codeception\_support\AcceptanceTester.php:46 because default time is 10 seconds waitForElement($element, $timeout = 10) but I am not sure that we should increase it to 15 or 20 seconds because after that error I could run 4 times locally without error and then again the same error.

Maybe my local server is not enough fast and we just should merge the PR #182 and wait when new error will appears.

@luke-
Copy link
Contributor Author

luke- commented Jun 1, 2023

@yurabakhtin Ok, thanks. Then lets try it PR 182 is enough. Otherwise we can try to increase the timeout.

@luke- luke- closed this as completed Jun 1, 2023
@yurabakhtin
Copy link
Contributor

@luke- After merge the PR I see an error only on PHP 8.1-mysql-5.7-humhub-master - https://github.com/humhub/cfiles/actions/runs/5145542272/jobs/9263314209

I can try to increase a time here https://github.com/humhub/cfiles/blob/master/tests/codeception/_support/AcceptanceTester.php#L137 but not sure we should do this.

@luke-
Copy link
Contributor Author

luke- commented Jun 1, 2023

@yurabakhtin Hmm, any other idea instead to increase this timeout?

@luke- luke- reopened this Jun 1, 2023
@yurabakhtin
Copy link
Contributor

@luke- Sorry, no idea because it looks correctly:

debug

Maybe only if set the second param 10 because the method has the declration public function waitForText($text, $timeout = 10, $selector = NULL).

@luke- luke- assigned luke- and unassigned yurabakhtin Jun 7, 2023
@luke- luke- removed their assignment Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants