Jason Kenny
2018-11-08 22:09:43 UTC
I am looking at cleaning up the logic to "setup" what is needed to run
autest against traffic server.
The current logic "works" well but when it does not. It tries to install
python 3.5 if it is not installed. microserver needs to have python 3.5 or
better to work currently. I would like to move to require that the user has
to install a python 3.5 or better on the system to run the tests with the
python pipenv package installed. I would then replace the current script
with a pipfile ( used by pipenv). The autest.sh shell script will become as
simple as:
pipenv run autest <args for autest>
pipenv will create a virtual environment if it is not created and run
autest as needed. The pipefile will have the exact requirements we need to
run the tests. it also has a nice simple command such as :
pipenv shell that will create a shell with everything to run
autest correctly. A simple exit will go back to a clean shell. There are a
number of other commands. The main goal is that this makes it easier to set
up and run Autest and the extra tools such as uServer or traffic-replay for
people that don't know python as well as I do
Is there any concerns with having requirements that the user has to install
a python3.5 or better on their system as well as pipenv? I know all the
base system have a python 3.5 package today. So I don't believe this should
be a problem. This change should also make it easier for groups that are
using 3.6 or 3.7 on their systems to set everything up when they don't have
a python 3.5 to install.
Jason
autest against traffic server.
The current logic "works" well but when it does not. It tries to install
python 3.5 if it is not installed. microserver needs to have python 3.5 or
better to work currently. I would like to move to require that the user has
to install a python 3.5 or better on the system to run the tests with the
python pipenv package installed. I would then replace the current script
with a pipfile ( used by pipenv). The autest.sh shell script will become as
simple as:
pipenv run autest <args for autest>
pipenv will create a virtual environment if it is not created and run
autest as needed. The pipefile will have the exact requirements we need to
run the tests. it also has a nice simple command such as :
pipenv shell that will create a shell with everything to run
autest correctly. A simple exit will go back to a clean shell. There are a
number of other commands. The main goal is that this makes it easier to set
up and run Autest and the extra tools such as uServer or traffic-replay for
people that don't know python as well as I do
Is there any concerns with having requirements that the user has to install
a python3.5 or better on their system as well as pipenv? I know all the
base system have a python 3.5 package today. So I don't believe this should
be a problem. This change should also make it easier for groups that are
using 3.6 or 3.7 on their systems to set everything up when they don't have
a python 3.5 to install.
Jason