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

run core acceptance tests on LDAP using drone #173

Merged
merged 1 commit into from
Feb 9, 2018

Conversation

individual-it
Copy link
Member

@individual-it individual-it commented Jan 29, 2018

run core UI tests that are marked with @TestAlsoOnExternalUserBackend
users/groups will not be created on the fly but pulled in from an ldif file

@codecov-io
Copy link

codecov-io commented Jan 29, 2018

Codecov Report

Merging #173 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #173   +/-   ##
=========================================
  Coverage     26.29%   26.29%           
  Complexity     1318     1318           
=========================================
  Files            47       47           
  Lines          4487     4487           
=========================================
  Hits           1180     1180           
  Misses         3307     3307

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 713c48e...bc78a2a. Read the comment docs.

@individual-it individual-it self-assigned this Jan 29, 2018
@individual-it individual-it changed the title run core acceptance tests on LDAP using drone [WIP] run core acceptance tests on LDAP using drone Jan 29, 2018
Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like "a good thing"
Once the code is merged in master then I guess some of the "arturneumann" specific stuff can be changed to directly use the core code from master.

.drone.yml Outdated
- cd /var/www/owncloud/apps/user_ldap
- make
- cd /var/www/owncloud/
- php occ a:l
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everyone seems to use shorthand for app:list app:enable ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding install - can you switch to using https://github.com/owncloud-ci/core

It allows for using a branch/tarball

@@ -60,6 +60,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$availableConfigs = $helper->getServerConfigurationPrefixes();
$configID = $input->getArgument('configID');
if(!in_array($configID, $availableConfigs)) {
var_dump($availableConfigs);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bonus debugging code

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will have to be cleaned up before merging, would like to keep it while [WIP]

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Debug line is now gone 👍

.drone.yml Outdated

pipeline:
ldap:
image: dinkel/openldap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What made you use this ldap container - compared to osixia/openldap which we use in other infrastructure projects?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah didn't find these before :'(

@individual-it individual-it force-pushed the acceptance-tests branch 6 times, most recently from f730c5a to be8e56f Compare February 2, 2018 10:43
@individual-it individual-it changed the title [WIP] run core acceptance tests on LDAP using drone run core acceptance tests on LDAP using drone Feb 5, 2018
@individual-it
Copy link
Member Author

@phil-davis @patrickjahns I feel this is ready to go. Any more comments/change requests or should we merge?

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@patrickjahns
Copy link
Contributor

What's the status on the core side? If we have the required changes in master/stable10 please update the install_server step to use nightly tarballs again.

It looks fine for the first iteration - I'd like to also port the tests suites from .travis to drone at some point

@individual-it
Copy link
Member Author

thank you for reminding to change the source.
core should be fine, but looks like something changed in master in between.

cannot sync users

An unhandled exception has been thrown:
TypeError: Argument 1 passed to OC\User\SyncService::syncAccount() must be an instance of OC\User\Account, null given, called in /var/www/owncloud/lib/private/User/SyncService.php on line 121 and defined in /var/www/owncloud/lib/private/User/SyncService.php:279
Stack trace:
#0 /var/www/owncloud/lib/private/User/SyncService.php(121): OC\User\SyncService->syncAccount(NULL, Object(OCA\User_LDAP\User_Proxy))
#1 /var/www/owncloud/core/Command/User/SyncBackend.php(148): OC\User\SyncService->run(Object(OCA\User_LDAP\User_Proxy), Object(Closure))
#2 /var/www/owncloud/lib/composer/symfony/console/Command/Command.php(252): OC\Core\Command\User\SyncBackend->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/owncloud/lib/composer/symfony/console/Application.php(938): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/owncloud/lib/composer/symfony/console/Application.php(240): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\User\SyncBackend), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/owncloud/lib/composer/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/owncloud/lib/private/Console/Application.php(161): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /var/www/owncloud/console.php(106): OC\Console\Application->run()
#8 /var/www/owncloud/occ(11): require_once('/var/www/ownclo...')
    1 [->--------------------------] 0/6 [>---------------------------]   0%
#9 {main}

I will look into it

@individual-it
Copy link
Member Author

works fine on stable10 but on master there is an issue see owncloud/core#30369

@tomneedham
Copy link
Contributor

Restart CI - master fix PR is in.

@tomneedham tomneedham added this to the development milestone Feb 7, 2018
@patrickjahns
Copy link
Contributor

Restarted builds - when green we can merge

@individual-it
Copy link
Member Author

CI will not become green because it using the daily builds

@individual-it
Copy link
Member Author

owncloud/core#30367 fixes the issue, CI should be green tomorrow

@individual-it individual-it merged commit 29b2e4e into master Feb 9, 2018
@individual-it individual-it deleted the acceptance-tests branch February 9, 2018 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants