-
Notifications
You must be signed in to change notification settings - Fork 91
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
drupal-clean, drupal-demo - Switch to civicrm_install_cv #735
Conversation
3d57422
to
388da02
Compare
fd66bea
to
7698fd0
Compare
On new local build with @colemanw Any chance you could checkout this branch and try something like: civibuild create tmp --type drupal-clean
civi-test-run -b tmp -j /tmp/junit phpunit-searchkit It should generate something like this: https://gist.github.com/totten/f2efd3f45dbf5cea55d10bc0f7fece3f |
@totten how do I checkout a branch before installing a build? |
There's a secondary issue which I don't fully understand yet.
Context:
After running tests more times than I care to recall... it seems this issue has gone away circa 5.52+ -- so maybe it's not critical from core pov. (The prior comment though -- regarding SK's test-suite -- is still problematic and would affect |
Not certain the question - here a few answers:
|
@totten it's possible you stopped seeing the error in later versions because of civicrm/civicrm-core#24977 But whether you're still seeing it in 5.56 or not, here is an extra safeguard which IMO should be merged in regardless: |
OK, cool, applying 25114 on 5.51 does fix the I also did a new run of Well... Finally found a thread to pull. Those failures appear to be an interaction between the various test-suites. So it recurs if you use ## Flow 1
civi-test-run -b tmp -j /tmp/junit-solo phpunit-searchkit ## Pass
civi-test-run -b tmp -j /tmp/junit-solo phpunit-searchkit ## Pass
civi-test-run -b tmp -j /tmp/junit-solo phpunit-searchkit ## Pass
## Flow 2
civi-test-run -b tmp -j /tmp/junit phpunit-core-exts ## 10 failures
civi-test-run -b tmp -j /tmp/junit-solo phpunit-searchkit ## 10 failures
civi-test-run -b tmp -j /tmp/junit-solo phpunit-searchkit ## Pass |
OK, the interaction involves civiimport<=>search_kit. This reproduces the problem:
|
Throwing in a (civibuild restore && cv flush && cd civiimport && phpunit8 --group headless )
(civibuild restore && cv flush && cd search_kit && phpunit8 --group headless ) Interestingly, deleting |
@totten possibly the packaged searches that come with |
Use-case: * Install with Civi 5.55 * Switch code to Civi 5.51 * Run `civibuild reinstall` Before this patch, the step fails because `composer` is still out of date. After this patch, it updates (similar to the original drupal-demo scripts)
7698fd0
to
8f6b54c
Compare
Context: We recently made `search_kit` mandatory and wanted to update the `drupal-clean` profile to use the standard installer (which will enable `search_kit` sooner). However, `civi-test-run phpunit-core-exts` exhibits a weird failure in this mode (see #735). The failure can be reproduced most quickly by comparing: cd ext (civibuild restore && cd civiimport && phpunit8 --group headless ) (civibuild restore && cd search_kit && phpunit8 --group headless ) But if you throw in an extra `cv flush` after resetting the DB, it works fine. This is strange, and it doesn't seem to be as simple as `templates_c`-clash. Still not sure what resource is conflicted. Regardless, this script is only used in CI, so the extra second of runtime won't be noticed.
OK, I've used the simple Zooming back out to PR overall... I haven't really tested this across a full matrix, but I'm disinclined to do so -- it took a ton of time to reproduce/isolate the I should note tangentially -- there are recent/pre-existing failures ( But we should keep an eye open on all versions ( |
Resubmission of #673 / #661.
I've started a local run of
civi-test-run all
on adrupal-clean
site to make sure it still runs the full suite.