LbEnv merge requestshttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests2020-12-18T08:13:27+01:00https://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/112Support compiler extensions/flags such as gcc9+py32020-12-18T08:13:27+01:00Rosen MatevSupport compiler extensions/flags such as gcc9+py3Note that with this change the `best` resolution would prefer no extension. If there are multiple platforms with a compiler extension, the one with the highest lexicographic rank wins.
Fixes #34Note that with this change the `best` resolution would prefer no extension. If there are multiple platforms with a compiler extension, the one with the highest lexicographic rank wins.
Fixes #342.1.2Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/111Fix SSL certificate errors when connecting to CouchDB2020-09-29T11:09:18+02:00Chris BurrFix SSL certificate errors when connecting to CouchDB2.1.1Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/104Replace exec with imp.load_module2020-04-06T09:27:47+02:00Marco Clemencicmarco.clemencic@cern.chReplace exec with imp.load_modulethis is not perfect because it produces a deprecation warning, when calling `lb-run` from a CMT nightly slot with Python >= 3.3, so not very urgent to fix.
Closes #29this is not perfect because it produces a deprecation warning, when calling `lb-run` from a CMT nightly slot with Python >= 3.3, so not very urgent to fix.
Closes #292.0.2Ben CouturierBen Couturierhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/102Rmoved pointless warning2020-03-29T10:22:52+02:00Marco Clemencicmarco.clemencic@cern.chRmoved pointless warningCloses #27Closes #272.0.1Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/101Handle platforms sorting in a rare case2020-03-24T13:32:54+01:00Marco Clemencicmarco.clemencic@cern.chHandle platforms sorting in a rare case2.0.0Ben CouturierBen Couturierhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/100Avoid printing "unsupported platform" if BINARY_TAG is not set2020-03-24T14:34:34+01:00Marco Clemencicmarco.clemencic@cern.chAvoid printing "unsupported platform" if BINARY_TAG is not setthe banner of LbEnv used to print "unsupported platform" when a usable `BINARY_TAG` was not found, but now it is the defaultthe banner of LbEnv used to print "unsupported platform" when a usable `BINARY_TAG` was not found, but now it is the default2.0.0Ben CouturierBen Couturierhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/93Push packages directly to PyPI2020-02-03T12:51:50+01:00Marco Clemencicmarco.clemencic@cern.chPush packages directly to PyPICloses #23Closes #231.1.6Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/91Remove a Python 2.6 specific workaround2019-10-04T17:53:40+02:00Marco Clemencicmarco.clemencic@cern.chRemove a Python 2.6 specific workaround1.1.5Marco Clemencicmarco.clemencic@cern.chBen CouturierMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/89Fix handling of lb-run --force-platform2019-10-28T16:28:36+01:00Marco Clemencicmarco.clemencic@cern.chFix handling of lb-run --force-platformAt the moment `x86_64-centos7-gcc9-opt` is not recognized as a supported platform (no release on that platform yet), so the only way to use it from the nightlies in `lb-run` is to pass the option `--force-platform` (meant exactly for the...At the moment `x86_64-centos7-gcc9-opt` is not recognized as a supported platform (no release on that platform yet), so the only way to use it from the nightlies in `lb-run` is to pass the option `--force-platform` (meant exactly for these cases).
A bug in the recent changes of the platform compatibility checks makes `--force-platform` to trigger a crash:
```py
WARNING:lb-run:current host does not support platform x86_64-centos7-gcc9-opt (dirac_platform: broadwell-centos7, required: nehalem-centos7)
Traceback (most recent call last):
File "/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/482/stable/x86_64-centos7/lib/python2.7/site-packages/LbEnv/ProjectEnv/script.py", line 971, in main
super(LbRun, self).main()
File "/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/482/stable/x86_64-centos7/lib/python2.7/site-packages/xenv/__init__.py", line 289, in main
self._makeEnv()
File "/cvmfs/lhcb.cern.ch/lib/var/lib/LbEnv/482/stable/x86_64-centos7/lib/python2.7/site-packages/LbEnv/ProjectEnv/script.py", line 760, in _makeEnv
self.opts.platform, self.opts.container = self._findPlatformAndContainer()
TypeError: 'NoneType' object is not iterable
```
This small change fixes the problem.1.1.4Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/88Reenable singularity tests2019-09-26T10:50:50+02:00Chris BurrReenable singularity testsFixes #19. It's a little crude but it's consistent with how LbPlatfomUtils will be tested.Fixes #19. It's a little crude but it's consistent with how LbPlatfomUtils will be tested.1.1.4Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/87Resolve "lb-run --container uses DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH"2019-07-26T09:38:15+02:00Marco Clemencicmarco.clemencic@cern.chResolve "lb-run --container uses DYLD_LIBRARY_PATH instead of LD_LIBRARY_PATH"Closes #16Closes #161.1.4Ben CouturierBen Couturierhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/86Update packages and projects lists2019-07-24T11:44:24+02:00Marco Clemencicmarco.clemencic@cern.chUpdate packages and projects listsApart for minor clean up, this is basically to add `Castelao` to the embedded list of projects, so that the name gets properly canonicalized (e.g. in release slots, see https://lhcb-nightlies.cern.ch/release/lhcb-release/build/3366/).Apart for minor clean up, this is basically to add `Castelao` to the embedded list of projects, so that the name gets properly canonicalized (e.g. in release slots, see https://lhcb-nightlies.cern.ch/release/lhcb-release/build/3366/).1.1.4Ben CouturierBen Couturierhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/85Properly mask failures of 'unalias' in LbEnv2019-09-23T10:25:43+02:00Marco Clemencicmarco.clemencic@cern.chProperly mask failures of 'unalias' in LbEnvThe silent failure of `unalias LbLogin` was causing troubles in bash scripts using `set -e` (causing them to bail out), like the nightly build scripts.
Adding a `|| true` resets the exit code of the line to 0, so that the script can con...The silent failure of `unalias LbLogin` was causing troubles in bash scripts using `set -e` (causing them to bail out), like the nightly build scripts.
Adding a `|| true` resets the exit code of the line to 0, so that the script can continue even with `set -e`.1.1.3Ben CouturierBen Couturierhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/84Don't edit $HOME and only use user namespaces for Singularity2019-07-18T14:02:23+02:00Chris BurrDon't edit $HOME and only use user namespaces for SingularityFollows https://gitlab.cern.ch/lhcb-core/LbPlatformUtils/merge_requests/55Follows https://gitlab.cern.ch/lhcb-core/LbPlatformUtils/merge_requests/551.1.2Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/83Unalias LbLogin before recreating it as a function2019-07-16T14:42:01+02:00Marco Clemencicmarco.clemencic@cern.chUnalias LbLogin before recreating it as a functionto avoid interference with virtualenv, when `LbEnv` is sourced after `LbLogin`.to avoid interference with virtualenv, when `LbEnv` is sourced after `LbLogin`.1.1.2Ben CouturierBen Couturierhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/82Append default CERNVM path when launching container2019-07-12T16:13:15+02:00Chris BurrAppend default CERNVM path when launching container1.1.2Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/81Fix lookup of CMT projects in nightlies2019-07-03T17:40:59+02:00Marco Clemencicmarco.clemencic@cern.chFix lookup of CMT projects in nightliesAfter the changes in the way nightlies checkout and install projects, CMT projects were not correctly handled.
This fixes the lookup.After the changes in the way nightlies checkout and install projects, CMT projects were not correctly handled.
This fixes the lookup.1.1.2Ben CouturierBen Couturierhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/80Added dependency on LbPLatformUtils 4.2.32019-06-27T15:53:05+02:00Ben CouturierAdded dependency on LbPLatformUtils 4.2.3Should be enough to tag LbEnv 1.1.1Should be enough to tag LbEnv 1.1.11.1.1Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/73Fix logic error in --quiet default2019-04-29T15:36:45+02:00Marco Clemencicmarco.clemencic@cern.chFix logic error in --quiet defaultFix issue introduced with !71.Fix issue introduced with !71.0.3.12Marco Clemencicmarco.clemencic@cern.chMarco Clemencicmarco.clemencic@cern.chhttps://gitlab.cern.ch/lhcb-core/LbEnv/-/merge_requests/72Do not exit but continue with a warning on unsupported platforms2019-04-29T13:26:18+02:00Marco Clemencicmarco.clemencic@cern.chDo not exit but continue with a warning on unsupported platformsCloses #15Closes #150.3.11Ben CouturierBen Couturier