Skip to content

ci: Remove llvm build and add ccache support on windows - #8164

Merged
stefanv merged 2 commits into
scikit-image:mainfrom
blink1073:windows-speedup
May 14, 2026
Merged

stefanv merged 2 commits into
scikit-image:mainfrom
blink1073:windows-speedup

Conversation

@blink1073

@blink1073 blink1073 commented May 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #8146 and addresses TODO from #7835

Attempt 1: 2m55s for build
Attempt 2: 1m35s

Run ccache --show-stats
Cacheable calls:    112 / 112 (100.0%)
  Hits:              56 / 112 (50.00%)
    Direct:          56 /  56 (100.0%)
    Preprocessed:     0 /  56 ( 0.00%)
  Misses:            56 / 112 (50.00%)
Local storage:
  Cache size (GiB): 0.0 / 5.0 ( 0.35%)
  Hits:              56 / 112 (50.00%)
  Misses:            56 / 112 (50.00%)

We have also removed the 8m52s LLVM build step from the latest run on main. The full run on main took 18m41s, while on the second attempt in this PR it took 3m32s. About 5 minutes of that delta is from the --test-modified support added in #8103

@blink1073 blink1073 changed the title ci: remove llvm build and add ccache support on windows ci: Remove llvm build and add ccache support on windows May 14, 2026
@blink1073 blink1073 added the 🤖 type: Infrastructure CI, packaging, tools and automation label May 14, 2026
@greptile-apps

greptile-apps Bot commented May 14, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "add debug step" | Re-trigger Greptile

@blink1073
blink1073 marked this pull request as ready for review May 14, 2026 18:21
uses: actions/cache@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.OPTIONS_NAME }}-${{ github.sha }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very narrow cache key; do we not gain with builds across several commits? Security or other risk?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I waffled on this one, whether the options could end up changing compiler options or something that would affect ccache.

@stefanv
stefanv merged commit d07e644 into scikit-image:main May 14, 2026
31 checks passed
@stefanv

stefanv commented May 14, 2026

Copy link
Copy Markdown
Member

Thanks!

@stefanv stefanv added this to the 0.27 milestone May 14, 2026
@blink1073
blink1073 deleted the windows-speedup branch May 15, 2026 12:12
matthew-brett added a commit that referenced this pull request May 19, 2026
* origin/main:
  Use standard C99 static inline instead of `__inline` (#8159)
  Fix structural_similarity win_size / gaussian_weights conflict (#8162)
  Unwrap seed refactor (#8142)
  ci: Remove llvm build and add ccache support on windows (#8164)
  Document warn_external in contributing guide (#8163)
  CI: Fix emscripten dependencies and clean up wheel test commands (#8147)
  Test only changed subpackages (#8103)
  Fix nightlies: update deprecated scipy call, fix underdetermined test
  Fix minkowski distanced invocation for SciPy >= 1.18 (#8157)
  Port `structural_similarly` to ski2 (#8104)
  make spin build requirement a lower bound (#8158)
matthew-brett added a commit to matthew-brett/scikit-image that referenced this pull request May 21, 2026
* origin/main: (254 commits)
  Refactor, document migration utilities (scikit-image#8184)
  ci: improve handling of pr labels (scikit-image#8169)
  Doctest migration in PRs & on all platforms (scikit-image#8141)
  Update SKIP 4 (import hierarchy, backporting, testing) (scikit-image#8097)
  One page per function / class in HTML docs for skimage2 (scikit-image#8154)
  Pin minimum pytest to 9 (scikit-image#8174)
  docs: make source install instructions more discoverable and add build requirements to top level requirements file (scikit-image#8165)
  Drop `--maxfail=5` from local pytest config (scikit-image#8170)
  Use standard C99 static inline instead of `__inline` (scikit-image#8159)
  Fix structural_similarity win_size / gaussian_weights conflict (scikit-image#8162)
  Unwrap seed refactor (scikit-image#8142)
  ci: Remove llvm build and add ccache support on windows (scikit-image#8164)
  Document warn_external in contributing guide (scikit-image#8163)
  CI: Fix emscripten dependencies and clean up wheel test commands (scikit-image#8147)
  Test only changed subpackages (scikit-image#8103)
  Fix nightlies: update deprecated scipy call, fix underdetermined test
  Fix minkowski distanced invocation for SciPy >= 1.18 (scikit-image#8157)
  Port `structural_similarly` to ski2 (scikit-image#8104)
  make spin build requirement a lower bound (scikit-image#8158)
  Drop Python 3.11 Support (scikit-image#8153)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🤖 type: Infrastructure CI, packaging, tools and automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Use ccache on Windows

2 participants