mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-04 10:45:50 +00:00
Implements drop-in replacement for actions/cache using S3 backend and OverlayFS for delta caching: - xahau-actions-cache-restore: Downloads immutable base + optional latest delta - xahau-actions-cache-save: Saves immutable bases (bootstrap/partial-match) or timestamped deltas (exact-match) Key features: - Immutable bases: One static base per key (first-write-wins, GitHub Actions semantics) - Timestamped deltas: Always-timestamped to eliminate concurrency issues - Configurable use-deltas parameter (default true): - true: For symbolic keys (branch-based) - massive bandwidth savings via incremental deltas - false: For content-based keys (hash-based) - base-only mode, no delta complexity - Three cache modes: bootstrap, partial-match (restore-keys), exact-match - OverlayFS integration: Automatic delta extraction via upperdir, whiteout file support - S3 lifecycle ready: Bases tagged 'type=base', deltas tagged 'type=delta-archive' Decision rule for use-deltas: - Content-based discriminator (hashFiles, commit SHA) → use-deltas: false - Symbolic discriminator (branch name, tag, PR) → use-deltas: true Also disables existing workflows temporarily during development.
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
name: levelization
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
CLANG_VERSION: 10
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Check levelization
|
|
run: Builds/levelization/levelization.sh
|
|
- name: Check for differences
|
|
id: assert
|
|
run: |
|
|
set -o pipefail
|
|
git diff --exit-code | tee "levelization.patch"
|
|
- name: Upload patch
|
|
if: failure() && steps.assert.outcome == 'failure'
|
|
uses: actions/upload-artifact@v4
|
|
continue-on-error: true
|
|
with:
|
|
name: levelization.patch
|
|
if-no-files-found: ignore
|
|
path: levelization.patch
|
|
- name: What happened?
|
|
if: failure() && steps.assert.outcome == 'failure'
|
|
env:
|
|
MESSAGE: |
|
|
If you are reading this, you are looking at a failed Github
|
|
Actions job. That means you changed the dependency relationships
|
|
between the modules in rippled. That may be an improvement or a
|
|
regression. This check doesn't judge.
|
|
|
|
A rule of thumb, though, is that if your changes caused
|
|
something to be removed from loops.txt, that's probably an
|
|
improvement. If something was added, it's probably a regression.
|
|
|
|
To fix it, you can do one of two things:
|
|
1. Download and apply the patch generated as an artifact of this
|
|
job to your repo, commit, and push.
|
|
2. Run './Builds/levelization/levelization.sh' in your repo,
|
|
commit, and push.
|
|
|
|
See Builds/levelization/README.md for more info.
|
|
run: |
|
|
echo "${MESSAGE}"
|
|
exit 1
|