Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Running Locally and Add Test Matrix #8

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# DOCGroup scoreboard configuration files

## Adding to the scoreboard

Edit one of the xml files in this repository to add builds to the
[DOCGroup](https://github.com/DOCGroup) scoreboard. These xml files will be used to generate
the [DOCGroup scoreboard](https://www.dre.vanderbilt.edu/scoreboard/).

## Running locally

To run locally, run `naboo_dre.sh` with these environment variables:

1. `AUTOBUILD_ROOT` - Path to [autobuild](https://github.com/DOCGroup/autobuild) to use.
1. `OUTPUT` - Path to destination of the web site.

Otherwise they default to hardcoded paths that you probably don't want to use.
12 changes: 11 additions & 1 deletion ace.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<scoreboard>

<prop matrix_title="ACE Scoreboard Test Matrix"/>
<prop matrix_basename="ace"/>
<prop source_link="https://github.com/DOCGroup/ACE_TAO/blob/master/"/>

<preamble>
<center><h1>ACE Scoreboard</h1></center>
<center>
<h1>ACE Scoreboard</h1>
<div style="font: bold 14pt verdana;">
<a style="background-color: green; color: white; padding: 5px 5px;" href="ace-matrix.html">Test Matrix</a>
</div>
</center>
<hr/>
This is the ACE scoreboard. It shows all the OS/platform combinations on which
<a href="https://github.com/DOCGroup/ACE_TAO">ACE</a> is tested everyday.
Expand Down
12 changes: 11 additions & 1 deletion ace6.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<scoreboard>

<prop matrix_title="ACE 6.5.x Scoreboard Test Matrix"/>
<prop matrix_basename="ace6"/>
<prop source_link="https://github.com/DOCGroup/ACE_TAO/blob/ace6tao2/"/>

<preamble>
<center><h1>ACE 6.5.x Scoreboard</h1></center>
<center>
<h1>ACE 6.5.x Scoreboard</h1>
<div style="font: bold 14pt verdana;">
<a style="background-color: green; color: white; padding: 5px 5px;" href="ace6-matrix.html">Test Matrix</a>
</div>
</center>
<hr/>
This is the ACE scoreboard for ACE 6.5.x. It shows all the OS/platform combinations on which
<a href="https://github.com/DOCGroup/ACE_TAO/tree/ace6tao2">ACE 6.5.x</a> is tested everyday.
Expand Down
74 changes: 45 additions & 29 deletions naboo_dre.sh
Original file line number Diff line number Diff line change
@@ -1,40 +1,56 @@
#!/bin/sh
#!/bin/bash

PERLLIB=autobuild
export PERLLIB
OUTPUTDIR=/export/web/www/scoreboard
export OUTPUTDIR
CONFIGDIR=$HOME/scoreboard
export CONFIGDIR
set -ue

cd $HOME/scoreboard
git pull
cd $HOME/autobuild
OUTPUT="${OUTPUT:-/export/web/www/scoreboard}"
if ! [ -d "$OUTPUT" ]
then
echo "\$OUTPUT directory ($OUTPUT) does not exist"
exit 1
fi

SCOREBOARD_ROOT=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCOREBOARD_ROOT"
git pull

# Generate the index page!
/usr/bin/perl ./scoreboard.pl -v -d $OUTPUTDIR -i $CONFIGDIR/index.xml 2>&1 &
# Generate other pages!
/usr/bin/perl ./scoreboard.pl -b -d $OUTPUTDIR -f $CONFIGDIR/ace.xml -o ace.html 2>&1 &
/usr/bin/perl ./scoreboard.pl -b -d $OUTPUTDIR -f $CONFIGDIR/ace6.xml -o ace6.html 2>&1 &
/usr/bin/perl ./scoreboard.pl -b -d $OUTPUTDIR -f $CONFIGDIR/tao.xml -o tao.html 2>&1 &
/usr/bin/perl ./scoreboard.pl -b -d $OUTPUTDIR -f $CONFIGDIR/tao2.xml -o tao2.html 2>&1 &
AUTOBUILD_ROOT="${AUTOBUILD_ROOT:-$HOME/autobuild}"
cd "$AUTOBUILD_ROOT"
git pull

# Generate the test matrices!
##testmatrix/update_scoreboard.sh 2>&1 &
groups=(
ace
ace6
tao
tao2
)

# Generate integrated pages!
/usr/bin/perl ./scoreboard.pl -b -d /export/web/www/scoreboard -z -j $CONFIGDIR/ace.xml,$CONFIGDIR/ace6.xml,$CONFIGDIR/tao.xml,$CONFIGDIR/tao2.xml 2>&1 &
# Generate the index page!
/usr/bin/perl ./scoreboard.pl -v -d "$OUTPUT" -i "$SCOREBOARD_ROOT/index.xml"

#Generate build matrix
#/usr/bin/perl buildmatrix/buildmatrix.pl $CONFIGDIR/ace.xml $OUTPUTDIR 1 > /project/taotmp/scoreboard/buildmatrix/output.html 2> /tmp/build.out
xml_files=()
for group in ${groups[@]}
do
echo "Generating pages for $group..."
xml_file="$SCOREBOARD_ROOT/$group.xml"
xml_files+=("$xml_file")

#/usr/bin/perl buildmatrix/buildmatrix.pl $CONFIGDIR/tao.xml $OUTPUTDIR 1 > /project/taotmp/scoreboard/buildmatrix/tao.html 2> /tmp/build.out
# Generate the normal pages for this group
/usr/bin/perl ./scoreboard.pl -b -d "$OUTPUT" -f "$xml_file" -o "$group.html" -v

#Remove the obsolete db files and give the list of available db files.
##matrix_database/RemoveAndListCompilationDbFiles.sh
# Generate the text matrix pages for this group
./matrix.py "${OUTPUT}"

#
wait
# Remove the builds.json for this group
rm "$OUTPUT/builds.json"
done

exit 0
# Generate integrated pages!
echo "Generating integrated pages..."
function join_by {
local d=${1-} f=${2-}
if shift 2
then
printf %s "$f" "${@/#/$d}"
fi
}
/usr/bin/perl ./scoreboard.pl -b -d "$OUTPUT" -z -j "$(join_by , ${xml_files[@]})"
12 changes: 11 additions & 1 deletion tao.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<scoreboard>

<prop matrix_title="TAO Scoreboard Test Matrix"/>
<prop matrix_basename="tao"/>
<prop source_link="https://github.com/DOCGroup/ACE_TAO/blob/master/"/>

<preamble>
<center><h1>TAO Scoreboard</h1></center>
<center>
<h1>TAO Scoreboard</h1>
<div style="font: bold 14pt verdana;">
<a style="background-color: green; color: white; padding: 5px 5px;" href="tao-matrix.html">Test Matrix</a>
</div>
</center>
<hr/>
This is the TAO scoreboard. It shows all the OS/platform combinations on which
<a href="https://github.com/DOCGroup/ACE_TAO">TAO</a> is tested everyday.
Expand Down
12 changes: 11 additions & 1 deletion tao2.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
<scoreboard>

<prop matrix_title="TAO 2.5.x Scoreboard Test Matrix"/>
<prop matrix_basename="tao2"/>
<prop source_link="https://github.com/DOCGroup/ACE_TAO/blob/ace6tao2/"/>

<preamble>
<center><h1>TAO 2.5.x Scoreboard</h1></center>
<center>
<h1>TAO 2.5.x Scoreboard</h1>
<div style="font: bold 14pt verdana;">
<a style="background-color: green; color: white; padding: 5px 5px;" href="tao2-matrix.html">Test Matrix</a>
</div>
</center>
<hr/>
This is the TAO 2.5.x scoreboard. It shows all the OS/platform combinations on which
<a href="https://github.com/DOCGroup/ACE_TAO/tree/ace6tao2">TAO 2.5.x</a> is tested everyday.
Expand Down