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

Failing smashbox test on jenkins #98

Closed
nickvergessen opened this issue Jun 2, 2015 · 3 comments
Closed

Failing smashbox test on jenkins #98

nickvergessen opened this issue Jun 2, 2015 · 3 comments

Comments

@nickvergessen
Copy link

https://ci.owncloud.org/job/smashbox/17

2015-05-29 08:58:36,980 - WARNING - sharer - Non-zero exit code 1 from command '/var/lib/jenkins/jobs/smashbox/workspace/TEST_NAME/test_reshareDir/compiler/g++/label/master/mirallBranch/v1.8.1/qt/qt4/serverVersion/owncloud8.1-no-enc/build/owncloudcmd --trust /var/lib/jenkins/build/smashdir/test_reshareDir/sharer/ ownclouds://test1:[email protected]/owncloud8.1-no-enc/remote.php/webdav/ >> /var/lib/jenkins/build/smashdir/test_reshareDir/sharer-ocsync.step03.cnt000.log 2>&1'

The interesting part about this is, that we ignore the exit code of the sync client, see line 4:

    for i in range(n):
        t0 = datetime.datetime.now()
        cmd = config.oc_sync_cmd+' '+local_folder+' '+oc_webdav_url('owncloud',remote_folder,user_num) + " >> "+config.rundir+"/%s-ocsync.step%02d.cnt%03d.log 2>&1"%(reflection.getProcessName(),current_step,ocsync_cnt[current_step])
        runcmd(cmd, ignore_exitcode=True)  # exitcode of ocsync is not reliable
        logger.info('sync cmd is: %s',cmd)
        logger.info('sync finished: %s',datetime.datetime.now()-t0)
        ocsync_cnt[current_step]+=1

I can not reproduce any failures using 1.8.1 testclient and current master.

@DeepDiver1975 would be nice, if we can run the tests using --debug so the logger.info() stuff is displayed in the console output. In this case especially the information about:

        logger.info('sync cmd is: %s',cmd)
        logger.info('sync finished: %s',datetime.datetime.now()-t0)

would be nice.

@nickvergessen
Copy link
Author

https://ci.owncloud.org/job/smashbox/18/

2015-06-02 05:00:45,481 - INFO - sharer - running '/var/lib/jenkins/jobs/smashbox/workspace/TEST_NAME/test_reshareDir/compiler/g++/label/master/mirallBranch/v1.8.1/qt/qt4/serverVersion/owncloud8.1-no-enc/build/owncloudcmd --trust /var/lib/jenkins/build/smashdir/test_reshareDir/sharer/ ownclouds://test1:[email protected]/owncloud8.1-no-enc/remote.php/webdav/ >> /var/lib/jenkins/build/smashdir/test_reshareDir/sharer-ocsync.step03.cnt000.log 2>&1'
2015-06-02 05:00:45,483 - WARNING - sharer - Non-zero exit code 1 from command '/var/lib/jenkins/jobs/smashbox/workspace/TEST_NAME/test_reshareDir/compiler/g++/label/master/mirallBranch/v1.8.1/qt/qt4/serverVersion/owncloud8.1-no-enc/build/owncloudcmd --trust /var/lib/jenkins/build/smashdir/test_reshareDir/sharer/ ownclouds://test1:[email protected]/owncloud8.1-no-enc/remote.php/webdav/ >> /var/lib/jenkins/build/smashdir/test_reshareDir/sharer-ocsync.step03.cnt000.log 2>&1'
2015-06-02 05:00:45,484 - INFO - sharer - sync cmd is: /var/lib/jenkins/jobs/smashbox/workspace/TEST_NAME/test_reshareDir/compiler/g++/label/master/mirallBranch/v1.8.1/qt/qt4/serverVersion/owncloud8.1-no-enc/build/owncloudcmd --trust /var/lib/jenkins/build/smashdir/test_reshareDir/sharer/ ownclouds://test1:[email protected]/owncloud8.1-no-enc/remote.php/webdav/ >> /var/lib/jenkins/build/smashdir/test_reshareDir/sharer-ocsync.step03.cnt000.log 2>&1
2015-06-02 05:00:45,484 - INFO - sharer - sync finished: 0:00:00.002322

Okay, seems like the result is ignored, we just log the warning.

@nickvergessen
Copy link
Author

Looks like there have been a couple of misconfigurations, but we still fail atm

@nickvergessen
Copy link
Author

🎉 #99 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant