Title Adapt bitbucket pipeline to git(hub)
Priority feature Status in-progress
Superseder Nosy List augusto, cedric, jendrik, malte, patfer, silvan
Assigned To patfer Keywords
Optional summary

Created on 2019-12-05.17:22:03 by patfer, last changed by malte.

File name Uploaded Type Edit Remove
ubuntu.yml patfer, 2019-12-05.17:23:49 application/x-yaml
msg9098 (view) Author: malte Date: 2019-12-13.11:35:13
I see no immediate issues with the CPLEX license that would prevent us from using a cloud-based buildbot replacement as long as access is limited to members of our research group. But I suggest you speak to Florian (who is not on this issue) for a second opinion and also look into this yourself.

Some relevant references:
msg9097 (view) Author: silvan Date: 2019-12-13.11:25:25
Current status of github actions:
- ubuntu: tests run for different compilers, python versions, including CPLEX
  - find out if and how we can legally run CPLEX.
  - nightly and weekly tests
- mac: those tests run by the buildbot run: exit codes and standard configs
  TODOs: CPLEX? valgrind for all code tests?
- windows: compilation runs (without CPLEX)
  TODOs: CPLEX? run some tests?
msg9091 (view) Author: cedric Date: 2019-12-11.13:16:34
> Cedric, are you still working on the Windows yaml file? I saw that compilation works, but the planner is not yet tested. Also, it would be great if you could look into adding CPLEX also for the Windows builds.

Not today. I can look into it tomorrow.
msg9090 (view) Author: jendrik Date: 2019-12-11.12:43:58
Building with different Python versions also has its benefits, because it tests with different versions. However, I agree that we should try to only build the planner for each revision once (or twice if we count the debug build). It seems this is possible by using artifacts:
msg9089 (view) Author: silvan Date: 2019-12-11.12:31:48
Patrick and I discussed this a bit further and I'll try to come up with a solution using matrix builds. We currently don't see an easy way of avoiding to compile the planner again for all different python versions.

Cedric, are you still working on the Windows yaml file? I saw that compilation works, but the planner is not yet tested. Also, it would be great if you could look into adding CPLEX also for the Windows builds.
msg9088 (view) Author: jendrik Date: 2019-12-11.11:11:07
There are multiple ways how to select which tox environments are run ( If you use a matrix setup, it's better to select only a single Python version. If the matrix build only provides a single Python version, you can use "tox -e py,style". Otherwise, you can probably set TOXENV=py36,style for the matrix build for Python 3.6.
msg9087 (view) Author: patfer Date: 2019-12-11.11:10:38
What are each scenario (nighly, weekly?)
If the tests differ only in the python version used, I would prefer to have only
a single configuration file (if we run different tests in different scenarios,
those can be in different configuration files).
About the issue that only one python version succeeds, does specifying to tox to
run only a certain python version help? (e.g. tox -e p36 if your matrix is in
the step for python 3.6)?
msg9086 (view) Author: silvan Date: 2019-12-11.10:57:40
The ubuntu setup also works (tested gcc, but not clang, python 3.6 and 3.7, and with CPLEX). I think we should now discuss how to test the different scenarios. In the current version, I used a matrix build to test different python versions, but then the generic test "tox" will fail on each build because only one python version succeeds. Should we address this with the already planned task of having separate tox configs for each scenario? This would however mean that we need to do the matrix setup there, too...
msg9082 (view) Author: jendrik Date: 2019-12-10.15:11:59
I left some comments there.
msg9081 (view) Author: silvan Date: 2019-12-10.14:56:09
The MacOS tests now run successfully.
msg9080 (view) Author: jendrik Date: 2019-12-09.18:36:18
Inspecting your code more closely, the problem is that the code needs to call "pytest" instead of "python". Nonetheless, I recommend to use the official way of obtaining Python 3.8.
msg9079 (view) Author: jendrik Date: 2019-12-09.18:29:12
It seems that using homebrew is not the recommended way of installing Python versions for Github Actions. In case you haven't tried that already, 

here is a list of available versions:

and here is how to install them:

I'd choose Python 3.8 since this is the version that people will most likely want to install on their machines.
msg9078 (view) Author: silvan Date: 2019-12-09.17:53:56
I tried to get the MacOS Yaml file done, but failed because "python3.7 <filename>" just doesn't do anything.

I tried to give access to aibasel, but this didn't work, so I only invited Jendrik and Patrick as "collaborators" so far. Any ideas on why this does not work are appreciated. Otherwise, we could also first try to have separate tox configurations, because running "tox" worked when I tried it.
msg9068 (view) Author: malte Date: 2019-12-05.17:23:57
Hi all, just include me in the nosy list for all issues. (Same for Jendrik, but he was already included.)
msg9067 (view) Author: patfer Date: 2019-12-05.17:23:49
Attached is the current version of the yml file for the GitHub Actions (for
testing on ubuntu)
Date User Action Args
2019-12-13 11:35:14maltesetmessages: + msg9098
2019-12-13 11:25:25silvansetmessages: + msg9097
2019-12-11 13:16:34cedricsetmessages: + msg9091
2019-12-11 12:43:58jendriksetmessages: + msg9090
2019-12-11 12:31:48silvansetmessages: + msg9089
2019-12-11 11:11:07jendriksetmessages: + msg9088
2019-12-11 11:10:38patfersetmessages: + msg9087
2019-12-11 10:57:40silvansetmessages: + msg9086
2019-12-10 15:11:59jendriksetmessages: + msg9082
2019-12-10 14:56:09silvansetstatus: chatting -> in-progress
messages: + msg9081
2019-12-09 18:36:18jendriksetmessages: + msg9080
2019-12-09 18:29:12jendriksetmessages: + msg9079
2019-12-09 17:53:56silvansetstatus: unread -> chatting
messages: + msg9078
2019-12-06 08:12:08cedricsetnosy: + cedric
2019-12-05 17:31:32silvansetnosy: + silvan
2019-12-05 17:23:57maltesetstatus: chatting -> unread
nosy: + malte
messages: + msg9068
2019-12-05 17:23:49patfersetfiles: + ubuntu.yml
status: unread -> chatting
messages: + msg9067
2019-12-05 17:22:03patfercreate