projects moved to git, anongit issues

Pavel Heimlich, a.k.a. hajma tropikhajma at gmail.com
Sun Feb 6 23:50:07 CET 2011


Hi Alex,
I've got some problems running the nightlies for projects that moved
to the new infrastructure.
The scripts seem to be hardwired to gitweb and the anongit interface
behaves differently.

So I was wondering if there are any workarounds that can be used.
I also had the below discussion on #kde-devel

best regards

P.


[23:09] <hajma> Hi, how do I download the most head version of a file
from quickgit? http://quickgit.kde.org/?p=attica.git&a=blob_plain&f=CTestConfig.cmake&h=HEAD
does not work for me. TIA
[23:22] <thiago_home> hajma: write the branch name, not HEAD
[23:25] <hajma> like 'trunk'? does not work either
[23:25] <thiago_home> like "master"
[23:26] <hajma> I tried that as well
[23:28] <PovAddict> it seems to want the blob hash, ugh
[23:29] <bcooksley> question is, why is hajma trying to download the
latest version of a file from quickgit?
[23:29] <bcooksley> sounds like the wrong approach...
[23:30] <hajma> 'cause that's what the nightly builds did for gitweb:
http://websvn.kde.org/trunk/quality/nightly-support/KDECTestNightly.cmake?revision=1195729&view=markup
  line 273
[23:32] <thiago_home> I can't make it work either
[23:33] <thiago_home> it should be possible to use symbolic names and
skip the file hash
[23:33] <PovAddict> seems impossible with this web software
[23:33] <thiago_home> but it isn't working
[23:34] <toma> well, websvn is mainly overloaded because webpages
include graphics directly, so i'm not to sad this is not working tbh
[23:35] * bcooksley actually considered adding a redirector which
tested the Referer field for websvn.ko/*checkout*/ urls
[23:38] <hajma> ok, back to the original problem. the nightly build
infrastructure needs to read values from the CTestConfig.cmake file,
before actually checking out the project's repo. it seems there's no
simple way, so I'll have to resort to some ugly workaround. I'm
wondering how other people running nightlies do that ...
[23:38] <bcooksley> ah, what type of values?
[23:39] <hajma> I guess mainly the CTEST_PROJECT_NAME so as to know
where to checkout the repo to
[23:40] <thiago_home> why do you need to check out a file before you
check out the entire repository?
[23:40] <PovAddict> projects.kde.org does have a stable URL to
download the latest version of a file, but like toma and bcooksley,
we'd rather you not use that kind of thing
[23:40] <hajma> hey, don't ask me, I haven't written the framework :-)
[23:40] <PovAddict> like toma and bcooksley said*
[23:42] <toma> hajma: we can provide such things in the xml file we
make on projects.kde.org
[23:42] <toma> hajma: we just need to know what you need to know
[23:42] <bcooksley> in fact, the info is probably already available in
some cases
[23:43] <toma> hajma: so, find out, and report a sysadmin bug and lets
fix it properly
[23:43] <pinotree> JontheEchidna: a QLatin1-related commit log when
really adding a .desktop file? :)
[23:43] <hajma> I'll paste this discussion to neundorf, he's the guy
for the scripts
[23:43] <hajma> thanks all
[23:43] <toma> hajma: i would like to expand the amount of nightly
builds, so it is important to do it properly
[23:44] <bcooksley> agreed
[23:44] <bcooksley> adding a field is very easy
[23:44] <bcooksley> getting it filled in by people... that's the hard part
[23:44] <PovAddict> bcooksley: can't you extract it from the .cmake
list in each repo?
[23:44] <toma> we can set it if that file exists or something
[23:45] <bcooksley> could do possibly yes. that may result in extra
load being generated though
[23:45] <toma> once a day
[23:46] <bcooksley> currently the xml is updated every 5 minutes, I
guess we could extract that data once a day though
[23:46] <PovAddict> "git cat-file blob ${branch}:CTestConfig.cmake"
works in bare repos
[23:46] <thiago_home> git show too


More information about the Kde-buildsystem mailing list