Tests failing while executing on x86 and ppc #14695
Unanswered
gitssinghal
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi There,
I followed below steps to build and install airflow on ppc and x86 with python 3.8 and pip latest 21 (also tried with 20.2.4 )
CWD=
pwd
export PATH=${PATH}:$HOME/conda/bin
export PATH=${PATH}:/root/conda/envs/airflow/lib/python3.8/site-packages
export PATH=${PATH}:/root/conda/envs/airflow/bin
export PYTHON_VERSION=3.8
export AIRFLOW_HOME=~/airflow
INSTALL_PROVIDERS_FROM_SOURCES=false
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
export PYTHON=/usr/local/bin/python3.8
yum update -y
yum install -y git wget curl make gcc-c++ procps
#installing pre-reqs
yum install gcc openssl-devel bzip2-devel libffi-devel zlib-devel
cd /usr/src
wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz
tar xzf Python-3.8.0.tgz
cd Python-3.8.0
./configure --enable-optimizations
make altinstall
rm /usr/src/Python-3.8.0.tgz
#installing PIP
$PYTHON -m pip install --upgrade pip
read -p "python version"
#pip install --upgrade pip==20.2.4
cd CWD
#Install conda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-ppc64le.sh
sh Miniconda3-latest-Linux-ppc64le.sh -u -b -p $HOME/conda
$HOME/conda/bin/conda update -y -n base conda
conda create -n airflow -y python=3.8
conda init bash
eval "$(conda shell.bash hook)"
conda activate airflow
conda install -y pytest
git clone https://github.com/apache/airflow
cd airflow
git checkout 2.0.1
wget https://raw.githubusercontent.com/apache/airflow/constraints-2.0.1/constraints-3.8.txt
pip install . --constraint constraints-3.8.txt
#python setup.py install
read -p "initializing db"
airflow db init
#input password xyz
airflow users create
--username admin
--firstname Peter
--lastname Parker
--role Admin
--email [email protected]
#read -p "connecting to db"
#airflow db shell
#run test
read -p "running tests"
python3 setup.py test > test_log.txt
and the final output i received is
Ran 2161 tests in 4181.649s
FAILED (failures=49, errors=587, skipped=30)
Test failed: <unittest.runner.TextTestResult run=2161 errors=587 failures=49>
error: Test failed: <unittest.runner.TextTestResult run=2161 errors=587 failures=49>
with similar steps ran on x86 machine the result was
Ran 2168 tests in 1371.291s
FAILED (failures=51, errors=582, skipped=30)
Test failed: <unittest.runner.TextTestResult run=2168 errors=582 failures=51>
error: Test failed: <unittest.runner.TextTestResult run=2168 errors=582 failures=51>
Wanted to know if I am missing something in steps or is there any best case exists for the tests.
Beta Was this translation helpful? Give feedback.
All reactions