Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-COM›AdV commissioning (1st part) #36365

Metatron 1.1 (added automated version control)

A new release (1.1) of Metatron has been deployed today.

The metatron and metamedm commands now correspond to tcsh scripts under:
/virgo/ext/metatron/metatron-1.1/Linux-x86_64-SL6/bin/

This release introduce the automatic checkin in the SVN archive of the .py and .ini file (and all other Python files imported from the userapps area such as META_library.py) of the metatron node at:

  • the corresponding server start (by hand or from VPM), identified by the comment 'DAEMON INIT'
  • the hitting of the "LOAD" button from the metamedm interface, identified by the comment 'DAEMON RELOAD'

The mechanism has been introduced at the level of the metatron daemon profiting of the already existing archive_commit hookup.

Obviously, only files with pending modifications will be checked in. The archiving actions will be shown on the "extended" metatron log files (META_*.log) wich are trapping the svn logs:

svn archiving: /usr/bin/svn ci /virgoDev/Automation/userapps/ITF_LOCK.py /virgoDev/Automation/userapps/ITF_LOCK.ini /virgoDev/Automation/userapps/META_library.py -m 'DAEMON RELOAD'
...............
Sending        virgoDev/Automation/userapps/META_library.py
Transmitting file data .
Committed revision 64394.

 

From now on it will be possible to check the differences of the currently running code/config respect to previous one using  standard svn commands such as:

  • difference between the latest 2 commited revisions: svn diff -r PREV:COMMITTED ITF_LOCK.py
  • difference between two dates: svn diff -r \{2017-02-03\}:\{2017-02-05\} ITF_LOCK.py

A solution for a more "user friendly" diff visualization is currently being studied.


A complete automation sequence has been tried by stopping all nodes, restarting them (from metatron 1.1 install) and then bring the ITF_LOCK node back to LOCKED_SSFS without any problem
 

2 comments

Carbognani · 27 Feb 2017 · 11:23 #36667
As a follow-on action after the introduction of the automatic checkin in the SVN archive of the Metatron nodes .py and .ini files, a dedicated user interface has been made available for querying the SVN archive about files differences. The interface, named SvnDiff, for the moment is limited to the automation files under /virgoDev/Automation/userapps (it can be extended in future to other areas under version control) and allow to show: - difference between the latest 2 committed revisions - difference between two dates By default the query is applied to all files under /virgoDev/Automation/userapps unless a specific file is provided. The interface use the application "tkdiff' to graphically show the differences. If no tkdiff window pup-up it means that no differences were found It can be started using the "svndiff" alias from command line or from the IceWM menu in the Automation section
fcarbogn · 16 Jun 2017 · 17:22 #38044

The SvnDiff interface has been updated (v1r2) in order to allow the specification of the hours and minutes in addition to the day.

The format to be used is:

YYYYMMDDThhmm