forked from Xilinx/finn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update pytest and plugins. Log HTML and Junit. Improve test parallelization. Rerun failed tests. Load dependencies in separate job. Try to increase stack size instead of running tests with --forked. Try to fix last remaining failing tests (upsampler and Alveo end2end).
- Loading branch information
1 parent
d642247
commit 7abd3cb
Showing
8 changed files
with
104 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,21 +103,22 @@ RUN pip install ipykernel==6.21.2 | |
RUN pip install jupyter==1.0.0 --ignore-installed | ||
RUN pip install markupsafe==2.0.1 | ||
RUN pip install matplotlib==3.7.0 --ignore-installed | ||
RUN pip install pytest-dependency==0.5.1 | ||
RUN pip install pytest-xdist[setproctitle]==3.2.0 | ||
RUN pip install pytest-parallel==0.1.1 | ||
RUN pip install pytest-dependency==0.6.0 | ||
RUN pip install pytest-xdist[setproctitle]==3.6.1 | ||
RUN pip install "netron>=5.0.0" | ||
RUN pip install pandas==1.5.3 | ||
RUN pip install scikit-learn==1.2.1 | ||
RUN pip install tqdm==4.64.1 | ||
RUN pip install -e git+https://github.com/fbcotter/[email protected]#egg=dataset_loading | ||
# these versions of pytest and associated plugins allow for stable collection of | ||
# test reports and code coverage reports in HTML | ||
RUN pip install pytest==6.2.5 | ||
RUN pip install pytest-metadata==1.7.0 | ||
RUN pip install pytest-html==3.0.0 | ||
RUN pip install pytest-html-merger==0.0.8 | ||
RUN pip install pytest-cov==4.1.0 | ||
RUN pip install pytest==8.3.4 | ||
RUN pip install pytest-metadata==3.1.1 | ||
RUN pip install pytest-html==4.1.1 | ||
RUN pip install pytest-html-merger==0.1.0 | ||
RUN pip install pytest-cov==6.0.0 | ||
RUN pip install pytest-forked==1.6.0 | ||
RUN pip install pytest-rerunfailures==15.0 | ||
RUN pip install pyyaml==6.0.1 | ||
|
||
# extra dependencies from other FINN deps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
: ${PYTEST_PARALLEL=auto} | ||
: ${CI_PROJECT_DIR="."} | ||
|
||
cd $FINN_ROOT | ||
|
||
if [ -z $1 ] || [ $1 = "quicktest" ]; then | ||
pytest -m 'not (vivado or slow or vitis or board or notebooks or bnn_pynq)' --junitxml=$CI_PROJECT_DIR/reports/quick.xml --html=$CI_PROJECT_DIR/reports/quick.html --reruns 1 --dist worksteal -n $PYTEST_PARALLEL | ||
elif [ $1 = "full" ]; then | ||
pytest -k 'not (rtlsim or end2end)' --junitxml=$CI_PROJECT_DIR/reports/main.xml --html=$CI_PROJECT_DIRreports/main.html --reruns 1 --dist worksteal -n $PYTEST_PARALLEL | ||
pytest -k 'rtlsim and not end2end' --junitxml=$CI_PROJECT_DIR/reports/rtlsim.xml --html=$CI_PROJECT_DIR/reports/rtlsim.html --reruns 1 --dist worksteal -n $PYTEST_PARALLEL | ||
pytest -k 'end2end' -m 'sanity_bnn or end2end or fpgadataflow or notebooks' --junitxml=$CI_PROJECT_DIR/reports/end2end.xml --html=$CI_PROJECT_DIR/reports/end2end.html --reruns 1 --dist loadfile -n $PYTEST_PARALLEL | ||
pytest_html_merger -i $CI_PROJECT_DIR/reports/ -o $CI_PROJECT_DIR/reports/full_test_suite.html | ||
else | ||
echo "Unrecognized argument to test.sh: $1" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters