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

[stable14] Move acceptance tests that crash the PHP built-in server to Apache #12121


Copy link

@danxuliu danxuliu commented Oct 29, 2018

Backport of #12104

danxuliu added 3 commits Oct 28, 2018
Signed-off-by: Daniel Calviño Sánchez <>
In order to run the acceptance tests in Apache "/var/www/html" has to be
linked to the root directory of the Nextcloud server. Before this was
automatically done when launching the acceptance tests through
"./", but an explicit command was needed when run in Drone. Now
the linking was moved from "" to "", so it is
automatically done when run through "./" and in Drone, including
when running the tests for an app instead of for the server.

Signed-off-by: Daniel Calviño Sánchez <>
The PHP built-in server can crash when certain actions are performed in
Nextcloud (but although the crash is triggered by Nextcloud it does not
seem to be a Nextcloud bug), which can lead to failures in the
acceptance tests that would have otherwise passed.

A crash of the PHP built-in server during an acceptance test can be
identified by the message "sh: 1: kill: No such process" in the
acceptance tests output; as the PHP built-in server crashed its process
does no longer exist when it is tried to be killed when the scenario

Although the crash has been observed in other tests too it is more
prevalent in the tests for tags and the theming app. In order to
reduce the false positives those tests are now run on Apache instead of
on the PHP built-in sever. However, the rest of tests are still run on
the PHP built-in server due to its lower resource consumption.

In order to run a feature or just a scenario using Apache it has to be
tagged with "@apache"; features or scenarios without that tag (the
default) will run on the PHP built-in server instead.

Signed-off-by: Daniel Calviño Sánchez <>
@danxuliu danxuliu added this to the Nextcloud 14.0.4 milestone Oct 29, 2018
@danxuliu danxuliu requested review from rullzer and MorrisJobke Oct 29, 2018
@rullzer rullzer merged commit 074672f into stable14 Oct 29, 2018
1 check passed
1 check passed
continuous-integration/drone/pr the build was successful
@rullzer rullzer deleted the stable14-12104-move-acceptance-tests-that-crash-the-php-built-in-server-to-apache branch Oct 29, 2018
@MorrisJobke MorrisJobke mentioned this pull request Nov 13, 2018
@MorrisJobke MorrisJobke mentioned this pull request Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants