You are not logged in.

#1 2008-11-30 20:42:11

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Improve AUR quality - automated testing of all packages

As the subject states, I think the quality of the AUR-packages could be improved; and automated testing is probably an idea that might work. Which is why I have spend some days creating a script and website.

http://archlinux.spider007.net/AurBuild/index

The next step is to improve the AUR and fix the unmaintained packages. Do you guys like the idea of testing the AUR packages automatically?

Offline

#2 2008-11-30 20:45:18

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Improve AUR quality - automated testing of all packages

Interesting idea, but how could you possibly handle the load of downloading and compiling everything?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2008-11-30 20:52:42

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Improve AUR quality - automated testing of all packages

The number of packages that are updated aren't that enormous. As you can see I have already compiled quite a few packages. I do however agree that the load might be too big of an issue for this to be a near-realtime view. Maybe updating only once a month would be a solution

Offline

#4 2008-11-30 21:12:18

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Improve AUR quality - automated testing of all packages

This is really cool! What about running namcap over them and checking, if dependencies are okay? And what about makedeps, do you have the ability to check them too?

Offline

#5 2008-11-30 21:17:16

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Improve AUR quality - automated testing of all packages

Spider.007 wrote:

As the subject states, I think the quality of the AUR-packages could be improved; and automated testing is probably an idea that might work. Which is why I have spend some days creating a script and website.

http://archlinux.spider007.net/AurBuild/index

The next step is to improve the AUR and fix the unmaintained packages. Do you guys like the idea of testing the AUR packages automatically?

Very cool.  Bu the system that builds/checks AUR packages doesn't seem to have [community] repo enabled, both of my packages that I checked failed because they couldn't resolve a dependency that's in community repo.

Offline

#6 2008-11-30 21:41:01

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Improve AUR quality - automated testing of all packages

fwojciec wrote:
Spider.007 wrote:

As the subject states, I think the quality of the AUR-packages could be improved; and automated testing is probably an idea that might work. Which is why I have spend some days creating a script and website.

http://archlinux.spider007.net/AurBuild/index

The next step is to improve the AUR and fix the unmaintained packages. Do you guys like the idea of testing the AUR packages automatically?

Very cool.  Bu the system that builds/checks AUR packages doesn't seem to have [community] repo enabled, both of my packages that I checked failed because they couldn't resolve a dependency that's in community repo.

Good point, I will add it soon; so the next run we'll see if it works smile

Army wrote:

This is really cool! What about running namcap over them and checking, if dependencies are okay? And what about makedeps, do you have the ability to check them too?

Well; that's what the 'package validation' button does; but I haven't decided yet on how to interpret the results. About the makedepends; they are checked as well (if everything is working like it should wink )

Last edited by Spider.007 (2008-11-30 21:42:46)

Offline

#7 2008-11-30 22:32:11

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: Improve AUR quality - automated testing of all packages

Very cool idea.


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#8 2008-11-30 23:14:05

godane
Member
From: NH, USA
Registered: 2008-02-03
Posts: 241
Website

Re: Improve AUR quality - automated testing of all packages

This is a very good idea.

BTW, I was checking my old kernel26livecd package and there was a error that shouldn't be there.

PKGBUILD: line 56: patch: command not found

i think you need to add patch package into the build system your using. This bug could make a lot package not compile when it just needs to patch something to work build right.

Just my 2 cents.

EDIT1: I think you save on bandwidth if you just delete the pkg and src folder. But you will need a lot of diskspace and make sure that when you version comes out you delete the older source code. That could make it possible to do this every week instead of every month.

Again Just my 2 cents.

EDIT2: I look up my italc package thats at 1.0.9. The build error is for 1.0.7 on june 17th. yikes I just thinking its odd since i thought you site was new. (At least in the last month new if anything else.)

