aboutcode-org / aboutcode-org/scancode-toolkit

Improve CI tests run time

未關閉
#2,561 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

### Description

Tests (and CI in particular) take too long to run IMHO.
Some avenues to consider beyond some work on added with #1519
1. Selectively run only tests when needed based on an analysis of code changes (complex but likely worth it)
2. Break the main repo in more repos such that we only run tests on each sub-repo when these repos are changed. (essentially leading to 1. with the caveat that we cannot have proper integration tests running at all time for instance if a change in copyright detection has some impact on license detection or license detection impacts package detection )
3. Run less tests combos in the CI matrix, for instance drop running certain Python version/ OS combos that are not likely to be super useful
4. Drop Python 3.6 support?
5. Improve boot times: there is over 1 minute spent to ./configure and this could be faster. On macOS updating homebrew can take forever too. May be switching to container tests on Linux would speed things up. Combining the tests of several Python versions on a single OS in one task may be more efficient and remove some boot time.
6. Run fewer tests on each OS/Python combos: we need only a basic smoke test to ensure that things are working on every combo. This could be made faster by running fewer tests including for the pip installation tests.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。