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

[Composer] Added RepositoryTestCase to explicit classmap #387

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Oct 3, 2023

Question Answer
JIRA issue n/a
Required by ezsystems/ezplatform-solr-search-engine#246
Type bug
Target Ibexa version v3.3+
BC breaks no

When adding RepositoryTestCase to forward-compatible Ibexa namespace I forgot that those namespaces need to be available for external packages, like Ibexa Solr Bundle, because CI there executes these tests directly. Placing it in the new structure ./tests directory made it available to kernel only as it belongs to autoload-dev section.

As a quick workaround I added this class to composer autoload.classmap. For Ibexa 4.x we already have ibexa/test-core package which seems to be more appropriate place. I recommend that we spend some time to refactor Solr Bundle tests so they don't rely on test classes from core. We need more common search test shared base.

TODO

Checklist:

  • Provided PR description.
  • Tested the solution manually.
  • Provided automated test coverage.
  • Checked that target branch is set correctly.
  • Ran PHP CS Fixer for new PHP code (use $ composer fix-cs).
  • Asked for a review.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Steveb-p Steveb-p requested a review from a team October 4, 2023 11:57
@alongosz alongosz added the Bug Something isn't working label Oct 4, 2023
@alongosz alongosz merged commit 83cc49f into 1.3 Oct 4, 2023
29 checks passed
@alongosz alongosz deleted the fix-failing-solr-integration-tests branch October 4, 2023 12:50
alongosz added a commit to ezsystems/ezplatform-solr-search-engine that referenced this pull request Oct 4, 2023
For more details see #247 and ezsystems/ezplatform-kernel#387

Key changes:

* [Composer] Added league/flysystem-memory and sorted packages (needed for Kernel-based integration tests)

* Installed symfony/proxy-manager-bridge

* Disabled process timeout when running integration tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Development

Successfully merging this pull request may close these issues.

7 participants