Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #2352 (closed)

Opened 14 years ago

Closed 14 years ago

Build and official scripts

Reported by: jburel Owned by:
Priority: blocker Milestone: OMERO-Beta4.2
Component: Scripting Version: n.a.
Keywords: n.a. Cc: wmoore, jamoore
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: 2010-05-13 (9)

Description

Official scripts are no longer inserted in the DB and building.

Change History (7)

comment:1 Changed 14 years ago by jburel

  • Cc wmoore added

comment:2 Changed 14 years ago by jmoore

  • Owner jmoore deleted

Could this be related to the recent changes by Brian?
Can you retry after he's committed?

I just did a clean build / clean DB and got:

hudson@hudson-01:~$ git/dist/bin/omero shell


In [1]: import omero

In [2]: c = omero.client("localhost")

In [3]: s = c.createSession("root","omero")

In [4]: [x.path.val + x.name.val for x in s.getQueryService().findAll("OriginalFile", None)]
Out[4]: 
['/home/hudson/git/dist/lib/scripts',
 '/tmp',
 '/home/hudson/OMERO-CURRENT/data']

In [5]: [x.path.val + x.name.val for x in s.getScriptService().getScripts()]
Out[5]: 
['/omero/region_scripts/populatePlateRoi.py',
 '/omero/util_scripts/Combine_Images.py',
 '/omero/export_scripts/makeMovie.py',
 '/omero/figure_scripts/Thumbnail_Figure.py',
 '/omero/figure_scripts/Roi_Figure.py',
 '/omero/figure_scripts/Roi_Movie_Figure.py',
 '/omero/figure_scripts/Split_View_Figure.py',
 '/omero/figure_scripts/Movie_Figure.py']

comment:3 Changed 14 years ago by jburel

Going to try again

comment:4 Changed 14 years ago by jburel

  • Checked out the latest code.
  • clean the DB, clean the /OMERO directory.
  • ant clean && ant
  • rebuild db
  • only 3 entries in DB i.e. OMERO scripts and -Tmp- of Repository mimetype

comment:5 Changed 14 years ago by jburel

  • Cc jmoore added

comment:6 Changed 14 years ago by jmoore

Jean-Marie, are you checking at the DB level or after calling getScripts()? The files are loaded on the first lookup.

hudson@hudson-01:~$ psql omero
psql (8.4.2)
Type "help" for help.

omero=# select * from originalfile;
 id | atime | ctime | permissions | mimetype | mtime | name | path | sha1 | size | version | creation_id | external_id | group_id | owner_id | update_id | repo | params
----+-------+-------+-------------+----------+-------+------+------+------+------+---------+-------------+-------------+----------+----------+-----------+------+--------
(0 rows)

omero=#
omero=# \q
hudson@hudson-01:~$ git/dist/bin/omero admin start
Creating /home/hudson/git/dist/var/master
Initializing /home/hudson/git/dist/var/log
Creating /home/hudson/git/dist/var/registry
No descriptor given. Using etc/grid/default.xml
Waiting on startup. Use CTRL-C to exit
hudson@hudson-01:~$ ipytho^C
hudson@hudson-01:~$ git/dist/bin/omero shell


In [1]: run scripts.py

In [2]: 
In [3]: 
In [4]: ------> print([x.path.val + x.name.val for x in s.getQueryService().findAll("OriginalFile", None)])
['/home/hudson/OMERO-CURRENT/data', '/home/hudson/git/dist/lib/scripts', '/tmp']

In [5]: ------> print([x.path.val + x.name.val for x in s.getScriptService().getScripts()])
['/omero/region_scripts/populatePlateRoi.py', '/omero/util_scripts/Combine_Images.py', '/omero/export_scripts/makeMovie.py', '/omero/figure_scripts/Thumbnail_Figure.py', '/omero/figure_scripts/Roi_Figure.py', '/omero/figure_scripts/Roi_Movie_Figure.py', '/omero/figure_scripts/Split_View_Figure.py', '/omero/figure_scripts/Movie_Figure.py']

In [6]: 



 done. Executing edited code...

hudson@hudson-01:~ cat scripts.py
import omero
c = omero.client("localhost")
s = c.createSession("root","omero")
print [x.path.val + x.name.val for x in s.getQueryService().findAll("OriginalFile", None)]
print [x.path.val + x.name.val for x in s.getScriptService().getScripts()]

hudson@hudson-01:~psql omerort
psql (8.4.2)
Type "help" for help.

