Opened 6 years ago

Closed 6 years ago

#3008 closed defect (worksforme)

www dependencies upgrade not working

Reported by: Ben Owned by:
Priority: major Milestone: 0.9.0
Version: master Keywords: web
Cc:

Description

I was not able to test https://github.com/buildbot/buildbot/pull/1324 as my system was unable to perform the upgrade. Here the logs:

    npm install
    npm WARN package.json buildbot-www@ No description
    npm WARN package.json buildbot-www@ No repository field.
    npm WARN package.json buildbot-www@ No README data
    /home/benoit/buildbot/buildbot/www/base/node_modules/.bin/gulp prod --notests
    [13:53:43] Bower: Using cwd:  /home/benoit/buildbot/buildbot/www/base
    [13:53:43] Bower: Using bower dir:  libs
    [13:53:43] Using gulpfile ~/buildbot/buildbot/www/base/gulpfile.js
    [13:53:43] Starting 'default'...
    [13:53:43] Starting 'bower'...
    [13:53:43] Bower cached git://github.com/buildbot/guanlecoja-ui.git#1.3.0
    [13:53:43] Bower validate 1.3.0 against git://github.com/buildbot/guanlecoja-ui.git#~1.3.0
    [13:53:43] Bower cached git://github.com/angular/bower-angular-mocks.git#1.3.1
    [13:53:43] Bower validate 1.3.1 against git://github.com/angular/bower-angular-mocks.git#~1.3.1
    [13:53:44] Bower cached git://github.com/angular/bower-angular.git#1.3.1
    [13:53:44] Bower validate 1.3.1 against git://github.com/angular/bower-angular.git#1.3.1
    [13:53:45] Bower cached git://github.com/angular/bower-angular.git#1.3.1
    [13:53:45] Bower validate 1.3.1 against git://github.com/angular/bower-angular.git#*
    [13:53:45] 'bower' errored after 1.87 s
    [13:53:45] angular in plugin 'gulp-bower-deps'
    Message:
        Unable to find suitable version for angular
    Details:
        code: ECONFLICT
        picks: [object Object],[object Object],[object Object]
    [13:53:45] 'default' errored after 1.87 s
    [13:53:45] undefined
    error: command '/home/benoit/buildbot/buildbot/www/base/node_modules/.bin/gulp' failed with exit status 1
    Complete output from command python setup.py egg_info:
    running egg_info

During my first attempt, guanlecoja-ui and bower-angular-mocks have been correctly updated, only the error message was the same. So partial upgrade is possible, only some packages fails (angular in this case.)

@tardyp gave a workaround:

rm -rf libs might help

Change History (3)

comment:1 Changed 6 years ago by tardyp

For me, this is clearly a bug in bower.

comment:2 Changed 6 years ago by dustin

In fact, this is so common, it's encoded in validate.sh:

https://github.com/buildbot/buildbot/blob/master/common/validate.sh#L128

if ! $quick && ! $no_js; then
    for module in www/base www/console_view www/waterfall_view www/codeparameter;
    do  
        status "running 'setup.py develop' for $module"
        if ! (cd $module; python setup.py develop >/dev/null ); then
            warning "$module/setup.py failed; retrying with cleared libs/"
            rm -rf "$module/libs"
            (cd $module; python setup.py develop >/dev/null ) || not_ok "$module/setup.py failed"
        fi  
    done
else
    warning "Skipping JavaScript Tests"
fi

So I'd argue this is as fixed as possible in Buildbot.

comment:3 Changed 6 years ago by dustin

  • Resolution set to worksforme
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.