Hi there,
I cannot find resources on how to configure my jenkins installation, I asked for help in IRC, searched on d.o. and many google sites, I'm still struggling so i'm asking support here.
Basically I set-up my jenkins server to fetch a fresh copy from svn/git, run the script/run-tests.sh with the following command:
cd $WORKSPACE
yes | drush si --db-url=mysql://test:test@localhost:3306/testing
yes | drush en simpletest
rm -rf scripts/tests/*.xml
/usr/bin/php scripts/run-tests.sh --url http://localhost:8002/ --all --php /usr/bin/php --xml scripts/tests
Tests are running, the WORKSPACE is accessible by HTTP on port 8002. I got 19k failures, and 20k success. I won't post the full --verbose stack but here is what I found-out from the first two tests:
Test run duration: 10 sec
Detailed test results
---------------------
---- ActionLoopTestCase ----
Status Group Filename Line Function
--------------------------------------------------------------------------------
Pass Other actions.test 79 ActionLoopTestCase->setUp()
Enabled modules: dblog, trigger, actions_loop_test
Pass Role actions.test 86 ActionLoopTestCase->testActionLoop(
Created role of name: mZAQvvuA, id: 4
Pass Role actions.test 86 ActionLoopTestCase->testActionLoop(
Created permissions: administer actions
Pass User login actions.test 86 ActionLoopTestCase->testActionLoop(
User created with name hYclm9hV and pass HcW3pHVTZu
Pass Browser actions.test 87 ActionLoopTestCase->testActionLoop(
GET http://localhost:8002/user returned 200 (7.09 KB).
Pass Browser actions.test 87 ActionLoopTestCase->testActionLoop(
Valid HTML found on "http://localhost:8002/user"
Pass Browser actions.test 87 ActionLoopTestCase->testActionLoop(
GET http://localhost:8002/user/2 returned 403 (7.33 KB).
Pass Browser actions.test 87 ActionLoopTestCase->testActionLoop(
Valid HTML found on "http://localhost:8002/user/2"
Fail User login actions.test 87 ActionLoopTestCase->testActionLoop(
User hYclm9hV successfully logged in.
Pass Browser actions.test 91 ActionLoopTestCase->testActionLoop(
GET http://localhost:8002/admin/structure/trigger/actions_loop_test returned
403 (8.16 KB).
Pass Browser actions.test 91 ActionLoopTestCase->testActionLoop(
Valid HTML found on
"http://localhost:8002/admin/structure/trigger/actions_loop_test"
Fail Other actions.test 91 ActionLoopTestCase->testActionLoop(
Failed to set field aid to hPh0ftQsfx5g69Q7Xde4fJPfKOeNJ1-VDQxX4aTpZho
Fail Other actions.test 91 ActionLoopTestCase->testActionLoop(
Found the Assign button
Fail Other actions.test 91 ActionLoopTestCase->testActionLoop(
Found the requested form fields at admin/structure/trigger/actions_loop_test
Pass Browser actions.test 110 ActionLoopTestCase->triggerActions(
GET http://localhost:8002/?trigger_actions_on_watchdog=1 returned 200 (6
KB).
Pass Browser actions.test 110 ActionLoopTestCase->triggerActions(
Valid HTML found on "http://localhost:8002/?trigger_actions_on_watchdog=1"
Pass Other actions.test 122 ActionLoopTestCase->triggerActions(
Expected message Triggering action loop, got Triggering action loop.
Fail Other actions.test 124 ActionLoopTestCase->triggerActions(
All expected messages found.
---- ActionsConfigurationTestCase ----
Status Group Filename Line Function
--------------------------------------------------------------------------------
Pass Role actions.test 18 ActionsConfigurationTestCase->testA
Created role of name: opZagc34, id: 4
Pass Role actions.test 18 ActionsConfigurationTestCase->testA
Created permissions: administer actions
Pass User login actions.test 18 ActionsConfigurationTestCase->testA
User created with name n49qgG5h and pass qn782YKBrm
Pass Browser actions.test 19 ActionsConfigurationTestCase->testA
GET http://localhost:8002/user returned 200 (7.09 KB).
Pass Browser actions.test 19 ActionsConfigurationTestCase->testA
Valid HTML found on "http://localhost:8002/user"
Pass Browser actions.test 19 ActionsConfigurationTestCase->testA
GET http://localhost:8002/user/2 returned 403 (7.33 KB).
Pass Browser actions.test 19 ActionsConfigurationTestCase->testA
Valid HTML found on "http://localhost:8002/user/2"
Fail User login actions.test 19 ActionsConfigurationTestCase->testA
User n49qgG5h successfully logged in.
Pass Browser actions.test 24 ActionsConfigurationTestCase->testA
GET http://localhost:8002/admin/config/system/actions/manage returned 403
(8.27 KB).
Pass Browser actions.test 24 ActionsConfigurationTestCase->testA
Valid HTML found on
"http://localhost:8002/admin/config/system/actions/manage"
Fail Other actions.test 24 ActionsConfigurationTestCase->testA
Failed to set field action to JIi5RLlNDynoiVXqQptABj-TDd1DZTve7v7eJS4q6Ww
Fail Other actions.test 24 ActionsConfigurationTestCase->testA
Found the Create button
Fail Other actions.test 24 ActionsConfigurationTestCase->testA
Found the requested form fields at admin/config/system/actions/manage
Pass Browser actions.test 31 ActionsConfigurationTestCase->testA
GET
http://localhost:8002/admin/config/system/actions/configure/JIi5RLlNDynoiVXqQptABj-TDd1DZTve7v7eJS4q6Ww
returned 403 (8.73 KB).
Pass Browser actions.test 31 ActionsConfigurationTestCase->testA
Valid HTML found on
"http://localhost:8002/admin/config/system/actions/configure/JIi5RLlNDynoiVXqQptABj-TDd1DZTve7v7eJS4q6Ww"
Fail Other actions.test 31 ActionsConfigurationTestCase->testA
Failed to set field actions_label to bVszN1Es
Fail Other actions.test 31 ActionsConfigurationTestCase->testA
Failed to set field url to admin
Fail Other actions.test 31 ActionsConfigurationTestCase->testA
Found the Save button
Fail Other actions.test 31 ActionsConfigurationTestCase->testA
Found the requested form fields at
admin/config/system/actions/configure/JIi5RLlNDynoiVXqQptABj-TDd1DZTve7v7eJS4q6Ww
Fail Other actions.test 34 ActionsConfigurationTestCase->testA
Make sure we get a confirmation that we've successfully saved the complex
action.
Fail Other actions.test 35 ActionsConfigurationTestCase->testA
Make sure the action label appears on the configuration page after we've
saved the complex action.
Exception Notice drupal_web_test_c 2669 DrupalWebTestCase->clickLink()
Undefined variable: url_target
Fail Browser actions.test 38 ActionsConfigurationTestCase->testA
Clicked link configure () from
http://localhost:8002/admin/config/system/actions/configure/JIi5RLlNDynoiVXqQptABj-TDd1DZTve7v7eJS4q6Ww
Exception Notice actions.test 40 ActionsConfigurationTestCase->testA
Undefined offset: 1
Fail Other actions.test 45 ActionsConfigurationTestCase->testA
Failed to set field actions_label to ihO46XUy
Fail Other actions.test 45 ActionsConfigurationTestCase->testA
Failed to set field url to admin
Fail Other actions.test 45 ActionsConfigurationTestCase->testA
Found the Save button
Fail Other actions.test 45 ActionsConfigurationTestCase->testA
Found the requested form fields at
Fail Other actions.test 48 ActionsConfigurationTestCase->testA
Make sure we get a confirmation that we've successfully updated the complex
action.
Pass Other actions.test 49 ActionsConfigurationTestCase->testA
Make sure the old action label does NOT appear on the configuration page
after we've updated the complex action.
Fail Other actions.test 50 ActionsConfigurationTestCase->testA
Make sure the action label appears on the configuration page after we've
updated the complex action.
Exception Notice drupal_web_test_c 2669 DrupalWebTestCase->clickLink()
Undefined variable: url_target
Fail Browser actions.test 53 ActionsConfigurationTestCase->testA
Clicked link delete () from
http://localhost:8002/admin/config/system/actions/configure/JIi5RLlNDynoiVXqQptABj-TDd1DZTve7v7eJS4q6Ww
Pass Browser actions.test 55 ActionsConfigurationTestCase->testA
GET http://localhost:8002/admin/config/system/actions/delete/ returned 403
(8.27 KB).
Pass Browser actions.test 55 ActionsConfigurationTestCase->testA
Valid HTML found on
"http://localhost:8002/admin/config/system/actions/delete/"
Fail Other actions.test 55 ActionsConfigurationTestCase->testA
Found the Delete button
Fail Other actions.test 55 ActionsConfigurationTestCase->testA
Found the requested form fields at admin/config/system/actions/delete/
Fail Other actions.test 58 ActionsConfigurationTestCase->testA
Make sure that we get a delete confirmation message.
Pass Browser actions.test 59 ActionsConfigurationTestCase->testA
GET http://localhost:8002/admin/config/system/actions/manage returned 403
(8.27 KB).
Pass Browser actions.test 59 ActionsConfigurationTestCase->testA
Valid HTML found on
"http://localhost:8002/admin/config/system/actions/manage"
Pass Other actions.test 60 ActionsConfigurationTestCase->testA
Make sure the action label does not appear on the overview page after we've
deleted the action.
Pass Other actions.test 62 ActionsConfigurationTestCase->testA
Make sure the action is gone from the database after being deleted.
I think they all related to a form of user authentication.
If someone can point me to some documentation about setting up a jenkins instance or help me to fix my problem I would greatly appreciate; In the meantime, we could add the steps to resolve this issue to the drupal wiki on Continuous Integration so it will help new comers to troubleshoot their setup.
Many thanks,
Sylvain
Comments
Comment #1
Sylvain Lecoy CreditAttribution: Sylvain Lecoy commentedBtw it also happen on Drupal 8 HEAD.
Comment #2
Sylvain Lecoy CreditAttribution: Sylvain Lecoy commentedSo for the record it was a problem in my apache configuration, the equivalent of the .htaccess that is bundled with Drupal and that I include in my config for my virtual host was buggy (I changed the RewriteRules). So fixing that fixed everything.
If you encounter the problem please contact me I'll be happy to help :-)