omero=# select * from originalfile;
 id |          atime          |          ctime          | permissions |   mimetype    |          mtime          |         name         |            path             |                   sha1                   | size  | version | creation_id | external_id | group_id | owner_id | update_id |    repo    | params
----+-------------------------+-------------------------+-------------+---------------+-------------------------+----------------------+-----------------------------+------------------------------------------+-------+---------+-------------+-------------+----------+----------+-----------+------------+--------
  1 | 2010-05-15 08:56:53.682 | 2010-05-15 08:56:53.682 |        -103 | Repository    | 2010-05-15 08:56:53.682 | data                 | /home/hudson/OMERO-CURRENT/ | 69a61790-855d-4ea7-8db2-acd4c6cfe7cc     |     0 |       0 |           2 |             |        1 |        0 |         2 |            |
  2 | 2010-05-15 08:56:53.734 | 2010-05-15 08:56:53.734 |        -103 | Repository    | 2010-05-15 08:56:53.734 | scripts              | /home/hudson/git/dist/lib/  | ScriptRepo                               |     0 |       0 |           5 |             |        1 |        0 |         5 |            |
  3 | 2010-05-15 08:56:53.706 | 2010-05-15 08:56:53.706 |        -103 | Repository    | 2010-05-15 08:56:53.706 | tmp                  | /                           | ea810fd2-a368-4c8c-9b31-10c986bcd4a9     |     0 |       0 |           4 |             |        1 |        0 |         4 |            |
  4 |                         |                         |        -103 | text/x-python |                         | populatePlateRoi.py  | /omero/region_scripts/      | 63a410e344cc22b2fcae09951137a5b59fb8baae |   920 |       0 |           8 |             |        1 |        0 |         8 | ScriptRepo |
  5 |                         |                         |        -103 | text/x-python |                         | Combine_Images.py    | /omero/util_scripts/        | d9dbf890588d5a9df71c901f3814f00e1facb220 | 11162 |       0 |           9 |             |        1 |        0 |         9 | ScriptRepo |
  6 |                         |                         |        -103 | text/x-python |                         | makeMovie.py         | /omero/export_scripts/      | 0c097400278d4906cde99ae4f9ef72ad1a3276d7 | 16169 |       0 |          10 |             |        1 |        0 |        10 | ScriptRepo |
  7 |                         |                         |        -103 | text/x-python |                         | Thumbnail_Figure.py  | /omero/figure_scripts/      | 1154f2050bcdfd53ba003f654b426d2b891262ac | 16007 |       0 |          11 |             |        1 |        0 |        11 | ScriptRepo |
  8 |                         |                         |        -103 | text/x-python |                         | Roi_Figure.py        | /omero/figure_scripts/      | 31c97e673daf418bfdd9a0ff87299b9830cbe31f | 33051 |       0 |          12 |             |        1 |        0 |        12 | ScriptRepo |
  9 |                         |                         |        -103 | text/x-python |                         | Roi_Movie_Figure.py  | /omero/figure_scripts/      | c501c5a0642984abcd58b2ae914cf90c0497894d | 30131 |       0 |          13 |             |        1 |        0 |        13 | ScriptRepo |
 10 |                         |                         |        -103 | text/x-python |                         | Split_View_Figure.py | /omero/figure_scripts/      | 3f524673a181d301e3a73d73e5ca77f0de528eaa | 30651 |       0 |          14 |             |        1 |        0 |        14 | ScriptRepo |
 11 |                         |                         |        -103 | text/x-python |                         | Movie_Figure.py      | /omero/figure_scripts/      | bd20ea4d158fe4f78317607d51f178a933390a12 | 22815 |       0 |          15 |             |        1 |        0 |        15 | ScriptRepo |
(11 rows)

omero=#
omero=#


hudson@hudson-01:~ git log | head -n 7
commit e8b0b4d504dbef629789832ce1e5c91facf59c6a
Author: jburel <jburel@05709c45-44f0-0310-885b-81a1db45b4a6>
Date:   Sat May 15 06:32:14 2010 +0000

    Updated pojos for FS
    
    git-svn-id: file:///home/svn/omero/trunk@6987 05709c45-44f0-0310-885b-81a1db45b4a6


comment:7 Changed 14 years ago by jburel

  • Resolution set to fixed
  • Status changed from new to closed

I was looking at the DB level, I understood the files will be in the DB when installing OMERO.
Files are in now. Closing the ticket

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.70252 sec.)

We're Hiring!