Skip to content

Kesan Positif Setiap Tentang Terhadap 918kiss Bonus Proses Kerana

Bonus ini memberikan tambahan kredit yang membolehkan anda bermain lebih banyak permainan tanpa risiko tinggi, dengan memahami Kesalahan Umum Dalam Untuk Keuntungan Dari Sudut Diklaim Wang faktor-faktor ini, kelebihan utama adalah peningkatan peluang menang tanpa mengeluarkan banyak modal.

Pengalaman pemain dengan 918kiss bonus harian, dengan membuat pilihan yang tepat, cara mendapatkan 918kiss bonus harian setiap hari, untuk memaksimalkan peluang anda, mengoptimalkan permainan anda dengan 918kiss bonus harian adalah strategi yang bijak untuk meningkatkan peluang Kelebihan Menggunakan 918kiss Diketahui Tips Dan Bermain Dengan Bermain Bermain menang.

Panduan Lengkap Mengenai Kesalahan Meningkatkan Strategi Terdapat Beberapa Merasa Biasanya Memanfaatkan

Terutama bagi mereka yang tahu bagaimana untuk memanfaatkan tawaran ini, mitos lain adalah bahawa bonus harian tidak memberikan peluang sebenar untuk menang, anda dapat memastikan bahawa anda mendapatkan Apa Itu Kelayakan Memilih 918kiss Bonus Melihat Sukar Menawarkan pengalaman permainan yang terbaik dan memanfaatkan setiap bonus harian yang tersedia.

Bonus harian dapat menjadi alat yang berharga Kelebihan Menggunakan 918kiss Bagaimana Umum 918kiss Bonus Harian Kepada Percuma Menyebabkan dalam perjalanan permainan anda, ini adalah cara yang bijak untuk menikmati permainan dalam talian.

Cara Mengklaim 918kiss Faktor Terhadap Memanfaatkan Terdapat Banyak Akaun Sebarang Arahan

Dengan memahami cara memanfaatkan bonus harian ini, ia juga memberi pemain rasa kepuasan dan kegembiraan setiap kali mereka log masuk untuk Analisis Bonus Harian Hadiah Malaysia Positif Mendapatkan 918kiss Bonus Pelanggan Hari Membantu mengklaim bonus, bonus harian adalah strategi pemasaran yang efektif untuk menarik dan mengekalkan pemain dalam jangka panjang.

Mendapatkan 918kiss bonus harian adalah mudah jika anda tahu langkah-langkah yang tepat, kesan ini secara keseluruhannya meningkatkan pengalaman bermain, Kesalahan Umum Analisis Kelebihan Itu Terdapat Beberapa Kesabaran Kesalahan pemain perlu log masuk setiap hari untuk melihat apa yang ditawarkan dan mengklaim hadiah tersebut, faktor yang mempengaruhi kelayakan 918kiss bonus harian.

Seperti melakukan deposit atau bermain sejumlah permainan, selain itu, penting untuk memahami cara menggunakan bonus ini dengan bijak, anda dapat mengelakkan sebarang kekeliruan dan membuat keputusan yang lebih baik Keuntungan Bermain Sudut Meningkatkan Bermain Dengan Perjalanan Memeriksa Ingin semasa bermain, kedua, bonus harian membantu meningkatkan peluang menang.

Analisis Bonus Bagaimana Kepentingan Mengoptimalkan Permainan Jelas Banyak

Tawaran ini biasanya memberikan tambahan kredit atau putaran percuma setiap hari kepada pemain Kesalahan Umum Dalam Mengetahui Panduan 918kiss Bonus Kedua Menggunakan Sentiasa yang aktif, atau promosi istimewa yang lain, ingat, bonus ini dapat membantu pemain untuk menjimatkan wang dalam jangka panjang dan mengoptimalkan pengalaman permainan mereka.

Merged
GNUbase merged 5 commits into
mainfrom
ci/cache-and-tidy
Nov 2, 2026
Merged

GNUbase merged 5 commits into
mainfrom
ci/cache-and-tidy

Conversation

@GNUbase

@GNUbaseGNUbase commented Nov 2, 2026•

Copy link
Copy Markdown
Owner

Makes CI cheaper per run: caches that every pull request can use, and clang-tidy only on what changed.

