From 637382f364a52d38c78ea4b4edfc1ea26ecf1346 Mon Sep 17 00:00:00 2001 From: SinuS Von SifriduS Date: Tue, 8 Sep 2026 16:52:06 +0200 Subject: [PATCH] v0.3.11-pre.009-fix.002 --- Cargo.toml | 4 +- .../unit_tests/runtime.rs | 3 +- deltas/0.3.11/pre.009-fix.002.md | 97 +++++++++++++++++++ 3 files changed, 101 insertions(+), 3 deletions(-) create mode 100644 deltas/0.3.11/pre.009-fix.002.md diff --git a/Cargo.toml b/Cargo.toml index 152cd95..7f2d756 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ # file: Cargo.toml -# version: 511 +# version: 512 [workspace] resolver = "3" members = ["crates/ksp-app-backfill-desk", "crates/ksp-app-config-desk", "crates/ksp-app-solprices-desk", "crates/ksp-app-store-desk", "crates/ksp-app-wallet-desk", "crates/ksp-config-lib", "crates/ksp-core-lib", "crates/ksp-interface-lib", "crates/ksp-job-api", "crates/ksp-job-backfill-lib", "crates/ksp-logging-lib", "crates/ksp-offchain-transport-lib", "crates/ksp-onchain-transport-lib", "crates/ksp-program-api", "crates/ksp-raw-transaction-lib", "crates/ksp-store-api", "crates/ksp-store-lib", "crates/ksp-store-postgres-lib", "crates/ksp-wallet-lib", "crates/ksp-worker-api", "crates/ksp-worker-raw-transaction-ingest-lib"] [workspace.package] -version = "0.3.11-pre.9.fix.1" +version = "0.3.11-pre.9.fix.2" edition = "2024" license = "MIT" repository = "https://git.sasedev.com/Sasedev/khadhroony-solana-project" diff --git a/crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime.rs b/crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime.rs index e0df1df..e63b957 100644 --- a/crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime.rs +++ b/crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime.rs @@ -1,5 +1,5 @@ // file: crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime.rs -// version: 7 +// version: 8 struct ActiveTaskGuard { active: std::sync::Arc, @@ -681,6 +681,7 @@ async fn pre_009_source_failure_is_counted_and_late_stop_cannot_replace_terminal let handle = match super::start_foundation_with_source_spawner( settings, tokio::runtime::Handle::current(), + std::option::Option::None, move |children: &mut tokio::task::JoinSet>, _stop_receiver, _admission_sender| { let _abort_handle = children.spawn(async move { std::result::Result::Err(crate::runtime_error("test.source_failed")) }); }, diff --git a/deltas/0.3.11/pre.009-fix.002.md b/deltas/0.3.11/pre.009-fix.002.md new file mode 100644 index 0000000..6f438b3 --- /dev/null +++ b/deltas/0.3.11/pre.009-fix.002.md @@ -0,0 +1,97 @@ + + + +# Delta `0.3.11-pre.009-fix.002` — complément de compilation du test source-failure + +## Base requise + +```text +0.3.11-pre.009-fix.001 +workspace.package.version = 0.3.11-pre.9.fix.1 +``` + +## Défaut opérateur constaté + +Le gate opérateur du 8 septembre 2026 confirme que `cargo fmt --all`, les audits Rust/Markdown et `cargo check --workspace` passent, mais que `cargo clippy --workspace --all-targets --all-features -- -D warnings` et `cargo test -p ksp-worker-raw-transaction-ingest-lib` ne peuvent compiler un test de hardening `pre.009`. + +Diagnostic exact : + +```text +unit_tests/runtime.rs : appel de start_foundation_with_source_spawner avec 3 arguments alors que le harness en exige 4 ; store_guard manque +``` + +Le code de production compile ; le défaut est strictement localisé dans le test source-failure. + +## Objectif + +Corriger uniquement l'appel du harness dans ce test, sans modifier le runtime de production, l'admission, la persistence, les snapshots, les terminaux, les compteurs, les dépendances ou les features. + +## Version + +Le correctif touche un fichier Rust de test. Conformément aux règles de version applicables aux corrections code/build : + +```text +identifiant de livraison : 0.3.11-pre.009-fix.002 +workspace.package.version : 0.3.11-pre.9.fix.2 +``` + +## Modification + +Le test `pre_009_source_failure_is_counted_and_late_stop_cannot_replace_terminal_fault` fournit désormais explicitement le troisième argument du harness : + +```text +std::option::Option::None +``` + +Ce test ne possède pas de Store réel et ne teste aucune persistence ; l'absence de `store_guard` est donc explicite et conforme au rôle du harness. + +Aucun fichier Rust de production n'est modifié. + +## Fichiers ajoutés + +```text +deltas/0.3.11/pre.009-fix.002.md +``` + +## Fichiers modifiés + +```text +Cargo.toml +crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime.rs +``` + +## Fichiers supprimés + +Aucun. + +## Validations exécutées dans l'environnement d'assemblage + +```text +python3 scripts/audit_rust_workspace_rules.py +python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates deltas +scan statique : le test source-failure fournit explicitement store_guard = None +scan statique : aucun fichier src/ de production ni manifest de crate Worker modifié +``` + +L'environnement d'assemblage ne fournit ni `cargo`, ni `rustc`, ni `rustfmt`. Aucun gate Cargo du fix n'est déclaré PASS localement. + +## Gate opérateur demandé + +Aucune dépendance ni feature n'étant modifiée, aucun `cargo tree` n'est requis pour ce fix. + +```bash +cargo fmt --all +python3 scripts/audit_rust_workspace_rules.py +python3 scripts/audit_markdown_tables.py README.md RULES.md ROADMAP.md CHANGELOG.md docs prompts crates deltas +cargo check --workspace +cargo clippy --workspace --all-targets --all-features -- -D warnings +cargo test -p ksp-worker-raw-transaction-ingest-lib +``` + +## Décision + +`pre.010` reste bloquée jusqu'à validation opérateur verte de ce fix. Le périmètre fonctionnel de `pre.009` n'est pas redéfini. + +## Questions ouvertes + +Aucune.