Getting a list of failed ports in a build
Ion-Mihai Tetcu
itetcu at FreeBSD.org
Wed Sep 7 15:52:57 EDT 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 07 Sep 2011 14:37:56 -0400
Greg Larkin <glarkin at FreeBSD.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 9/7/11 2:23 PM, Ion-Mihai Tetcu wrote:
> > On Wed, 07 Sep 2011 13:18:09 -0400
> > Greg Larkin <glarkin at freebsd.org> wrote:
> >
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >
> >> Hi everyone,
> >
> >> I'm working on a script that uses Tinderbox to build a list of
> >> ports, then resubmits the failed ones to another build with
> >> different /etc/make.conf options. In order to do that, I need to
> >> extract the list of failed ports from the first build.
> >
> >> I'd prefer to use the tc command to do this, but I haven't found a
> >> subcommand that does what I need. Is it sufficient to simply parse
> >> the filenames of the error log files from the first build?
> >
> >> I created this monster command, and it works (slowly), but my
> >> guess is there's a more elegant way to do this:
> >
> >> ./tc getPortsForBuild -b <build name> | xargs -n1 -I % -t sh -c
> >> "./tc getPortLastBuiltStatus -b <build name> -d %" | & grep -B 1
> >> ^FAIL | grep ^sh | awk '{ print $8 }'
> >
> > Just go directly and get your results from the database.
> >
> > I'm totally sure the script bellow is NOT the latest version, but
> > after getting back in town today I found my internet connection not
> > working, and this is the only thing I can find locally ATM.
> >
> > But it should give you enough pointers.
> >
> [...]
>
> Hi Ion-Mihai,
>
> Excellent, thank you. I will give that script a try
Well, it's a bit QAT-specific ... so you can't run it directly. Sorry.
> and start looking at the database if I don't find a subcommand to
> perform other tasks I might need.
In my experience working with the DB directly is much faster that ./tc
- --
IOnut - Un^d^dregistered ;) FreeBSD "user"
"Intellectual Property" is nowhere near as valuable as "Intellect"
FreeBSD committer -> itetcu at FreeBSD.org, PGP Key ID 057E9F8B493A297B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)
iEYEARECAAYFAk5ny6IACgkQJ7GIuiH/oeX/GACgg47ED3IUljzPKClmFpY2foIX
clwAniPR/bP+BYc9ZkV+dqu+DlCV6XAQ
=mV91
-----END PGP SIGNATURE-----
More information about the tinderbox-list
mailing list