2008-06-17 06:17:42 (760 KB/s) - `italc-1.0.7.tar.bz2' saved [2522087/2522087]

  -> Found italc in build dir
  -> Found help.txt in build dir
  -> Found italc.png in build dir
==> Validating source files with md5sums...
    italc-1.0.7.tar.bz2 ... Passed
    italc ... Passed
    help.txt ... Passed
    italc.png ... Passed
==> Extracting Sources...
  -> bsdtar -x -f italc-1.0.7.tar.bz2
==> Entering fakeroot environment...
==> Starting build()...
==> ERROR: Build Failed.
    Aborting...

This was like the end of the log but you see what i mean.

I hope this helps.

Last edited by godane (2008-11-30 23:29:32)


I'm working on a live cds based on Archlinux. http://godane.wordpress.com/

Offline

#9 2008-12-01 00:20:25

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: Improve AUR quality - automated testing of all packages

godane wrote:

This is a very good idea.

BTW, I was checking my old kernel26livecd package and there was a error that shouldn't be there.

PKGBUILD: line 56: patch: command not found

i think you need to add patch package into the build system your using. This bug could make a lot package not compile when it just needs to patch something to work build right.

Yeah, you should probably have base and base-devel installed in the build environment.

BTW, Great job!

Offline

#10 2008-12-01 00:40:37

godane
Member
From: NH, USA
Registered: 2008-02-03
Posts: 241
Website

Re: Improve AUR quality - automated testing of all packages

Allan wrote:

Yeah, you should probably have base and base-devel installed in the build environment.

BTW, Great job!

wget is also missing from your build environment too.

==> Making package: arch-bubble-icons 0.3.4-1 i686 (Sun Nov 30 19:54:42 UTC 2008)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> ERROR: The download program wget is not installed.
    Aborting...
  -> Downloading arch-bubble-icons-0.3.4.tar.gz...
/usr/bin/makepkg: line 320: http://www.xs4all.nl/~gforce/arch-bubble-icons/arch-bubble-icons-0.3.4.tar.gz: No such file or directory
==> ERROR: Failure while downloading arch-bubble-icons-0.3.4.tar.gz
    Aborting...

So it is not just patch package missing.

EDIT: There is alot of packages in not_build selection that need wget. It not just arch-bubble-icons. sad So I'm even having trouble how you could get anything to build right without wget in it. Inless the source is in AUR i don't see how you could have 2700+ packages build right without using wget.

Last edited by godane (2008-12-01 00:46:16)


I'm working on a live cds based on Archlinux. http://godane.wordpress.com/

Offline

#11 2008-12-01 00:53:24

creslin
Member
Registered: 2008-10-04
Posts: 241

Re: Improve AUR quality - automated testing of all packages

godane wrote:

EDIT2: I look up my italc package thats at 1.0.9. The build error is for 1.0.7 on june 17th.

I noticed this as well.  The front page says that it takes daily AUR snapshots, but it seems to have quite a few old pkgver/pkgrel builds.  I found several packages on the list of failed builds that I personally adopted and fixed a few weeks back, but it's still showing the old builds.

Maybe it doesn't purge old failed builds even after a newer fixed version/release gets submitted?  Cool idea and great work though.

Last edited by creslin (2008-12-01 02:43:24)


ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.

Offline

#12 2008-12-01 03:00:27

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: Improve AUR quality - automated testing of all packages

Not terribly relevent, but you should note that an "aurbuild" thing already exists..

More relevent: How do you keep things secure? I wouldn't even trust a chroot, I'd go with a full virtualized system.

Offline

#13 2008-12-01 08:53:44

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: Improve AUR quality - automated testing of all packages

Well, as you might imagine I didn't compile 2500 packages in a single day; this implementation has been lying around for a while; and I only posted it when it was in a bit more workable state.

I also added wget to the chroot, but I am unsure about adding the full base group. Shouldn't every PKGBUILD specify the actual packages they require; even if those packages are in base?

Daenyth wrote:

[...]

More relevent: How do you keep things secure? I wouldn't even trust a chroot, I'd go with a full virtualized system.

Shouldn't users be able to trust packages that exist in the AUR?

Last edited by Spider.007 (2008-12-01 08:56:37)

Offline

#14 2008-12-01 08:55:11

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: Improve AUR quality - automated testing of all packages

The general guidlelines are that base and base-devel are assumed while building packages, although there is no harm adding these specifically.  My build chroot is created with base, base-devel and sudo.

Offline

#15 2008-12-01 09:16:58

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Improve AUR quality - automated testing of all packages

Spider.007 wrote:

Shouldn't users be able to trust packages that exist in the AUR?

No! It's technically possible that people put infected/malicious code online.  It's easy to do.  That's why I always check the pkgbuild/.install files and preferably look at the source code before installing a package from AUR


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#16 2008-12-01 18:58:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Improve AUR quality - automated testing of all packages

AUR wrote:

DISCLAIMER: Unsupported PKGBUILDs are user produced content, by downloading them you agree to do so at your own risk.

I also remember reading somewhere that you should check every single PKGBUILD that you download for malicious code.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#17 2008-12-01 22:52:23

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Improve AUR quality - automated testing of all packages

You don't have to read this, it should be enouth to think for a moment wink

Offline

#18 2008-12-02 16:45:16

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Improve AUR quality - automated testing of all packages

Sure, but the point was that it's stated several times in different places. wink


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#19 2008-12-09 04:49:53

doorknob60
Member
Registered: 2008-09-29
Posts: 403

Re: Improve AUR quality - automated testing of all packages

Nice, both my packages build succesfully smile Fixing the namcap errors in fretsonfire-alarian-mod ATM too.

Offline

Board footer

Powered by FluxBB