Skip to content

Harden build cache input and diagnostics - #170

Merged
yoshifuminakamura merged 2 commits into
developfrom
feature/conservative-app-build-cache-inputs
Sep 7, 2026
Merged

yoshifuminakamura merged 2 commits into
developfrom
feature/conservative-app-build-cache-inputs

Conversation

@yoshifuminakamura

@yoshifuminakamura yoshifuminakamura commented Sep 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Hash Git-tracked files under programs/<code>/ as app-owned build cache inputs.
  • Prioritize avoiding stale binary restores over maximizing build cache hit rate.
  • Clarify build cache diagnostics for matched, newly recorded, and rejected cache entries.
  • Add regression coverage that app-local source changes cause a cache miss and fresh store.

Tests

  • bash scripts/tests/test_build_cache.sh
  • .venv/bin/python -m pytest result_server/tests/test_result_detail_template.py -q
  • .venv/bin/python result_server/tests/run_result_server_tests.py
  • shellcheck -S error -f gcc scripts/build_with_cache.sh scripts/tests/test_build_cache.sh
  • bash -n scripts/build_with_cache.sh scripts/tests/test_build_cache.sh
  • python3 scripts/tests/check_text_integrity.py
  • python3 scripts/tests/check_commit_messages.py
  • git diff --check

Signed-off-by: yoshifuminakamura <nakamura@riken.jp>
Signed-off-by: yoshifuminakamura <nakamura@riken.jp>
@yoshifuminakamura yoshifuminakamura changed the title Conservatively hash app build cache inputs Harden build cache input and diagnostics Sep 7, 2026
@yoshifuminakamura
yoshifuminakamura merged commit 865342c into develop Sep 7, 2026
6 checks passed
@yoshifuminakamura
yoshifuminakamura deleted the feature/conservative-app-build-cache-inputs branch September 7, 2026 13:02
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