v0.3.14-pre.008-fix.002
This commit is contained in:
165
deltas/0.3.14/pre.008-fix.002.md
Normal file
165
deltas/0.3.14/pre.008-fix.002.md
Normal file
@@ -0,0 +1,165 @@
|
||||
<!-- file: deltas/0.3.14/pre.008-fix.002.md -->
|
||||
<!-- version: 1 -->
|
||||
|
||||
# Delta `0.3.14-pre.008-fix.002` — suppression de l'auto-deref explicite du test
|
||||
|
||||
## Base requise
|
||||
|
||||
```text
|
||||
0.3.14-pre.008-fix.001
|
||||
workspace.package.version = 0.3.14-pre.8.fix.1
|
||||
deltas/0.3.14/pre.008-fix.001.md présent
|
||||
```
|
||||
|
||||
## Objectif
|
||||
|
||||
Corriger strictement le dernier échec Clippy observé après `pre.008-fix.001`, sans modifier le code production ni la responsabilité fonctionnelle de `pre.008` :
|
||||
|
||||
```text
|
||||
supprimer clippy::explicit-auto-deref dans le helper de test supervisor_contracts
|
||||
préserver exactement les fixtures et assertions de pre.008
|
||||
ne pas avancer la health policy prévue en pre.009
|
||||
```
|
||||
|
||||
## Défaut observé
|
||||
|
||||
Le gate opérateur de `0.3.14-pre.008-fix.001` a produit :
|
||||
|
||||
```text
|
||||
cargo fmt --all : PASS
|
||||
cargo fmt --all -- --check : PASS
|
||||
audit Rust workspace rules : PASS
|
||||
audit Markdown tables : PASS
|
||||
cargo check --workspace : PASS
|
||||
cargo clippy --workspace --all-targets --all-features -- -D warnings : FAIL
|
||||
cargo test -p ksp-worker-raw-transaction-ingest-lib --all-targets --all-features : PASS, 139 unit tests et toutes les suites d'intégration
|
||||
```
|
||||
|
||||
Clippy signale dans `unit_tests/runtime_resources.rs` :
|
||||
|
||||
```text
|
||||
explicit-auto-deref
|
||||
exact_source_scope(*family, ...)
|
||||
help: use family
|
||||
```
|
||||
|
||||
## Cause
|
||||
|
||||
Dans la boucle sur `source_specs`, `family` est déjà une référence compatible avec le paramètre de `exact_source_scope`. Le déréférencement explicite `*family` est donc redondant et déclenche `clippy::explicit-auto-deref` sous `-D warnings`.
|
||||
|
||||
## Correction
|
||||
|
||||
Le helper de test utilise désormais directement `family` :
|
||||
|
||||
```text
|
||||
exact_source_scope(family, [*fingerprint_byte; 32])
|
||||
```
|
||||
|
||||
Aucun type production, aucune donnée de fixture et aucune décision de continuité ne changent.
|
||||
|
||||
## Fichiers ajoutés
|
||||
|
||||
```text
|
||||
deltas/0.3.14/pre.008-fix.002.md
|
||||
```
|
||||
|
||||
## Fichiers modifiés
|
||||
|
||||
```text
|
||||
Cargo.toml
|
||||
crates/ksp-worker-raw-transaction-ingest-lib/unit_tests/runtime_resources.rs
|
||||
```
|
||||
|
||||
## Fichiers supprimés
|
||||
|
||||
```text
|
||||
aucun
|
||||
```
|
||||
|
||||
## Version Cargo
|
||||
|
||||
Le fix modifie un fichier Rust de test ; conformément à `VER-ID-007` et `VER-ID-010` :
|
||||
|
||||
```text
|
||||
header Cargo.toml : 577 -> 578
|
||||
workspace.package.version : 0.3.14-pre.8.fix.1 -> 0.3.14-pre.8.fix.2
|
||||
```
|
||||
|
||||
Version de fichier :
|
||||
|
||||
```text
|
||||
unit_tests/runtime_resources.rs : 29 -> 30
|
||||
```
|
||||
|
||||
## Frontières préservées
|
||||
|
||||
```text
|
||||
aucun changement du code production
|
||||
aucun changement de TargetCoverage
|
||||
aucun changement de continuity frontier
|
||||
aucun changement de coverage epoch
|
||||
aucun changement de gap ledger
|
||||
aucun changement de source-loss classification
|
||||
aucun respawn Worker
|
||||
aucun nouveau scheduler ou task
|
||||
aucun changement Transport
|
||||
aucune nouvelle requête HTTP
|
||||
aucune nouvelle dépendance ou feature
|
||||
aucun accès Config
|
||||
aucun Job Backfill
|
||||
aucun backend Store physique
|
||||
aucune croissance de surface publique
|
||||
```
|
||||
|
||||
## Validations exécutées
|
||||
|
||||
Dans le sandbox de préparation :
|
||||
|
||||
```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
|
||||
inspection ciblée du helper supervisor_contracts
|
||||
comparaison exacte pre.008-fix.001 -> pre.008-fix.002
|
||||
contrôle du contenu de l'archive delta
|
||||
unzip -t de l'archive delta
|
||||
```
|
||||
|
||||
## Validations non exécutées
|
||||
|
||||
Le sandbox de préparation ne fournit pas le toolchain Cargo/Rust. Les gates suivants restent à exécuter côté opérateur :
|
||||
|
||||
```text
|
||||
cargo fmt --all
|
||||
cargo fmt --all -- --check
|
||||
cargo check --workspace
|
||||
cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
cargo test -p ksp-worker-raw-transaction-ingest-lib --all-targets --all-features
|
||||
```
|
||||
|
||||
## Décisions prises
|
||||
|
||||
```text
|
||||
fix strict de pre.008
|
||||
aucun allow/expect lint
|
||||
aucune modification du code production
|
||||
aucune modification fonctionnelle de la réconciliation
|
||||
pre.009 reste la première tranche autorisée à modifier la health policy multi-source
|
||||
```
|
||||
|
||||
## Questions ouvertes
|
||||
|
||||
```text
|
||||
aucune pour ce fix
|
||||
```
|
||||
|
||||
## Gate opérateur après application
|
||||
|
||||
```bash
|
||||
cargo fmt --all
|
||||
cargo fmt --all -- --check
|
||||
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 --all-targets --all-features
|
||||
```
|
||||
Reference in New Issue
Block a user