-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Removing host from test configs #23122
base: 5.x-dev
Are you sure you want to change the base?
Conversation
Hi @snake14, was it a problem when the DDEV project name was different to matomo.ddev.site? |
Testing on a Mac without the http_host config seems to work ok, so it might be safe to remove this. UI tests ran as expected. |
Hi @michalkleiner . Yes. When running |
I guess the best solution would be to set the hostname to the one configured in ddev config. That should in best case also happen for this config: https://github.com/matomo-org/matomo/blob/5.x-dev/.ddev/initial-config/config.js |
@sgiehl I'm not sure I follow. This PR is because setting the tests http_host to the same host as the ddev config isn't working for Ubuntu. The tests aren't able to connect. They only worked as expected when I removed the http_host like I did in this PR. |
@snake14 I thought you were using |
@snake14 and did you run the tests from inside the DDEV environment? They should be run via I agree with Stefan that we could update all the hosts configs to be in line with the project name, but that is more related to our internal setup rather than the config here in the open source project repo where we anticipate people will run it on the default |
@snake14 if you could confirm the UI tests work with the http_host config in place when running them inside the ddev containers, then we can close this PR. |
@michalkleiner I have it running under a different hostname and UI tests don't run with the config created by the init. |
Interesting, @sgiehl, thanks for confirming that. I never had a problem with that, but that could be OS-dependent or docker provider-dependent thing. Anyway, the default configuration in the core repo is meant to work seamlessly for If things work for |
@sgiehl @michalkleiner I was using Edit: I just tested, and it does appear to run the UI tests alright with or without the |
What error does the OmniFixture creation produces, @snake14? I just ran default core config and had no issues on a Mac, it's strange that it would behave differently on other OS's. We can discuss internally perhaps. |
@michalkleiner It appears to be a connection refused error from the python script executed by Fixture::executeLogImporter. When the |
This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers |
Description:
On Ubuntu 24.04, I found that while running
ddev matomo:init:tests
the building of the OmniFixture failed due to aConnection refused
error. Once I removed thehttp_host
from thetests
configs, everything ran as expected.Review