Yicong-Huang opened a new issue, #4519:
URL: https://github.com/apache/texera/issues/4519
### Task Summary
Two of the slowest steps in the `scala` job of
`.github/workflows/github-action-build.yml` repeat work that doesn't change
between runs:
1. **Install dependencies** (`pip install -r amber/requirements.txt` etc.) —
currently ~1m 21s every run, no cache. `actions/setup-python@v6` accepts
`cache: 'pip'` with `cache-dependency-path` and would skip the network for
unchanged requirement files.
2. **`sbt 'scalafmtCheckAll; scalafixAll --check'`** — currently ~2m 44s
wall, dominated by the cold compile that scalafix triggers. The
`coursier/cache-action` we already use only caches dependency jars, not the
`target/scala-2.13/{classes,zinc}` directories or `~/.sbt/1.0/zinc`. An
`actions/cache@v4` keyed on `**/*.scala`, `**/*.sbt`, `project/**` would let
incremental compile skip most of the work on cache hit.
Together these are estimated to save 2–3 minutes per scala-job run on cache
hit. Nothing about the existing test logic needs to change.
### Priority
P3 – Low
### Task Type
DevOps / Deployment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]