The build and test time has increased to 1.5 hours recently. Can we add features in CI to reduce unnecessary testing?
Below are some ideas:
- Sometime only E2E step is failing, due to huggingface connectivity, and we would need to rerun the action, which rerun the whole workflow, from building the compiler, lit test, core test, etc, all the way to E2E testing. Suggest to only rerun failed steps if the PR is not changed, i.e., no new commits.
- Cache the build step, and parallel testing steps.
- Categorize different testing and trigger different portion by manually setting PR labels or PR comments. (Cache build step if we do this)