phpbb icon indicating copy to clipboard operation
phpbb copied to clipboard

[ticket/16935] Add sphinx tests

Open rxu opened this issue 3 years ago • 12 comments

Checklist:

  • [x] Correct branch: master for new features; 3.3.x for fixes
  • [ ] Tests pass
  • [x] Code follows coding guidelines: master and 3.3.x
  • [x] Commit follows commit message format

PHPBB3-16935.

rxu avatar Dec 14 '21 07:12 rxu

Why does the checks always fails at phpbb_functional_visibility_softdelete_test::test_split_topic ? 🤔

Dark1z avatar Dec 14 '21 17:12 Dark1z

Failures are random, depending on the weather and github's mood.

3D-I avatar Dec 14 '21 17:12 3D-I

Failures are random, depending on the weather and github's mood.

nah! it's at phpbb_functional_visibility_softdelete_test::test_split_topic Only !!!

Dark1z avatar Dec 14 '21 17:12 Dark1z

I see also: phpbb_functional_search_sphinx_test::test_search_backend

3D-I avatar Dec 14 '21 17:12 3D-I

That's because I'm debugging the issue so failures vary. The actual one is test_split_topic which I didn't figure out yet. Same code works fine for master but not for 3.3.x. Sphinx search works here but not for splitting topic.

rxu avatar Dec 14 '21 17:12 rxu

We have uncovered the whole mystery, you are the cause of everything. 😃

3D-I avatar Dec 14 '21 17:12 3D-I

Currently the main cause I suppose is incorrect search indexing of edited posts -> topic titles in 3.3.x Sphinx search backend which is not the case for master for some reason.

rxu avatar Dec 14 '21 17:12 rxu

We have uncovered the whole mystery, you are the cause of everything. 😃

I can see you are in very good mood today, did you flip your "Funny" mode ?

Dark1z avatar Dec 14 '21 18:12 Dark1z

It's Christmas time, it's short term. 🎅🏼

3D-I avatar Dec 14 '21 18:12 3D-I

Confirmed that edited posts don't get into delta index on 3.3.x. No clue where's the culprit in the code though.

rxu avatar Dec 15 '21 05:12 rxu

Closed and reopened to force GitHub to run the tests again. Couldn't restart them directly. 🤷

marc1706 avatar Jan 17 '22 20:01 marc1706

This code works for master but not for 3.3.x for some reason. Probably different tests order affects or something.

rxu avatar Jan 18 '22 08:01 rxu

Closed and reopened to force GitHub to run the tests again. Couldn't restart them directly.

@marc1706 Actions in the menu here on GH. Should be able to rerun specific (failing) tests. No need to close/reopen PR.

wojtekxtx avatar Oct 14 '22 11:10 wojtekxtx

I've played around a bit with this but it really seems like tests don't want to work on 3.3.x. Will just close this PR as it's already working on master.

marc1706 avatar Jan 08 '23 19:01 marc1706