Changeset View
Changeset View
Standalone View
Standalone View
jobs/swh-environment.yaml
Show All 26 Lines | - job: | ||||
builders: | builders: | ||||
- shell: | | - shell: | | ||||
#!/bin/bash | #!/bin/bash | ||||
# fetch swh repositories | # fetch swh repositories | ||||
mr -j 4 -t update | mr -j 4 -t update | ||||
# setup a virtualenv | # setup a virtualenv | ||||
python3 -m venv .venv | python3 -m venv .venv | ||||
. .venv/bin/activate | . .venv/bin/activate | ||||
# upgrade pip or some swh modules might end up being installed | # upgrade pip as default installed version is too outdated to properly | ||||
# in non editable mode | # install all swh dependencies | ||||
pip install --upgrade pip | pip install --upgrade pip | ||||
# install dependencies | # install dependencies and workaround https://github.com/pypa/pip/issues/10573 | ||||
pip install wheel pytest | ./bin/install --no-use-pep517 | ||||
ardumont: i don't know the pep id so might be good to explicit that. | |||||
anlambertAuthorUnsubmitted Done Inline ActionsUnfortunately this is not the right solution, see T3663#72470. Pinning pip to < 21.3 seems the only way to fix the build here. anlambert: Unfortunately this is not the right solution, see T3663#72470.
Pinning pip to < 21.3 seems the… | |||||
# temporary workaround to avoid new pip resolver to enter in a really | |||||
# long package backtracking process leading to build job timeout | |||||
# (https://github.com/pypa/pip/issues/9187) | |||||
# pip install $(bin/pip-swh-packages --with-testing) | |||||
while IFS= read -r package; do | |||||
pip install $package | |||||
done <<< $(./bin/pip-swh-packages --with-testing) | |||||
cd swh-graph | cd swh-graph | ||||
make java >/dev/null | make java >/dev/null | ||||
cd .. | cd .. | ||||
# execute tests in each swh module | # execute tests in each swh module | ||||
exit_code=0 | exit_code=0 | ||||
for module in $(./bin/ls-py-modules) | for module in $(./bin/ls-py-modules) | ||||
do | do | ||||
cd $module | cd $module | ||||
Show All 23 Lines |
i don't know the pep id so might be good to explicit that.