[koji PATCH 1/4] don't replace existing build when running with prefer-new
by Dan Horák
Only try to replace a build with newer one when the required one is missing.
It also means the buildroot will be closer to the one in primary.
---
util/koji-shadow | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/util/koji-shadow b/util/koji-shadow
index 6d844b3..89a67d5 100755
--- a/util/koji-shadow
+++ b/util/koji-shadow
@@ -730,7 +730,7 @@ class BuildTracker(object):
if depth > 0:
print "%sDep replaced: %s->%s" % (head, build.nvr, replace)
return build
- if options.prefer_new and not options.build:
+ if options.prefer_new and not (options.build or build.state == "common"):
latestBuild = self.newerBuild(build, tag)
if latestBuild != None:
build.substitute = latestBuild.nvr
--
1.7.7.6
10 years, 10 months
Problems with Kojiweb (code: QWERTY)
by Tweeks
Hey all..
So I looked through all the docs, wiki and even asked on IRC.. but still have
this kojiweb problem. I'm on CentOS 5.8 w/Koji 1.7, have configured for
basic auth (for testing) and I'm getting apache "Internal Server Error" in
the browser:
mod_wsgi (pid=21357): Exception occurred processing WSGI
script '/usr/share/koji-web/scripts/wsgi_publisher.py'., referer:
http://<baseURL>/koji
(I'm using wscgi, not mod_python)
followed by a tone of traceback garbage:
http://fpaste.org/oAjc/
I seem to be able to use koji from the command line... but kojiweb is just not
coming up.
Any clues?
FYI.. The xinit.d startup script fro kojiweb did not allow for plain auth.. so
we had to add a username/password field to /etc/sysconfig/kojiweb and the ags
options in the init file (which seems to be working, bc kojiweb
wouldn't start before).. but we're still getting the server errors and
traceback junk.
Anyone?
Tweeks
p.s. we're running all parts of koji on the same system for now. For pg, I've
tried both local UNIX sockets as well as localhost (current config). No dice.
At this point, it looks more like an apache/wsgi problem.
p.p.s. please
10 years, 11 months
fedora non-released buildsys
by Seth Vidal
Hi,
A few of us have been working on the basis for a buildsystem for fedora
for our non-released pkgs. This is ultimately for building ad-hoc stacks
of packages from both trusted and untrusted repos.
Use cases:
- personal repos (coprs)
- ad-hoc language-module repos (ruby, python, cpan, etc) for people who
need infinite versions of every module compiled against all of the other
possible permutations
- fail to be build from source rebuild runs.
- other ideas here.
Some discussion of it is here:
https://fedoraproject.org/wiki/User:Skvidal/BuildSystem
we've been meeting in #fedora-buildsys on freenode - though that's mostly
quiet right now.
When last this was discussed the koji maintainers were fairly
adamant that the above use cases was definitely outside
of the scope and goals of koji (which is entirely appropriate given what
koji does and how it does it). I was asked to reconfirm that so I am
doing it now.
I'm also letting people know that this is going on and if they want to
join in, please do so. :)
-sv
10 years, 11 months
[koji PATCH] add option to skip blocked packages when doing a clone
by Dan Horák
---
cli/koji | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/cli/koji b/cli/koji
index febac19..83e1693 100755
--- a/cli/koji
+++ b/cli/koji
@@ -2933,6 +2933,7 @@ def handle_clone_tag(options, session, args):
parser.add_option("-v","--verbose", action="store_true", help=_("show changes"),)
parser.add_option("-f","--force", action="store_true", help=_("override tag locks if necessary"),)
parser.add_option("-n","--test", action="store_true", help=_("test mode"))
+ parser.add_option("-s","--skip-blocked", action="store_true", help=_("don't clone blocked packages"))
(options, args) = parser.parse_args(args)
if len(args) != 2:
@@ -2975,8 +2976,9 @@ def handle_clone_tag(options, session, args):
# for each package add one entry in the new tag.
chgpkglist.append(('[new]',pkgs['package_name'],pkgs['blocked'],pkgs['owner_name'],pkgs['tag_name']))
if not options.test:
- # add packages.
- session.packageListAdd(newtag['name'],pkgs['package_name'],
+ # add packages and eventually skip if blocked
+ if not (options.skip_blocked and pkgs['blocked']):
+ session.packageListAdd(newtag['name'],pkgs['package_name'],
owner=pkgs['owner_name'],block=pkgs['blocked'],
extra_arches=pkgs['extra_arches'])
# get --all latest builds from src tag
@@ -3074,7 +3076,8 @@ def handle_clone_tag(options, session, args):
pkg['blocked'],pkg['owner_name'],
pkg['tag_name']))
if not options.test:
- session.packageListAdd(dsttag['name'],pkg['package_name'],
+ if not (options.skip_blocked and pkgs['blocked']):
+ session.packageListAdd(dsttag['name'],pkg['package_name'],
owner=pkg['owner_name'],
block=pkg['blocked'],
extra_arches=pkg['extra_arches'])
--
1.7.7.6
10 years, 11 months
mock, /dev/null and "Permission denied"
by Mike Pomraning
Just a quick note that the symptoms described in this thread
<https://lists.fedoraproject.org/pipermail/buildsys/2012-June/003902.html>:
> $ mock --shell
> INFO: mock.py version 1.1.18 starting...
> State Changed: init plugins
> INFO: selinux disabled
> State Changed: start
> State Changed: lock buildroot
> State Changed: shell
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
> bash: /dev/null: Permission denied
... are consistent with a mock root on a filesystem mounted "nodev".
Permissions and SELinux aside, you'll suffer EACCES all day long until
the fs is remounted "dev".
-Mike
10 years, 11 months