Skip to content

Fix stale cached artifacts while keeping incremental builds#44

Open
adeebshihadeh wants to merge 1 commit intomasterfrom
incremental
Open

Fix stale cached artifacts while keeping incremental builds#44
adeebshihadeh wants to merge 1 commit intomasterfrom
incremental

Conversation

@adeebshihadeh
Copy link
Contributor

@adeebshihadeh adeebshihadeh commented Mar 2, 2026

Summary

  • make build.sh own cache invalidation logic so local and CI incremental behavior match
  • compute per-package build stamps from package inputs and platform
  • clear only stale package artifact dirs (install, toolchain, bin) before build
  • write fresh build stamps after smoketests pass
  • clear dist/*.whl at build start to avoid local multi-version wheel conflicts
  • keep CI incremental cache fallback enabled, but rotate cache namespace to build-cache-v2
  • drop unnecessary cache restore from publish job

Local validation

  • bash -n build.sh
  • ./build.sh
  • red-team: delete json11/json11/install/.build-stamp, rerun ./build.sh, verify targeted invalidation
  • red-team: modify json11/build.sh, rerun ./build.sh, verify targeted invalidation
  • ./test_wheels_in_image.sh debian:bookworm-slim

greatgitsby added a commit to greatgitsby/op-dependencies that referenced this pull request Mar 4, 2026
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant