Page MenuHomePhabricator

Blubber: Update test system from master
Closed, ResolvedPublic

Description

Update test system from master every night, do npm install and restart the service, so we have an updated and running test system.

Event Timeline

Please add a description to tasks. Otherwise it is impossible to verify them ;-)

Jonas renamed this task from Blubber: Create a smart update script, which provide Blubber to be stucked in the live version to Blubber: Update test system from master.Sep 17 2018, 10:17 AM
Jonas updated the task description. (Show Details)

Is this a problem?

It would just be cool to have it more regularly!
Hourly would be nice, or on push to master even!

The thing is we have to restart the service. That is why we chose to do it only once at night.

When does it update nightly?
The patch that I merged on master yesterday has not been pulled onto the site yet :(

There was a problem with the permission, it's fixed...but could you review your changes? HTML-Tags are only allowed in the descriptions, therefore you must add a description field to the config.json with a new label.

I just went to look at the update script and run it to make it quickly pull in a fix to a message that I made and I noticed the npm call fails?

root@wikidata-mobile:/srv/blubber# /srv/blubber/update.sh
Already up-to-date.
/usr/bin/env: ‘node’: No such file or directory

There some serious problems with npm - somehow the whole nodejs config is busted...it tried to fix that, but I guess it would take too much time. Could we maybe just kill that VM and make fresh one? I do not think it's worth to put to much time in it, if we can solve it faster.

I looked at the cron and found the script and tried running it.

root@wikidata-misc:/home/addshore# sudo -H -u bitpogo /srv/blubber/updater.sh
sudo: /srv/blubber/updater.sh: command not found

Looks like the actual script is called update.sh?
I don't know if I should fix the cron name or the script name itself so I'll move it back to doing and leave it to you.