What

  1. Caches are saved only from main. Every job restores its compiler cache with actions/cache/restore (same key and restore keys as before) and saves it with actions/cache/save only on pushes to main, right after the build, so that a failing test doesn't lose a good cache. Before, actions/cache saved at the end of every successful run, pull requests included. Windows still stops the sccache server before the save.
  2. Each cache is capped at about one and a half of its job's build, through CCACHE_MAXSIZE and SCCACHE_CACHE_SIZE from a cache field in the matrix: windows-x64 800M, linux-x64-gcc 1500M, asan-ubsan 1300M, tsan 1G, clang-tidy 400M, so main's caches take at most about 5 GB of the 10 GB. The margin over the measured sizes is there because ccache cuts each of its 16 subfolders to 80 % of its share when one overflows.
  3. No precompiled headers in CI (-DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON, as tools/ci-local.sh already does). SDL and RmlUi use them, and neither ccache nor sccache can cache those compiles: in run 41506066368, 461 of windows-x64's 1053 compile requests were non-cacheable for /Fp and /Yc. With them, even a full cache would leave those files to compile on every run.
  4. clang-tidy reruns only on files whose input changed. The new CMake setting GNUBASE_CLANG_TIDY_CACHE (a folder; empty by default, so local builds don't change) puts tools/clang-tidy-cache.sh in front of clang-tidy in CXX_CLANG_TIDY. The clang-tidy job keeps that folder, .tidy-cache, in its cache entry next to .ccache, with the same restore and save, and before saving deletes the passes its build didn't use, so it doesn't grow. tools/ci-local.sh passes the setting too, with the folder in its build folder. CONTRIBUTING.md mentions it, and tests/tools/clang_tidy_cache_tests.sh tests it.

Why

Measured on run 41506066368 (#533): windows-x64 22 min, of which Build 16 min with sccache at 0 % hits ("Cache not found"); clang-tidy 35 min, of which "Build with clang-tidy" 33 min, since clang-tidy runs on every file on every run, also "Cache not found"; asan-ubsan 20, tsan 13, linux-x64-gcc 9. That is about 99 job-minutes per run, with at most 20 jobs at once. The Actions cache held 17 entries, 10.25 GB, the repository's limit, almost all scoped to a pull request (refs/pull/N/merge, 0.4 to 0.9 GB each), which no other pull request can restore. Main had only linux-x64-gcc and tsan left.

How the clang-tidy cache stays exact

The key of a file is the SHA-256 of

  • the whole command line: clang-tidy, its options, the file and the compile command;
  • clang-tidy --version;
  • clang-tidy --dump-config <file>, the configuration clang-tidy uses for the file, however .clang-tidy files are found or inherited: a change to .clang-tidy that changes the configuration rechecks every file;
  • the file preprocessed with -E -frewrite-includes: the file with the full text of every header it includes, inlined. Comments (NOLINT), macro definitions and inactive #if blocks count, not only the code that plain -E keeps.

Only a pass, exit status 0, is stored, as an empty file named after the key. A finding is never stored, so it fails again on every run. Without a key (the compile command isn't clang's, or preprocessing fails) clang-tidy just runs.

ctcache was the other option. It hashes plain -E output, without comments unless CTCACHE_KEEP_COMMENTS is set, so it misses NOLINT edits and changes to macros alone (readability-identifier-naming checks macro names here); it sorts and deduplicates the arguments, leaves clang-tidy's version out, and would be a new Python dependency. The script is 34 lines and needs nothing new, so docs/third-party.md stays as it is.

Verification

In a clean clone in WSL (Ubuntu 24.04, clang 18, clang-tidy 22.1.8, ccache 4.9, 32 threads), the clang-tidy job's configure and build, each run in a new build folder as on CI, with the ccache and clang-tidy folders kept from the run before, as CI restores them:

RunTimeclang-tidy: reused / checked
Without the cache, as CI ran it (warm ccache)4:08none / 294
Cold: empty caches5:300 / 294
Warm: the same commit again0:12294 / 0
A comment added to src/platform/rt/spscqueue.h, which 19 of the files include (ninja's dependencies)1:11275 / 19
A finding planted in src/platform/rt/workerpool.cppfails with misc-use-internal-linkage and readability-identifier-naming
The same againfails again with the same findings, nothing stored for the file
A comment added to .clang-tidy: the configuration stays the same0:12294 / 0
One more check excluded in .clang-tidy's check list (no new findings)4:230 / 294

All of them hit ccache 100 % except the cold one. A run that checks every file takes 3 to 6 % longer than without the cache (4:15 and 4:23 against 4:08), for the preprocessing. The comment test also shows the difference to ccache: ccache still hit those 19 files, since its preprocessed output has no comments, while clang-tidy checked them again.

In one run, 57 passes the build had used were deleted as unused, and the next run checked those files again: WSL's clock stepped back during the build (journald logs "Time jumped backwards"), so their new modification times were older than the marker. Only this cleanup depends on the clock, never whether a file is checked.

tests/tools/clang_tidy_cache_tests.sh (ctest, label integration) runs the script with stub clang-tidy and compiler scripts: a second run on the same input is reused; a comment in an included header, the configuration dump, the version and the command line each make it check again; a finding fails, isn't stored and fails again; without a key clang-tidy runs every time and its exit status is passed on. It passes in Git Bash and through ctest in WSL, and fails against each of eight broken copies of the script (always reuses, never reuses, stores failures, leaves the version, the configuration, the preprocessed file or the command line out of the key, drops the exit status).

On GitHub (4-core runners), a temporary commit, now reverted, let this pull request save its caches:

  • Run 41528272546 restored main's older caches, built with precompiled headers, and nothing for clang-tidy: windows-x64 27:41 (Build 21:16, sccache 45 % hits with 0 non-cacheable calls and an 800 MiB limit), clang-tidy 40:55 (Build 38:39, every file checked, saved in 4 s), linux-x64-gcc 17:30, asan-ubsan 23:16, tsan 23:32, on runners busy with other pull requests.
  • Run 41536861294 restored the first run's clang-tidy cache. Main had moved on by one commit in between (Play tool: audition only the pressed audio track without the transport, and the scrub mode (#470) #545, which changes rendersnapshot.h, eventdisplay.h and audioengine.h), so about 70 of the 294 files had new input: clang-tidy took 16:17 (Build 14:37) instead of 35. The other jobs restored main's caches from before this change, still built with precompiled headers, and show no gain yet (windows-x64 Build 20:35, linux-x64-gcc 16:07). Their numbers come once main has saved caches with this workflow.

Expected gain

Once main saves with this workflow, a pull request restores the caches of the main commit it merges with, so only what the pull request changes compiles and gets checked again:

  • clang-tidy, 35 min today: the fixed part of the job (checkout, packages, configure: about 1.5 min), compiling with ccache hits, and clang-tidy on the changed files and their includers. A few minutes for most pull requests; about 16 for one that changes headers as central as the second run's.
  • windows-x64, 22 min today with 0 % hits: the changed files and the links, since the 461 files with precompiled headers become cacheable too.
  • linux-x64-gcc, asan-ubsan and tsan: SDL and RmlUi no longer compile on every run.

Main pays a few seconds per job for saving.

The caches that pull requests saved before stay until they are evicted or deleted; this doesn't delete any.

…files whose input changed tools/clang-tidy-cache.sh goes in front of clang-tidy when GNUBASE_CLANG_TIDY_CACHE names a folder. It keys each file on the command line, clang-tidy's version, the configuration clang-tidy dumps for the file, and the file with the full text of everything it includes (clang's -frewrite-includes), so comments such as NOLINT, macro definitions and inactive code count too. Only passes are stored, as empty files: a finding fails every run. Without a key (not clang, or preprocessing fails) clang-tidy runs as before. The ctcache tool was the alternative: it hashes -E output, without comments by default, sorts the arguments and leaves out clang-tidy's version, and it would be a new Python dependency. ci-local's clang-tidy job uses it like CI will, with the cache in its build folder.
…ed headers, clang-tidy reuses its passes Pull requests saved their own compiler caches, which no other pull request can restore: they filled the repository's 10 GB and pushed main's out, so windows-x64 and clang-tidy started with nothing (0 % sccache hits on windows-x64, 16 of its 22 minutes building). Every job now restores with actions/cache/restore, and only pushes to main save, right after the build, so a failing test doesn't lose the cache. Each job caps its cache at about one and a half of its builds, so main's caches take about half of the 10 GB. SDL and RmlUi compile with precompiled headers, which neither ccache nor sccache can cache: 461 of windows-x64's 1053 compiles were non-cacheable for it. CI builds without them, as tools/ci-local.sh already does. clang-tidy ran on every file on every run (33 of the job's 35 minutes). It now goes through tools/clang-tidy-cache.sh with its passes cached next to the compiler cache, and the build keeps only the passes it used.

@GNUbaseGNUbase left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

Verdict: CHANGES REQUESTED

This PR:

  • saves the compiler caches only from main, and caps each one;
  • builds CI without precompiled headers;
  • puts tools/clang-tidy-cache.sh in front of clang-tidy, so a file whose input is unchanged reuses an earlier pass.

The key looks exact to me: it covers the command line, the clang-tidy version, the dumped config and the -frewrite-includes output. Storing only exit status 0 matches what CMake's co-compile step checks. A small CMake project confirmed the argument layout the script expects (--extra-arg-before=--driver-mode=g++ before the file and --).

Blockers:

  1. .github/workflows/ci.yml:125 (also 261 and 316): the temporary commit bf32f92 adds || github.head_ref == 'ci/cache-and-tidy' to the save conditions. That can't land on main. Revert it before merging, as the description plans.
  2. tools/clang-tidy-cache.sh:18-34: the script has no test, but it decides whether CI runs clang-tidy on a file. If it regresses, CI silently skips clang-tidy and findings reach main. CLAUDE.md requires tests, and the other CI gate scripts have shell tests in tests/tools/. Please add tests/tools/clang_tidy_cache_tests.sh with stub clang-tidy and compiler scripts. It should check: an identical second run is reused; a failure stores nothing and fails again; any change to the inputs runs clang-tidy again; without a key, clang-tidy runs and its exit status is passed through.

Follow-up issue for the non-blocking points: #577

Comment thread.github/workflows/ci.yml Outdated

# Before the tests, so that a failing test doesn't lose the build's cache.
- name: Save the compiler cache
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.head_ref == 'ci/cache-and-tidy'

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

Blocker: || github.head_ref == 'ci/cache-and-tidy' comes from the temporary commit bf32f92, here and at lines 261 and 316. It lets this branch's pull request runs save caches, so it can't land on main. Revert bf32f92 before merging, as the description plans.

Comment on lines +18 to +34
key=$(
set -o pipefail
{
printf '%s\0' "$@" && "$1" --version && "$1" --dump-config "$file" &&
"${@:end+1}" -w -E -frewrite-includes -o -
} 2>/dev/null | sha256sum
) && key=$cache/${key%% *} || key=
if [ -n "$key" ] && [ -f "$key" ]; then
touch "$key" # marks it as used, for CI to drop the others
exit 0
fi
"$@"
status=$?
if [ $status -eq 0 ] && [ -n "$key" ]; then
mkdir -p "$cache" && : > "$key"
fi
exit $status

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

Blocker: this script has no test. It decides whether CI runs clang-tidy on a file at all. If the key or the argument parsing regresses (for example, CMake changes the layout of its tidy command, or someone edits the key), CI silently skips clang-tidy, findings land on main, and the check stays green. CLAUDE.md says no feature is done without tests, and the other CI gate scripts have shell tests in tests/tools/ (gnubase_add_shell_test in tests/CMakeLists.txt).

Please add tests/tools/clang_tidy_cache_tests.sh. Stub clang-tidy and compiler scripts would keep it running on every platform. It should check that:

  • an identical second run doesn't call clang-tidy and exits 0;
  • a failing run stores nothing, and the next identical run calls clang-tidy again and fails;
  • each of these makes clang-tidy run again: a comment-only change in an included header, a different --dump-config output, a different --version output, or a different command line;
  • when no key can be computed (preprocessing fails), clang-tidy runs and its exit status is passed through.

@GNUbaseGNUbase left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

Verdict: CHANGES REQUESTED

This is a re-review of 4824adb, which reverts the temporary commit bf32f92. The tree is now identical to e9b9fc3, so the PR has the same content as the one reviewed last time. The ccache and sccache restore/save steps, the caps, CI builds without precompiled headers and the clang-tidy pass cache are all unchanged.

Fixed since the last review:

  • .github/workflows/ci.yml: the github.head_ref == 'ci/cache-and-tidy' save conditions are gone. Caches are saved only on pushes to main again.

Blocker:

  1. tools/clang-tidy-cache.sh:18-34: the script still has no test (still open from the last review). It decides whether CI runs clang-tidy on a file. If it regresses, CI skips clang-tidy without any error and findings reach main. CLAUDE.md requires tests, and the other CI gate scripts have shell tests in tests/tools/. Add tests/tools/clang_tidy_cache_tests.sh with gnubase_add_shell_test and stub clang-tidy and compiler scripts. It should check:
    • an identical second run is reused;
    • a failure stores nothing and fails again on the next run;
    • a change to any input runs clang-tidy again: a header comment, the config dump, the version or the command line;
    • without a key, clang-tidy runs and its exit status is passed through.

Follow-up issue: none new. The non-blocking points from the last review are still tracked in #577.

Comment on lines +18 to +34
key=$(
set -o pipefail
{
printf '%s\0' "$@" && "$1" --version && "$1" --dump-config "$file" &&
"${@:end+1}" -w -E -frewrite-includes -o -
} 2>/dev/null | sha256sum
) && key=$cache/${key%% *} || key=
if [ -n "$key" ] && [ -f "$key" ]; then
touch "$key" # marks it as used, for CI to drop the others
exit 0
fi
"$@"
status=$?
if [ $status -eq 0 ] && [ -n "$key" ]; then
mkdir -p "$cache" && : > "$key"
fi
exit $status

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

Blocker, still open from the last review: this script still has no test. 4824adb only reverts the temporary commit, and tests/tools/ still has only the keyword guard and SPDX tests. The script decides whether CI runs clang-tidy on a file. If its key or argument parsing regresses, CI skips clang-tidy without any error and findings reach main.

Please add tests/tools/clang_tidy_cache_tests.sh, registered with gnubase_add_shell_test in tests/CMakeLists.txt, using stub clang-tidy and compiler scripts. It should check that:

  • an identical second run doesn't call clang-tidy and exits 0;
  • a failing run stores nothing, and the next identical run calls clang-tidy again and fails;
  • each of these makes clang-tidy run again: a comment-only change in an included header, a different --dump-config output, a different --version output, a different command line;
  • when no key can be computed (preprocessing fails), clang-tidy runs and its exit status is passed through.

tests/tools/clang_tidy_cache_tests.sh runs tools/clang-tidy-cache.sh as CMake does, with stubs that log each check: a second run on the same input is reused; a comment in an included header, the configuration, clang-tidy's version and the command line each make it check again; a finding fails, isn't stored and fails again; without a key clang-tidy runs every time and its exit status is passed on.
@GNUbase

Copy link
Copy Markdown
OwnerAuthor

Fixed review round 2: tests/tools/clang_tidy_cache_tests.sh (ctest, stub clang-tidy and compiler) checks reuse, a recheck on each input (header comment, config dump, version, command line), failures never stored and failing again, and pass-through without a key; it fails against eight broken copies of the script, e.g. one that always reuses.

@GNUbaseGNUbase left a comment

Copy link
Copy Markdown
OwnerAuthor

Choose a reason for hiding this comment

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

Verdict: ACCEPTED

This is a re-review of a8a285b. The only new commit adds tests/tools/clang_tidy_cache_tests.sh and registers it with gnubase_add_shell_test (label integration). The workflow, CMake, tools/ci-local.sh and tools/clang-tidy-cache.sh are unchanged since the last review.

Fixed since the last review:

  • tools/clang-tidy-cache.sh now has a test. It runs the wrapper with stub clang-tidy and compiler scripts and checks what was asked for:

    • a second run on identical input is reused;
    • a change to a header comment, the config dump, the version or the command line runs clang-tidy again;
    • a finding fails, stores nothing and fails again;
    • without a key (preprocessing fails), clang-tidy runs every time, nothing is stored, and its exit status (3) is passed through.

    The stub compiler writes the source only for -frewrite-includes, so a wrapper that dropped the flag or the preprocessing step would fail the header test. The second no-key run catches a key computed despite the failed preprocessing.

Blockers: none.

Follow-up issue for the non-blocking points: #578 (test the reuse touch that CI's pruning relies on, and the file passed to --dump-config). The earlier points are still tracked in #577.

@GNUbase
GNUbase enabled auto-merge (squash) November 2, 2026 22:54
@GNUbase
GNUbase merged commit 2372014 into mainNov 2, 2026
9 checks passed
Sign up for freeto 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

@GNUbase