Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537442 - dev-python/jenkins-autojobs - scripts for automatically creating Jenkins jobs from scm branches
Summary: dev-python/jenkins-autojobs - scripts for automatically creating Jenkins jobs...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/gvalkov/jenkins-au...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-23 13:04 UTC by Tomáš Mózes
Modified: 2015-02-02 14:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
jenkins-autojobs-0.14.3.ebuild (jenkins-autojobs-0.14.3.ebuild,618 bytes, text/plain)
2015-01-23 13:04 UTC, Tomáš Mózes
Details
jenkins-autojobs-0.14.3.ebuild (jenkins-autojobs-0.14.3.ebuild,1.53 KB, text/plain)
2015-01-30 15:43 UTC, Tomáš Mózes
Details
local_jenkins.patch (local_jenkins.patch,790 bytes, patch)
2015-01-30 15:43 UTC, Tomáš Mózes
Details | Diff
jenkins-autojobs-0.14.3.ebuild (jenkins-autojobs-0.14.3.ebuild,1.82 KB, text/plain)
2015-01-30 15:48 UTC, Tomáš Mózes
Details
test log (test.log,66.41 KB, text/x-log)
2015-02-02 09:26 UTC, Tomáš Mózes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomáš Mózes 2015-01-23 13:04:21 UTC
Created attachment 394710 [details]
jenkins-autojobs-0.14.3.ebuild

Jenkins Autojobs are a set of scripts that automatically create Jenkins jobs using a template job and the branches/refs in your scm repository.
Comment 1 Tomáš Mózes 2015-01-30 15:43:42 UTC
Created attachment 395210 [details]
jenkins-autojobs-0.14.3.ebuild
Comment 2 Tomáš Mózes 2015-01-30 15:43:57 UTC
Created attachment 395212 [details, diff]
local_jenkins.patch
Comment 3 Tomáš Mózes 2015-01-30 15:48:50 UTC
Created attachment 395214 [details]
jenkins-autojobs-0.14.3.ebuild
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-01-31 11:03:07 UTC
__ ERROR at setup of test_namefmt_namesep_global[feature/one/two-{shortref}-.-feature.one.two] _

fatal: empty ident name (for <testuser@archtester.homenetwork>) not allowed
________________ ERROR at setup of test_namefmt_namesep_global[feature/one/two-test-{shortref}---test-feature-one-two] _________________

    @fixture(scope='module')
    def repo():
>       return repo_fixture('git')

../test_git.py:21: 

This is 'rubbish'. The test demands full account details to be setup and probably accessed online.  This makes for not ready to work out of the box.

tests/test_hg.py ..........
tests/test_svn.py .............

are good.

I suggest substitute

src_unpack() {
        unpack ${P}.tar.gz

with

python_prepare_all() (

and add 
rm -f tests/test_git.py || die

In fact the 
if use test; then \ fi 

can go, it's optional.  Some devs would promote unconditional addition of the 3 lines, others would say use of of statement is fine.  Both work, both are right. Use of "src_unpack() {" also works but is not the natural choice.
Comment 5 Tomáš Mózes 2015-02-02 09:26:59 UTC
Created attachment 395370 [details]
test log
Comment 6 Tomáš Mózes 2015-02-02 12:48:15 UTC
Git test doesn't work when run with ebuild directly and there is no /etc/gitconfig:
ebuild jenkins-autojobs-0.14.3.ebuild clean test

It seems to work when run normally with portage.
Comment 7 Ian Delaney (RETIRED) gentoo-dev 2015-02-02 13:29:10 UTC
hmm, it seems to pass when run outside portage as user.
<It seems to work when run normally with portage> only when run as root.
Run as user in my overlay or in the cvs tree as user triggers total failure by _ "ERROR at setup" in tests/test_git.py.

Tested by use of emerge works because it is run with root privileges or as root user.  This has seemingly exposed an underlying bug in portage itself, which Tomas can or will submit in separate bug.
Comment 8 Ian Delaney (RETIRED) gentoo-dev 2015-02-02 14:07:08 UTC
*jenkins-autojobs-0.14.3 (02 Feb 2015)

  02 Feb 2015; Ian Delaney <idella4@gentoo.org> +files/local_jenkins.patch,
  +jenkins-autojobs-0.14.3.ebuild, +metadata.xml:
  new ebuild, written by maintainer, entered under proxy-maintainers herd, fully
  tested and shored up to see test phase working fully with 1 limitation, closes
  bug #537442