feat(BSS2): add/reenable tests
Merge request reports
Activity
added 7 commits
- 3800ee12 - fix(wf-brainscales2-demos): typos
- a35d5cbf - fix(wf-brainscales2-demos): repo url
- 54c4fa64 - fix(wf-brainscales2-demos): ref/branch name
- 2d87dd2a - fix(wf-brainscales2-demos): specify dependencies for test
- 0dfe7e9f - fix(BSS2): provide PYTHONPATH for dependant builds
- 44d361dd - fix(wf-brainscales2-demos): set type of deps
- afb57d09 - feat(BSS2): reenable install tests
Toggle commit list141 144 args = ['--test-execnone'] 142 145 return args 143 146 144 # def install_test(self): 145 # with working_dir('spack-test', create=True): 146 # old_pythonpath = os.environ.get('PYTHONPATH', '') 147 # os.environ['PYTHONPATH'] = ':'.join([str(self.prefix.lib), old_pythonpath]) 148 # python('-c', 'import pynn_brainscales; print(pynn_brainscales.__file__)') 147 def install_test(self): 148 with working_dir('spack-test', create=True): 149 old_pythonpath = os.environ.get('PYTHONPATH', '') 150 os.environ['PYTHONPATH'] = ':'.join([str(self.prefix.lib), old_pythonpath]) Technically, I would expect those to use the same stuff as other packages that depend on *this package. Providing
setup_build_environment
is somewhat unclean, as this influences the build itself.Edited by Eric Müller
104 104 env.set('WAF_CONFIGURE_LD_LIBRARY_PATH', ':'.join(library)) 105 105 env.prepend_path('PATH', ':'.join(path)) 106 106 107 def setup_dependent_build_environment(self, env, dependent_spec): 23 depends_on('py-torch@1.11.0:') 24 depends_on('py-torchvision@0.12.0:') 25 depends_on('py-tqdm@4.62.3:') 26 depends_on('py-requests@2.26.0:') 27 depends_on('py-neo@0.11.1:') 28 depends_on('py-scipy@1.8.1:') 29 depends_on('py-deap@1.3:') 30 depends_on('py-pandas@1.4.2:') 13 homepage="https://electronicvisions.github.io/documentation-brainscales2" 14 git = "https://github.com/electronicvisions/brainscales2-demos" 15 maintainer = ["muffgaga"] 16 17 # ECM: we probably should build the ipynb file in this package 18 version("23.6", branch="jupyter-notebooks-experimental") 19 20 depends_on('hxtorch', type=("run", "test")) 168 168 args = ['--test-execnone'] 169 169 return args 170 170 171 # def install_test(self): 172 # with working_dir('spack-test', create=True): 173 # old_pythonpath = os.environ.get('PYTHONPATH', '') 174 # os.environ['PYTHONPATH'] = ':'.join([str(self.prefix.lib), old_pythonpath]) 175 # python('-v', '-X dev', '-c', 'import hxtorch; print(hxtorch.__file__)') 171 def install_test(self): 172 with working_dir('spack-test', create=True): 173 old_pythonpath = os.environ.get('PYTHONPATH', '') 174 os.environ['PYTHONPATH'] = ':'.join([str(self.prefix.lib), old_pythonpath]) 175 python('-c', 'import hxtorch; print(hxtorch.__file__)') We did quite a few things — however, we never managed to trigger them as reliably as this environment did
Edited by Eric MüllerHowever, it might be also related to a new version of log4cxx we switched to → maybe needs an update in here too… I'm investigating.
Edited by Eric Müllerhm, looks like I was wrong :) (https://gitlab.ebrains.eu/technical-coordination/project-internal/devops/platform/ebrains-spack-builds/-/jobs/48505#L3915)
Ok, this looks already reasonable (https://gitlab.ebrains.eu/technical-coordination/project-internal/devops/platform/ebrains-spack-builds/-/jobs/48505/artifacts/file/spack_logs/installed/wf-brainscales2-demos-23.6-yj4iveg6emnfh53fo6y3fr7vul4rf3zg/.spack_test_results/ts_05-yin_yang.ipynb).
Still on TODO list for this MR:
- setting the "connection mode" (there was some EBRAINS detection magic which fails in the CI runner env) → i.e. something like "LAB_KERNEL_NAME = EBRAINS-experimental"
- run all tests
mentioned in commit 8272c0a3