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

Spalloc Server integration testing #76

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
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: 6 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ pipeline {
run_in_pyenv('python -m spynnaker.pyNN.setup_pynn')
// Additional requirements for testing here
// coverage version capped due to https://github.com/nedbat/coveragepy/issues/883
run_in_pyenv('pip install python-coveralls "coverage>=5.0.0" pytest-instafail pytest-xdist pytest-progress pytest-forked pytest-timeout')
run_in_pyenv('pip install python-coveralls "coverage>=5.0.0" pytest-instafail pytest-xdist pytest-progress pytest-forked pytest-timeout setproctitle')
run_in_pyenv('pip freeze')
// Java install, not server
sh 'mvn package -B -f JavaSpiNNaker -pl -SpiNNaker-allocserv'
Expand Down Expand Up @@ -336,6 +336,7 @@ pipeline {
}

def run_pytest(String tests, int timeout, String results, String covfile, String threads) {
sh 'mkdir -p junit'
def resfile = 'junit/' + results + '.xml'
covfile += '_cov.xml'
sh 'echo "<testsuite tests="0"></testsuite>" > ' + resfile
Expand All @@ -354,8 +355,8 @@ def create_spynnaker_config() {
if [[ ! -f ~/.spynnaker.cfg ]]
then
echo "[Machine]" > ~/.spynnaker.cfg
echo "spalloc_server = 10.11.192.11" >> ~/.spynnaker.cfg
echo "spalloc_user = Jenkins" >> ~/.spynnaker.cfg
echo "spalloc_server = https://jenkins:[email protected]/spalloc/" >> ~/.spynnaker.cfg
echo "spalloc_use_proxy = True" >> ~/.spynnaker.cfg
echo "enable_advanced_monitor_support = True" >> ~/.spynnaker.cfg
echo "[Java]" >> ~/.spynnaker.cfg
echo "use_java = True" >> ~/.spynnaker.cfg
Expand All @@ -373,8 +374,8 @@ def create_gfe_config() {
if [[ ! -f ~/.spiNNakerGraphFrontEnd.cfg ]]
then
echo "[Machine]" > ~/.spiNNakerGraphFrontEnd.cfg
echo "spalloc_server = 10.11.192.11" >> ~/.spiNNakerGraphFrontEnd.cfg
echo "spalloc_user = Jenkins" >> ~/.spiNNakerGraphFrontEnd.cfg
echo "spalloc_server = https://jenkins:[email protected]/spalloc/" >> ~/.spiNNakerGraphFrontEnd.cfg
echo "spalloc_use_proxy = True" >> ~/.spiNNakerGraphFrontEnd.cfg
echo "enable_advanced_monitor_support = True" >> ~/.spiNNakerGraphFrontEnd.cfg
echo "[Java]" >> ~/.spiNNakerGraphFrontEnd.cfg
echo "use_java = True" >> ~/.spiNNakerGraphFrontEnd.cfg
Expand Down