diff --git a/logs/coordinator.log b/logs/coordinator.log new file mode 100644 index 0000000..e90f334 Binary files /dev/null and b/logs/coordinator.log differ diff --git a/logs/osiris_runner.log b/logs/osiris_runner.log new file mode 100644 index 0000000..d77649b --- /dev/null +++ b/logs/osiris_runner.log @@ -0,0 +1,1229 @@ +Building Osiris Runner... +warning: skipping duplicate package `sal-vault v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601)`: + /Users/timurgordon/.cargo/git/checkouts/herolib_rust-47b47f3a83ee9ada/9865e60/packages/crypt/vault/_archive/Cargo.toml +in favor of /Users/timurgordon/.cargo/git/checkouts/herolib_rust-47b47f3a83ee9ada/9865e60/packages/crypt/vault/Cargo.toml + + Compiling proc-macro2 v1.0.103 + Compiling quote v1.0.41 + Compiling unicode-ident v1.0.20 + Compiling libc v0.2.177 + Compiling cfg-if v1.0.4 + Compiling serde_core v1.0.228 + Compiling serde v1.0.228 + Compiling memchr v2.7.6 + Compiling version_check v0.9.5 + Compiling itoa v1.0.15 + Compiling portable-atomic v1.11.1 + Compiling pin-project-lite v0.2.16 + Compiling bytes v1.10.1 + Compiling zeroize v1.8.2 + Compiling log v0.4.28 + Compiling scopeguard v1.2.0 + Compiling parking_lot_core v0.9.12 + Compiling lock_api v0.4.14 + Compiling futures-core v0.3.31 + Compiling hashbrown v0.16.0 + Compiling equivalent v1.0.2 + Compiling getrandom v0.3.4 + Compiling core-foundation-sys v0.8.7 + Compiling futures-sink v0.3.31 + Compiling zerocopy v0.8.27 + Compiling ryu v1.0.20 + Compiling autocfg v1.5.0 + Compiling bitflags v2.10.0 + Compiling indexmap v2.12.0 + Compiling slab v0.4.11 + Compiling futures-channel v0.3.31 + Compiling num-traits v0.2.19 + Compiling pin-utils v0.1.0 + Compiling serde_json v1.0.145 + Compiling futures-task v0.3.31 + Compiling futures-io v0.3.31 + Compiling syn v2.0.108 + Compiling typenum v1.19.0 + Compiling percent-encoding v2.3.2 + Compiling once_cell v1.21.3 + Compiling generic-array v0.14.9 + Compiling subtle v2.6.1 + Compiling getrandom v0.2.16 + Compiling socket2 v0.6.1 + Compiling rand_core v0.6.4 + Compiling mio v1.1.0 + Compiling signal-hook-registry v1.4.6 + Compiling tracing-core v0.1.34 + Compiling stable_deref_trait v1.2.1 + Compiling crunchy v0.2.4 + Compiling fnv v1.0.7 + Compiling tiny-keccak v2.0.2 + Compiling base64 v0.22.1 + Compiling find-msvc-tools v0.1.4 + Compiling shlex v1.3.0 + Compiling const-oid v0.9.6 + Compiling cc v1.2.43 + Compiling ahash v0.8.12 + Compiling litemap v0.8.1 + Compiling writeable v0.6.2 + Compiling core-foundation v0.9.4 + Compiling form_urlencoded v1.2.2 + Compiling icu_normalizer_data v2.1.1 + Compiling icu_properties_data v2.1.1 + Compiling const-random-macro v0.1.16 + Compiling aho-corasick v1.1.4 + Compiling const-random v0.1.18 + Compiling tower-service v0.3.3 + Compiling regex-syntax v0.8.8 + Compiling crypto-common v0.1.6 + Compiling block-buffer v0.10.4 + Compiling digest v0.10.7 + Compiling security-framework-sys v2.15.0 + Compiling iana-time-zone v0.1.64 + Compiling httparse v1.10.1 + Compiling http v1.3.1 + Compiling smartstring v1.0.1 + Compiling rust_decimal v1.39.0 + Compiling try-lock v0.2.5 + Compiling spin v0.5.2 + Compiling lazy_static v1.5.0 + Compiling no-std-compat v0.4.1 + Compiling ppv-lite86 v0.2.21 + Compiling rand_chacha v0.3.1 + Compiling want v0.3.1 + Compiling utf8_iter v1.0.4 + Compiling arrayvec v0.7.6 + Compiling static_assertions v1.1.0 + Compiling rand v0.8.5 + Compiling rustix v1.1.2 + Compiling errno v0.3.14 + Compiling thiserror v1.0.69 + Compiling crossbeam-utils v0.8.21 + Compiling fastrand v2.3.0 + Compiling http-body v1.0.1 + Compiling ipnet v2.11.0 + Compiling system-configuration-sys v0.6.0 + Compiling hmac v0.12.1 + Compiling rustls-pki-types v1.13.0 + Compiling native-tls v0.2.14 + Compiling atomic-waker v1.1.2 + Compiling siphasher v1.0.1 + Compiling regex-automata v0.4.13 + Compiling tempfile v3.23.0 + Compiling synstructure v0.13.2 + Compiling security-framework v2.11.1 + Compiling mime v0.3.17 + Compiling system-configuration v0.6.1 + Compiling cpufeatures v0.2.17 + Compiling tower-layer v0.3.3 + Compiling sha2 v0.10.9 + Compiling ucd-trie v0.1.7 + Compiling phf_shared v0.11.3 + Compiling http-body-util v0.1.3 + Compiling pest v2.8.3 + Compiling rand_core v0.9.3 + Compiling tinyvec_macros v0.1.1 + Compiling serde_derive v1.0.228 + Compiling tokio-macros v2.6.0 + Compiling futures-macro v0.3.31 + Compiling tracing-attributes v0.1.30 + Compiling zerofrom-derive v0.1.6 + Compiling yoke-derive v0.8.1 + Compiling futures-util v0.3.31 + Compiling zerovec-derive v0.11.2 + Compiling displaydoc v0.2.5 + Compiling rhai_codegen v2.2.0 + Compiling thiserror-impl v1.0.69 + Compiling zerofrom v0.1.6 + Compiling tracing v0.1.41 + Compiling yoke v0.8.1 + Compiling zerotrie v0.2.3 + Compiling async-trait v0.1.89 + Compiling pest_meta v2.8.3 + Compiling zerovec v0.11.5 + Compiling tinyvec v1.10.0 + Compiling rand_chacha v0.9.0 + Compiling socket2 v0.5.10 + Compiling anyhow v1.0.100 + Compiling tinystr v0.8.2 + Compiling icu_locale_core v2.1.1 + Compiling potential_utf v0.1.4 + Compiling icu_collections v2.1.1 + Compiling regex v1.12.2 + Compiling pest_generator v2.8.3 + Compiling smallvec v1.15.1 + Compiling chrono v0.4.42 + Compiling parking_lot v0.12.5 + Compiling icu_provider v2.1.1 + Compiling tokio v1.48.0 + Compiling icu_properties v2.1.1 + Compiling icu_normalizer v2.1.1 + Compiling thin-vec v0.2.14 + Compiling rhai v1.21.0 + Compiling serde_urlencoded v0.7.1 + Compiling unicode-normalization v0.1.24 + Compiling rand v0.9.2 + Compiling idna_adapter v1.2.1 + Compiling idna v1.1.0 + Compiling phf_generator v0.11.3 + Compiling ring v0.17.14 + Compiling sync_wrapper v1.0.2 + Compiling encoding_rs v0.8.35 + Compiling url v2.5.7 + Compiling unicode-bidi v0.3.18 + Compiling byteorder v1.5.0 + Compiling unicode-properties v0.1.3 + Compiling stringprep v0.1.5 + Compiling phf_codegen v0.11.3 + Compiling parse-zoneinfo v0.3.1 + Compiling pest_derive v2.8.3 + Compiling phf v0.11.3 + Compiling md-5 v0.10.6 + Compiling fallible-iterator v0.2.0 + Compiling sha1_smol v1.0.1 + Compiling postgres-protocol v0.6.9 + Compiling chrono-tz-build v0.3.0 + Compiling uuid v1.18.1 + Compiling crossbeam-epoch v0.9.18 + Compiling phf_shared v0.13.1 + Compiling object v0.32.2 + Compiling bstr v1.12.1 + Compiling base64 v0.21.7 + Compiling thiserror v2.0.17 + Compiling same-file v1.0.6 + Compiling iri-string v0.7.8 + Compiling heck v0.5.0 + Compiling libm v0.2.15 + Compiling unic-char-range v0.9.0 + Compiling unic-common v0.9.0 + Compiling untrusted v0.9.0 + Compiling unic-ucd-version v0.9.0 + Compiling unic-char-property v0.9.0 + Compiling walkdir v2.5.0 + Compiling globset v0.4.18 + Compiling phf v0.13.1 + Compiling tokio-util v0.7.16 + Compiling tokio-native-tls v0.3.1 + Compiling crossbeam-deque v0.8.6 + Compiling h2 v0.4.12 + Compiling tower v0.5.2 + Compiling combine v4.6.7 + Compiling tower-http v0.6.6 + Compiling postgres-types v0.2.11 + Compiling chrono-tz v0.9.0 + Compiling ar_archive_writer v0.2.0 + Compiling futures-executor v0.3.31 + Compiling thiserror-impl v2.0.17 + Compiling der v0.7.10 + Compiling http v0.2.12 + Compiling allocator-api2 v0.2.21 + Compiling cfg_aliases v0.2.1 + Compiling crc32fast v1.5.0 + Compiling rustls v0.23.34 + Compiling utf8parse v0.2.2 + Compiling whoami v1.6.1 + Compiling tokio-postgres v0.7.15 + Compiling anstyle-parse v0.2.7 + Compiling hashbrown v0.14.5 + Compiling nix v0.30.1 + Compiling rustls-webpki v0.103.8 + Compiling psm v0.1.28 + Compiling futures v0.3.31 + Compiling hyper v1.7.0 + Compiling ignore v0.4.24 + Compiling unic-ucd-segment v0.9.0 + Compiling scheduled-thread-pool v0.2.7 + Compiling hyper-util v0.1.17 + Compiling pin-project-internal v1.1.10 + Compiling serde_derive_internals v0.29.1 + Compiling ordered-float v2.10.1 + Compiling core-foundation v0.10.1 + Compiling is-terminal v0.4.17 + Compiling nom v8.0.0 + Compiling rustversion v1.0.22 + Compiling is_terminal_polyfill v1.70.2 + Compiling hyper-tls v0.6.0 + Compiling k8s-openapi v0.23.0 + Compiling reqwest v0.12.24 + Compiling colorchoice v1.0.4 + Compiling virtue v0.0.18 + Compiling strsim v0.11.1 + Compiling anstyle-query v1.1.4 + Compiling httpdate v1.0.3 + Compiling anstyle v1.0.13 + Compiling deunicode v1.6.2 + Compiling system-configuration-sys v0.5.0 + Compiling ident_case v1.0.1 + Compiling schemars v0.8.22 + Compiling darling_core v0.20.11 + Compiling slug v0.1.6 + Compiling anstream v0.6.21 + Compiling bincode_derive v2.0.1 + Compiling security-framework v3.5.1 + Compiling schemars_derive v0.8.22 + Compiling serde-value v0.7.0 + Compiling pin-project v1.1.10 + Compiling humansize v2.1.3 + Compiling r2d2 v0.8.10 + Compiling globwalk v0.9.1 + Compiling unic-segment v0.9.0 + Compiling postgres v0.19.12 + Compiling h2 v0.3.27 + Compiling http-body v0.4.6 + Compiling spki v0.7.3 + Compiling secp256k1-sys v0.9.2 + Compiling stacker v0.1.22 + Compiling ff v0.13.1 + Compiling time-core v0.1.6 + Compiling base16ct v0.2.0 + Compiling unty v0.0.4 + Compiling num-conv v0.1.0 + Compiling clap_lex v0.7.6 + Compiling dyn-clone v1.0.20 + Compiling option-ext v0.2.0 + Compiling powerfmt v0.2.0 + Compiling deranged v0.5.5 + Compiling dirs-sys v0.5.0 + Compiling clap_builder v4.5.51 + Compiling time-macros v0.2.24 + Compiling bincode v2.0.1 + Compiling tera v1.20.0 + Compiling sec1 v0.7.3 + Compiling darling_macro v0.20.11 + Compiling group v0.13.0 + Compiling r2d2_postgres v0.18.2 + Compiling pkcs8 v0.10.2 + Compiling tokio-rustls v0.26.4 + Compiling hyper v0.14.32 + Compiling ourdb v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling rustls-native-certs v0.8.2 + Compiling clap_derive v4.5.49 + Compiling tracing-serde v0.2.0 + Compiling matchers v0.2.0 + Compiling hkdf v0.12.4 + Compiling sharded-slab v0.1.7 + Compiling inout v0.1.4 + Compiling crypto-bigint v0.5.5 + Compiling tracing-log v0.2.0 + Compiling ordered-float v5.1.0 + Compiling num-integer v0.1.46 + Compiling dirs-sys-next v0.1.2 + Compiling thread_local v1.1.9 + Compiling nu-ansi-term v0.50.3 + Compiling syn v1.0.109 + Compiling termcolor v1.4.1 + Compiling ethnum v1.5.2 + Compiling humantime v2.3.0 + Compiling fast-float2 v0.2.3 + Compiling unsafe-libyaml v0.2.11 + Compiling jiff v0.2.15 + Compiling bitflags v1.3.2 + Compiling system-configuration v0.5.1 + Compiling time v0.3.44 + Compiling serde_yaml v0.9.34+deprecated + Compiling env_logger v0.10.2 + Compiling elliptic-curve v0.13.8 + Compiling tracing-subscriber v0.3.20 + Compiling num-bigint v0.4.6 + Compiling dirs-next v2.0.0 + Compiling sal-text v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling rhailib-macros v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling jsonb v0.5.4 + Compiling cipher v0.4.4 + Compiling kube-core v0.95.0 + Compiling clap v4.5.51 + Compiling hyper-tls v0.5.0 + Compiling strum_macros v0.26.4 + Compiling hyper-rustls v0.27.7 + Compiling tst v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling darling v0.20.11 + Compiling dirs v6.0.0 + Compiling tower v0.4.13 + Compiling hyper-timeout v0.5.2 + Compiling redis v0.25.4 + Compiling tower-http v0.5.2 + Compiling rustls-pemfile v1.0.4 + Compiling jsonpath-rust v0.5.1 + Compiling heromodels_core v0.1.0 (https://git.ourworld.tf/herocode/db.git#53e9a2d4) + Compiling toml_datetime v0.6.11 + Compiling secrecy v0.8.0 + Compiling serde_spanned v0.6.9 + Compiling async-stream-impl v0.3.6 + Compiling heromodels-derive v0.1.0 (https://git.ourworld.tf/herocode/db.git#53e9a2d4) + Compiling rustls-pemfile v2.2.0 + Compiling rfc6979 v0.4.0 + Compiling signature v2.2.0 + Compiling universal-hash v0.5.1 + Compiling pem v3.0.6 + Compiling csv-core v0.1.13 + Compiling home v0.5.12 + Compiling opaque-debug v0.3.1 + Compiling glob v0.3.3 + Compiling winnow v0.7.13 + Compiling sync_wrapper v0.1.2 + Compiling either v1.15.0 + Compiling toml_write v0.1.2 + Compiling strum v0.26.3 + Compiling heromodels v0.1.0 (https://git.ourworld.tf/herocode/db.git#53e9a2d4) + Compiling kube-client v0.95.0 + Compiling reqwest v0.11.27 + Compiling toml_edit v0.22.27 + Compiling sal-os v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling poly1305 v0.8.0 + Compiling csv v1.4.0 + Compiling ecdsa v0.16.9 + Compiling async-stream v0.3.6 + Compiling kube-derive v0.95.0 + Compiling chumsky v0.9.3 + Compiling chacha20 v0.9.1 + Compiling redis v0.31.0 + Compiling sal-process v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling term v0.7.0 + Compiling secp256k1 v0.28.2 + Compiling dashmap v5.5.3 + Compiling quanta v0.12.6 + Compiling crossbeam-channel v0.5.15 + Compiling colored v2.2.0 + Compiling aead v0.5.2 + Compiling email-encoding v0.4.1 + Compiling socket2 v0.4.10 + Compiling hostname v0.4.1 + Compiling spinning_top v0.3.0 + Compiling email_address v0.2.9 + Compiling encode_unicode v1.0.0 + Compiling hex v0.4.3 + Compiling unicode-width v0.1.14 + Compiling quoted_printable v0.5.1 + Compiling futures-timer v3.0.3 + Compiling nonzero_ext v0.3.0 + Compiling governor v0.6.3 + Compiling lettre v0.11.19 + Compiling prettytable v0.10.0 + Compiling derive v0.1.0 (https://git.ourworld.tf/herocode/rhailib.git#02d9f593) + Compiling hero-job v0.1.0 (/Users/timurgordon/code/git.ourworld.tf/herocode/job/rust) + Compiling redis v0.24.0 + Compiling chacha20poly1305 v0.10.1 + Compiling tracing-appender v0.2.3 + Compiling rhai_dispatcher v0.1.0 (https://git.ourworld.tf/herocode/rhailib.git#02d9f593) + Compiling macros v0.1.0 (https://git.ourworld.tf/herocode/rhailib.git#02d9f593) + Compiling sal-virt v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling kube v0.95.0 + Compiling zinit-client v0.4.0 + Compiling k256 v0.13.4 + Compiling toml v0.8.23 + Compiling tokio-retry v0.3.0 + Compiling osiris_derive v0.1.0 (/Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/osiris_derive) + Compiling pbkdf2 v0.12.2 + Compiling urlencoding v2.1.3 + Compiling dotenv v0.15.0 + Compiling rhailib_dsl v0.1.0 (https://git.ourworld.tf/herocode/rhailib.git#02d9f593) + Compiling sal-mycelium v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling osiris-core v0.1.0 (/Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core) + Compiling sal-vault v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/dnsrecord.rs:1:30 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + | + = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/group.rs:1:30 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/membership.rs:1:30 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:1:30 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/secretbox.rs:1:30 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/signature.rs:1:30 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user.rs:1:30 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user_kvs.rs:2:30 + | +2 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused imports: `CustomType` and `TypeBuilder` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/grid4/bid.rs:2:12 + | +2 | use rhai::{CustomType, TypeBuilder}; + | ^^^^^^^^^^ ^^^^^^^^^^^ + +warning: unused imports: `CustomType` and `TypeBuilder` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/grid4/common.rs:1:12 + | +1 | use rhai::{CustomType, TypeBuilder}; + | ^^^^^^^^^^ ^^^^^^^^^^^ + +warning: unused imports: `CustomType` and `TypeBuilder` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/grid4/contract.rs:2:12 + | +2 | use rhai::{CustomType, TypeBuilder}; + | ^^^^^^^^^^ ^^^^^^^^^^^ + +warning: unused imports: `CustomType` and `TypeBuilder` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/grid4/node.rs:2:12 + | +2 | use rhai::{CustomType, TypeBuilder}; + | ^^^^^^^^^^ ^^^^^^^^^^^ + +warning: unused imports: `PricingPolicy` and `SLAPolicy` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/grid4/node.rs:4:21 + | +4 | use super::common::{PricingPolicy, SLAPolicy}; + | ^^^^^^^^^^^^^ ^^^^^^^^^ + +warning: unused imports: `CustomType` and `TypeBuilder` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/grid4/nodegroup.rs:2:12 + | +2 | use rhai::{CustomType, TypeBuilder}; + | ^^^^^^^^^^ ^^^^^^^^^^^ + +warning: unused imports: `CustomType` and `TypeBuilder` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/grid4/reputation.rs:2:12 + | +2 | use rhai::{CustomType, TypeBuilder}; + | ^^^^^^^^^^ ^^^^^^^^^^^ + +warning: unused imports: `CustomType` and `TypeBuilder` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/grid4/reservation.rs:2:12 + | +2 | use rhai::{CustomType, TypeBuilder}; + | ^^^^^^^^^^ ^^^^^^^^^^^ + +warning: unused import: `Storable` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/kyc/info.rs:6:38 + | +6 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^^^ + +warning: unused import: `Storable` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/kyc/session.rs:6:38 + | +6 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^^^ + +warning: unused import: `Engine` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/kyc/rhai.rs:4:35 + | +4 | use ::rhai::{CustomType, Dynamic, Engine, EvalAltResult, Module, TypeBuilder}; + | ^^^^^^ + +warning: unused import: `VerificationStatus` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/kyc/rhai.rs:6:28 + | +6 | use super::info::{KycInfo, VerificationStatus}; + | ^^^^^^^^^^^^^^^^^^ + +warning: unused import: `SessionStatus` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/kyc/rhai.rs:7:34 + | +7 | use super::session::{KycSession, SessionStatus}; + | ^^^^^^^^^^^^^ + +warning: unused import: `Storable` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/flow/template.rs:5:38 + | +5 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^^^ + +warning: unused import: `Storable` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/flow/instance.rs:5:38 + | +5 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^^^ + +warning: unused import: `Engine` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/flow/rhai.rs:4:35 + | +4 | use ::rhai::{CustomType, Dynamic, Engine, EvalAltResult, Module, TypeBuilder}; + | ^^^^^^ + +warning: unused import: `FlowStep` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/flow/rhai.rs:6:37 + | +6 | use super::template::{FlowTemplate, FlowStep}; + | ^^^^^^^^ + +warning: unused imports: `FlowStatus` and `StepStatus` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/flow/rhai.rs:7:37 + | +7 | use super::instance::{FlowInstance, FlowStatus, StepStatus}; + | ^^^^^^^^^^ ^^^^^^^^^^ + +warning: unused import: `Storable` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/communication/verification.rs:5:38 + | +5 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^^^ + +warning: unused import: `Storable` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/communication/email.rs:7:38 + | +7 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^^^ + +warning: unused import: `Engine` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/communication/rhai.rs:4:35 + | +4 | use ::rhai::{CustomType, Dynamic, Engine, EvalAltResult, Module, TypeBuilder}; + | ^^^^^^ + +warning: unused imports: `VerificationStatus` and `VerificationTransport` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/communication/rhai.rs:6:41 + | +6 | use super::verification::{Verification, VerificationStatus, VerificationTransport}; + | ^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `MailTemplate` and `Mail` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/communication/rhai.rs:244:44 + | +244 | use super::super::email::{EmailClient, Mail, MailTemplate}; + | ^^^^ ^^^^^^^^^^^^ + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:1:30 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused import: `Engine` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/rhai.rs:4:35 + | +4 | use ::rhai::{CustomType, Dynamic, Engine, EvalAltResult, Module, TypeBuilder}; + | ^^^^^^ + +warning: unused imports: `PaymentResponse` and `PaymentStatus` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/rhai.rs:308:65 + | +308 | use super::super::payments::{PaymentClient, PaymentRequest, PaymentResponse, PaymentStatus}; + | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ + +warning: unused import: `IndexKey` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/payments.rs:7:30 + | +7 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^^^ + +warning: unused imports: `Engine` and `EvalAltResult` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/legal/rhai.rs:4:35 + | +4 | use ::rhai::{CustomType, Dynamic, Engine, EvalAltResult, Module, TypeBuilder}; + | ^^^^^^ ^^^^^^^^^^^^^ + +warning: unused import: `RhaiContractStatus` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/legal/rhai.rs:28:31 + | +28 | use super::{RhaiContract, RhaiContractStatus}; + | ^^^^^^^^^^^^^^^^^^ + +warning: unused import: `ContractStatus` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/legal/rhai.rs:29:34 + | +29 | use super::super::{Contract, ContractStatus}; + | ^^^^^^^^^^^^^^ + + Compiling sal-kubernetes v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling sal-zinit-client v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) +warning: this function depends on never type fallback being `()` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:21:5 + | +21 | pub async fn get_connection(&self) -> Result { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! + = note: for more information, see + = help: specify the types explicitly +note: in edition 2024, the requirement `!: FromRedisValue` will fail + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:28:18 + | +28 | .query_async(&mut conn) + | ^^^^^^^^^^^ + = note: `#[warn(dependency_on_unit_never_type_fallback)]` (part of `#[warn(rust_2024_compatibility)]`) on by default +help: use `()` annotations to avoid fallback changes + | +28 | .query_async::<_, ()>(&mut conn) + | +++++++++ + +warning: this function depends on never type fallback being `()` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:36:5 + | +36 | pub async fn put_object(&self, obj: &OsirisObject) -> Result<()> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! + = note: for more information, see + = help: specify the types explicitly +note: in edition 2024, the requirement `!: FromRedisValue` will fail + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:41:14 + | +41 | conn.set(&key, value).await?; + | ^^^ +help: use `()` annotations to avoid fallback changes + | +41 | conn.set::<_, _, ()>(&key, value).await?; + | ++++++++++++ + +warning: this function depends on never type fallback being `()` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:79:5 + | +79 | pub async fn sadd(&self, set_key: &str, member: &str) -> Result<()> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! + = note: for more information, see + = help: specify the types explicitly +note: in edition 2024, the requirement `!: FromRedisValue` will fail + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:81:14 + | +81 | conn.sadd(set_key, member).await?; + | ^^^^ +help: use `()` annotations to avoid fallback changes + | +81 | conn.sadd::<_, _, ()>(set_key, member).await?; + | ++++++++++++ + +warning: this function depends on never type fallback being `()` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:86:5 + | +86 | pub async fn srem(&self, set_key: &str, member: &str) -> Result<()> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! + = note: for more information, see + = help: specify the types explicitly +note: in edition 2024, the requirement `!: FromRedisValue` will fail + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:88:14 + | +88 | conn.srem(set_key, member).await?; + | ^^^^ +help: use `()` annotations to avoid fallback changes + | +88 | conn.srem::<_, _, ()>(set_key, member).await?; + | ++++++++++++ + +warning: this function depends on never type fallback being `()` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:114:5 + | +114 | pub async fn set(&self, key: &str, value: &str) -> Result<()> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + | + = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in Rust 2024 and in a future release in all editions! + = note: for more information, see + = help: specify the types explicitly +note: in edition 2024, the requirement `!: FromRedisValue` will fail + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/herodb_client.rs:116:14 + | +116 | conn.set(key, value).await?; + | ^^^ +help: use `()` annotations to avoid fallback changes + | +116 | conn.set::<_, _, ()>(key, value).await?; + | ++++++++++++ + + Compiling sal-postgresclient v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/dnsrecord.rs:1:40 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/group.rs:1:40 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/membership.rs:1:40 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:1:40 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/secretbox.rs:1:40 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/signature.rs:1:40 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user.rs:1:40 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user_kvs.rs:2:40 + | +2 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/kyc/info.rs:6:30 + | +6 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/kyc/session.rs:6:30 + | +6 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/flow/template.rs:5:30 + | +5 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/flow/instance.rs:5:30 + | +5 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/communication/verification.rs:5:30 + | +5 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/communication/email.rs:7:30 + | +7 | use crate::store::{BaseData, Object, Storable}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:1:40 + | +1 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/payments.rs:7:40 + | +7 | use crate::store::{BaseData, IndexKey, Object}; + | ^^^^^^ + +warning: unused import: `Object` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/legal/contract.rs:5:30 + | +5 | use crate::store::{BaseData, Object}; + | ^^^^^^ + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/dnsrecord.rs:234:16 + | +234 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + | + = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/dnsrecord.rs:235:13 + | +235 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/group.rs:96:16 + | +96 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/group.rs:97:13 + | +97 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/group.rs:196:16 + | +196 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/group.rs:197:13 + | +197 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/membership.rs:51:16 + | +51 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/membership.rs:52:13 + | +52 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:148:16 + | +148 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:149:13 + | +149 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:243:16 + | +243 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:244:13 + | +244 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:351:16 + | +351 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:352:13 + | +352 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:411:16 + | +411 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/money.rs:412:13 + | +412 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/secretbox.rs:98:16 + | +98 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/secretbox.rs:99:13 + | +99 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/signature.rs:55:16 + | +55 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/signature.rs:56:13 + | +56 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user.rs:289:16 + | +289 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user.rs:290:13 + | +290 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user_kvs.rs:17:16 + | +17 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user_kvs.rs:18:13 + | +18 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user_kvs.rs:59:16 + | +59 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/heroledger/user_kvs.rs:60:13 + | +60 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:148:16 + | +148 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:149:13 + | +149 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:243:16 + | +243 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:244:13 + | +244 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:351:16 + | +351 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:352:13 + | +352 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: unused variable: `id` + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:411:16 + | +411 | pub fn new(id: u32) -> Self { + | ^^ help: if this is intentional, prefix it with an underscore: `_id` + +warning: variable does not need to be mutable + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/models.rs:412:13 + | +412 | let mut base_data = BaseData::new(); + | ----^^^^^^^^^ + | | + | help: remove this `mut` + +warning: fields `expiry_date`, `status`, and `message` are never read + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/payments.rs:142:5 + | +139 | struct PesapalAuthResponse { + | ------------------- fields in this struct +... +142 | expiry_date: Option, + | ^^^^^^^^^^^ +143 | error: Option, +144 | status: Option, + | ^^^^^^ +145 | message: Option, + | ^^^^^^^ + | + = note: `PesapalAuthResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis + = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default + +warning: multiple fields are never read + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/money/payments.rs:181:5 + | +178 | struct PesapalTransactionStatusResponse { + | -------------------------------- fields in this struct +... +181 | created_date: String, + | ^^^^^^^^^^^^ +... +184 | description: String, + | ^^^^^^^^^^^ +185 | message: String, + | ^^^^^^^ +186 | payment_account: Option, + | ^^^^^^^^^^^^^^^ +187 | call_back_url: String, + | ^^^^^^^^^^^^^ +188 | status_code: i32, + | ^^^^^^^^^^^ +189 | merchant_reference: String, +190 | payment_status_code: String, + | ^^^^^^^^^^^^^^^^^^^ +... +193 | status: String, + | ^^^^^^ + | + = note: `PesapalTransactionStatusResponse` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis + +warning: type alias `RhaiContractStatus` is never used + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/objects/legal/rhai.rs:24:6 + | +24 | type RhaiContractStatus = ContractStatus; + | ^^^^^^^^^^^^^^^^^^ + +warning: field `index` is never read + --> /Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core/src/store/generic_store.rs:9:5 + | +7 | pub struct GenericStore { + | ------------ field in this struct +8 | client: HeroDbClient, +9 | index: FieldIndex, + | ^^^^^ + | + = note: `GenericStore` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis + + Compiling hero_logger v0.1.0 (https://git.ourworld.tf/herocode/baobab.git?branch=logger#d7a7eae1) + Compiling sal-git v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling sal-redisclient v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling hero-job-client v0.1.0 (/Users/timurgordon/code/git.ourworld.tf/herocode/job/rust/client) + Compiling sal-hetzner v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling sal-net v0.1.0 (https://git.ourworld.tf/herocode/herolib_rust.git#9865e601) + Compiling runner_rust v0.1.0 (/Users/timurgordon/code/git.ourworld.tf/herocode/runner_rust) +warning: unused import: `packages::Package` + --> src/async_runner.rs:3:20 + | +3 | use rhai::{Engine, packages::Package}; + | ^^^^^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default + +warning: fields `job_id` and `handle` are never read + --> src/async_runner.rs:14:5 + | +13 | struct RunningJob { + | ---------- fields in this struct +14 | job_id: String, + | ^^^^^^ +15 | handle: JoinHandle>>, + | ^^^^^^ + | + = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default + +warning: methods `add_running_job`, `remove_running_job`, and `cleanup_finished_jobs` are never used + --> src/async_runner.rs:91:14 + | + 84 | impl AsyncRunner { + | ---------------- methods in this implementation +... + 91 | async fn add_running_job(&self, job_id: String, handle: JoinHandle>>) { + | ^^^^^^^^^^^^^^^ +... +105 | async fn remove_running_job(&self, job_id: &str) { + | ^^^^^^^^^^^^^^^^^^ +... +121 | async fn cleanup_finished_jobs(&self) { + | ^^^^^^^^^^^^^^^^^^^^^ + +warning: `runner_rust` (lib) generated 3 warnings (run `cargo fix --lib -p runner_rust` to apply 1 suggestion) +warning: `osiris-core` (lib) generated 98 warnings (run `cargo fix --lib -p osiris-core` to apply 60 suggestions) +warning: unused variable: `redis_url` + --> src/bin/runner_osiris.rs:37:13 + | +37 | let redis_url = args.redis_url.clone(); + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_redis_url` + | + = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default + +warning: unused variable: `base_db_id` + --> src/bin/runner_osiris.rs:38:13 + | +38 | let base_db_id = args.base_db_id; + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_db_id` + +warning: unused variable: `redis_url` + --> src/bin/runner_osiris.rs:75:9 + | +75 | let redis_url = args.redis_url.clone(); + | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_redis_url` + +warning: unused variable: `base_db_id` + --> src/bin/runner_osiris.rs:76:9 + | +76 | let base_db_id = args.base_db_id; + | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_db_id` + +warning: `runner_rust` (bin "runner_osiris") generated 4 warnings + Finished `release` profile [optimized] target(s) in 2m 21s +warning: the following packages contain code that will be rejected by a future version of Rust: osiris-core v0.1.0 (/Users/timurgordon/code/git.ourworld.tf/herocode/osiris/core), redis v0.24.0, redis v0.25.4 +note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 12` +✅ Osiris Runner built successfully diff --git a/logs/supervisor.log b/logs/supervisor.log new file mode 100644 index 0000000..4daeea2 --- /dev/null +++ b/logs/supervisor.log @@ -0,0 +1,126 @@ +Building Hero Supervisor... + Compiling hero-supervisor v0.1.0 (/Users/timurgordon/code/git.ourworld.tf/herocode/supervisor) +warning: unused imports: `ClientBuilder` and `Client` + --> src/job.rs:3:23 + | +3 | use hero_job_client::{Client, ClientBuilder}; + | ^^^^^^ ^^^^^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default + +warning: unused doc comment + --> src/openrpc.rs:252:1 + | +252 | /// Thread-local storage for the current request's API key + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ rustdoc does not generate documentation for macro invocations + | + = help: to document an item produced by a macro, the macro must produce the documentation as part of its expansion + = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default + +warning: unused import: `crate::runner::Runner` + --> src/services.rs:9:5 + | +9 | use crate::runner::Runner; + | ^^^^^^^^^^^^^^^^^^^^^ + +warning: unused imports: `ClientBuilder` and `Client` + --> src/lib.rs:21:23 + | +21 | use hero_job_client::{Client, ClientBuilder}; + | ^^^^^^ ^^^^^^^^^^^^^ + +warning: variable does not need to be mutable + --> src/supervisor.rs:481:17 + | +481 | let mut pm = self.process_manager.lock().await; + | ----^^ + | | + | help: remove this `mut` + | + = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default + +warning: unused variable: `force` + --> src/supervisor.rs:494:57 + | +494 | pub async fn stop_runner(&mut self, actor_id: &str, force: bool) -> RunnerResult<()> { + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_force` + | + = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default + +warning: variable does not need to be mutable + --> src/supervisor.rs:500:17 + | +500 | let mut pm = self.process_manager.lock().await; + | ----^^ + | | + | help: remove this `mut` + +warning: unused variable: `lines` + --> src/supervisor.rs:529:9 + | +529 | lines: Option, + | ^^^^^ help: if this is intentional, prefix it with an underscore: `_lines` + +warning: unused variable: `follow` + --> src/supervisor.rs:530:9 + | +530 | follow: bool, + | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_follow` + +warning: field `session_name` is never read + --> src/supervisor.rs:43:5 + | +42 | struct TmuxProcessManager { + | ------------------ field in this struct +43 | session_name: String, + | ^^^^^^^^^^^^ + | + = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default + +warning: function `invalid_params_error` is never used + --> src/openrpc.rs:63:4 + | +63 | fn invalid_params_error(msg: &str) -> ErrorObject<'static> { + | ^^^^^^^^^^^^^^^^^^^^ + +warning: function `parse_process_manager_type` is never used + --> src/openrpc.rs:483:4 + | +483 | fn parse_process_manager_type(pm_type: &str, session_name: Option) -> Result> { + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ + +warning: `hero-supervisor` (lib) generated 12 warnings (run `cargo fix --lib -p hero-supervisor` to apply 5 suggestions) + Finished `release` profile [optimized] target(s) in 25.90s +warning: the following packages contain code that will be rejected by a future version of Rust: redis v0.25.4 +note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 2` +✅ Hero Supervisor built successfully +Starting Hero Supervisor... +[2025-11-04T15:43:17Z INFO supervisor] Starting Hero Supervisor +[2025-11-04T15:43:17Z INFO supervisor] Using CLI configuration +[2025-11-04T15:43:17Z INFO supervisor] Bootstrapping admin API key: admin + +╔════════════════════════════════════════════════════════════╗ +║ 🔑 Admin API Key Created ║ +╚════════════════════════════════════════════════════════════╝ + Name: admin + Key: 803d2cc3-efae-400c-a183-997ad35cbd85 + Scope: admin + ⚠️ SAVE THIS KEY - IT WILL NOT BE SHOWN AGAIN! +╚════════════════════════════════════════════════════════════╝ + + +╔════════════════════════════════════════════════════════════╗ +║ Hero Supervisor Started ║ +╚════════════════════════════════════════════════════════════╝ + 📡 OpenRPC Server: http://127.0.0.1:3030 + 🔗 Redis: redis://localhost:6379 + 🌐 Mycelium: Not compiled (use --features mycelium) +╚════════════════════════════════════════════════════════════╝ + +[2025-11-04T15:43:17Z INFO supervisor] Starting OpenRPC server on 127.0.0.1:3030 +[2025-11-04T15:43:17Z ERROR supervisor] OpenRPC server error: Address already in use (os error 48) +[2025-11-04T15:43:17Z INFO hero_supervisor::app] Starting Hero Supervisor Application +[2025-11-04T15:43:17Z INFO hero_supervisor::app] Starting all runners +[2025-11-04T15:43:17Z INFO hero_supervisor::app] All runners started successfully +[2025-11-04T15:43:17Z INFO hero_supervisor::app] Mycelium integration not enabled (compile with --features mycelium) +[2025-11-04T15:43:17Z INFO hero_supervisor::app] Supervisor is running. Press Ctrl+C to shutdown. diff --git a/pids/osiris_runner.pid b/pids/osiris_runner.pid new file mode 100644 index 0000000..8524629 --- /dev/null +++ b/pids/osiris_runner.pid @@ -0,0 +1 @@ +73798 diff --git a/pids/supervisor.pid b/pids/supervisor.pid new file mode 100644 index 0000000..c69aca1 --- /dev/null +++ b/pids/supervisor.pid @@ -0,0 +1 @@ +73768 diff --git a/scripts/README.md b/scripts/README.md new file mode 100644 index 0000000..0758107 --- /dev/null +++ b/scripts/README.md @@ -0,0 +1,181 @@ +# Hero System Scripts + +This directory contains wrapper scripts for building and running the Hero system components. + +## Overview + +The Hero system consists of three main components: +- **Hero Coordinator**: Manages job coordination and routing +- **Hero Supervisor**: Manages runner processes and job execution +- **Osiris Runner**: Executes jobs using the Osiris protocol + +## Architecture + +The scripts in this directory are **wrappers** that delegate to individual component scripts: + +- `home/scripts/build.sh` → calls `build.sh` in each component repo +- `home/scripts/run.sh` → calls `run.sh` in each component repo +- Each component's `run.sh` → calls its own `build.sh` before running + +This ensures each component is self-contained and can be built/run independently. + +## Scripts + +### build.sh + +Wrapper that builds all Hero system components by calling their individual build scripts. + +**Usage:** +```bash +./build.sh +``` + +This calls: +- `herocoordinator/scripts/build.sh` +- `supervisor/scripts/build.sh` +- `runner_rust/scripts/build.sh` + +### run.sh + +Manages Hero system services. + +**Usage:** +```bash +./run.sh [command] +``` + +**Commands:** +- `start` - Start all services (default) - each service builds itself first +- `stop` - Stop all services +- `restart` - Restart all services +- `status` - Show status of all services +- `logs` - Tail all service logs + +**Examples:** +```bash +./run.sh start # Start all services (builds automatically) +./run.sh status # Check status +./run.sh logs # View logs +./run.sh stop # Stop all services +./run.sh restart # Restart all services +``` + +**Note:** Each component's `run.sh` automatically calls its `build.sh` before starting, so you don't need to build manually. + +## Components + +### Coordinator +- **Binary:** `herocoordinator/target/release/herocoordinator` +- **Port:** 8081 (configurable via `COORDINATOR_PORT`) +- **Purpose:** Coordinates job execution across the system + +### Supervisor +- **Binary:** `supervisor/target/release/supervisor` +- **Port:** 3030 (configurable via `SUPERVISOR_PORT`) +- **Purpose:** Manages runners and job dispatch via OpenRPC + +### Osiris Runner +- **Binary:** `runner_rust/target/release/runner_osiris` +- **Purpose:** Executes Osiris-specific jobs + +## Configuration + +Set environment variables before running: + +```bash +# Redis connection +export REDIS_URL="redis://127.0.0.1:6379" + +# Service ports +export COORDINATOR_PORT=8081 +export SUPERVISOR_PORT=3030 + +# Logging +export LOG_LEVEL=info # Options: trace, debug, info, warn, error +``` + +## Logs and PIDs + +- **Logs:** `/Users/timurgordon/code/git.ourworld.tf/herocode/home/logs/` + - `coordinator.log` + - `supervisor.log` + - `osiris_runner.log` + +- **PIDs:** `/Users/timurgordon/code/git.ourworld.tf/herocode/home/pids/` + - `coordinator.pid` + - `supervisor.pid` + - `osiris_runner.pid` + +## Prerequisites + +1. **Redis** must be running: + ```bash + redis-server + ``` + +2. **Rust toolchain** must be installed: + ```bash + rustc --version + cargo --version + ``` + +## Troubleshooting + +### Services won't start + +1. Check if binaries are built: + ```bash + ls -la ../herocoordinator/target/release/herocoordinator + ls -la ../supervisor/target/release/supervisor + ls -la ../runner_rust/target/release/runner_osiris + ``` + +2. If missing, build them: + ```bash + ./build.sh + ``` + +### Check logs + +```bash +# View all logs +./run.sh logs + +# Or view individual logs +tail -f ../home/logs/coordinator.log +tail -f ../home/logs/supervisor.log +tail -f ../home/logs/osiris_runner.log +``` + +### Redis not running + +```bash +# Start Redis +redis-server + +# Or in background +redis-server --daemonize yes +``` + +### Port already in use + +Change the port via environment variables: +```bash +COORDINATOR_PORT=8082 SUPERVISOR_PORT=3031 ./run.sh start +``` + +## Development Workflow + +```bash +# 1. Make code changes +# ... edit code ... + +# 2. Rebuild affected component +./build.sh coordinator # or supervisor, or runner + +# 3. Restart services +./run.sh restart + +# 4. Check logs +./run.sh logs +``` diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..0dacd08 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + +# Hero System Build Script - Wrapper +# Calls build.sh in each component repo + +HERO_BASE="/Users/timurgordon/code/git.ourworld.tf/herocode" + +echo "Building Hero System components..." + +# Build coordinator +"$HERO_BASE/herocoordinator/scripts/build.sh" + +# Build supervisor +"$HERO_BASE/supervisor/scripts/build.sh" + +# Build osiris runner +"$HERO_BASE/runner_rust/scripts/build.sh" + +echo "✅ All Hero System components built successfully" diff --git a/scripts/run.sh b/scripts/run.sh old mode 100644 new mode 100755 index e69de29..fad3ecb --- a/scripts/run.sh +++ b/scripts/run.sh @@ -0,0 +1,222 @@ +#!/bin/bash +set -e + +# Hero System Startup Script - Wrapper +# Runs individual run.sh scripts in background with logging + +# Colors for output +RED='\033[0;31m' +GREEN='\033[0;32m' +YELLOW='\033[1;33m' +BLUE='\033[0;34m' +NC='\033[0m' # No Color + +# Base directory +HERO_BASE="/Users/timurgordon/code/git.ourworld.tf/herocode" + +# Log directory +LOG_DIR="$HERO_BASE/home/logs" +mkdir -p "$LOG_DIR" + +# PID file directory +PID_DIR="$HERO_BASE/home/pids" +mkdir -p "$PID_DIR" + +# Function to print colored messages +log_info() { + echo -e "${BLUE}[INFO]${NC} $1" +} + +log_success() { + echo -e "${GREEN}[SUCCESS]${NC} $1" +} + +log_warning() { + echo -e "${YELLOW}[WARNING]${NC} $1" +} + +log_error() { + echo -e "${RED}[ERROR]${NC} $1" +} + +# Function to check if Redis is running +check_redis() { + log_info "Checking Redis connection..." + if redis-cli ping > /dev/null 2>&1; then + log_success "Redis is running" + return 0 + else + log_error "Redis is not running. Please start Redis first." + log_info "You can start Redis with: redis-server" + return 1 + fi +} + +# Function to start a component with log prefix +start_component() { + local name=$1 + local script=$2 + local log_file=$3 + local pid_file=$4 + local prefix=$5 + + log_info "Starting $name..." + + # Start the script and pipe output through a prefix filter + "$script" 2>&1 | while IFS= read -r line; do + echo -e "${prefix}${NC} $line" + done & + + local pid=$! + echo $pid > "$pid_file" + sleep 2 + + if ps -p $pid > /dev/null 2>&1; then + log_success "$name started (PID: $pid)" + else + log_error "Failed to start $name" + return 1 + fi +} + +# Function to stop a process +stop_process() { + local name=$1 + local pid_file=$2 + + if [ -f "$pid_file" ]; then + local pid=$(cat "$pid_file") + if ps -p $pid > /dev/null 2>&1; then + log_info "Stopping $name (PID: $pid)..." + kill "$pid" 2>/dev/null || true + sleep 2 + + # Force kill if still running + if ps -p "$pid" > /dev/null 2>&1; then + log_warning "Force killing $name..." + kill -9 "$pid" 2>/dev/null || true + fi + + rm -f "$pid_file" + log_success "$name stopped" + else + log_info "$name is not running" + rm -f "$pid_file" + fi + else + log_info "$name is not running" + fi +} + +# Function to show status +show_status() { + echo "" + log_info "Hero System Status:" + echo "" + + for service in coordinator supervisor osiris_runner; do + local pid_file="$PID_DIR/${service}.pid" + if [ -f "$pid_file" ]; then + local pid=$(cat "$pid_file") + if ps -p $pid > /dev/null 2>&1; then + echo -e " ${GREEN}●${NC} $service (PID: $pid)" + else + echo -e " ${RED}●${NC} $service (dead, PID file exists)" + fi + else + echo -e " ${RED}●${NC} $service (not running)" + fi + done + echo "" +} + +# Function to stop all services +stop_all() { + log_info "Stopping Hero System..." + stop_process "Osiris Runner" "$PID_DIR/osiris_runner.pid" + stop_process "Supervisor" "$PID_DIR/supervisor.pid" + stop_process "Coordinator" "$PID_DIR/coordinator.pid" + log_success "All services stopped" +} + +# Trap handler for cleanup on exit +cleanup() { + echo "" + log_warning "Received exit signal, stopping all services..." + stop_all + exit 0 +} + +# Main script +case "${1:-start}" in + start) + log_info "Starting Hero System..." + + # Set up trap for SIGINT and SIGTERM + trap cleanup SIGINT SIGTERM + + # Check Redis + if ! check_redis; then + exit 1 + fi + + # # Start services + # start_component "Coordinator" \ + # "$HERO_BASE/herocoordinator/scripts/run.sh" \ + # "$LOG_DIR/coordinator.log" \ + # "$PID_DIR/coordinator.pid" \ + # "${GREEN}[COORD]" || exit 1 + + start_component "Supervisor" \ + "$HERO_BASE/supervisor/scripts/run.sh" \ + "$LOG_DIR/supervisor.log" \ + "$PID_DIR/supervisor.pid" \ + "${BLUE}[SUPER]" || exit 1 + + start_component "Osiris Runner" \ + "$HERO_BASE/runner_rust/scripts/run.sh" \ + "$LOG_DIR/osiris_runner.log" \ + "$PID_DIR/osiris_runner.pid" \ + "${YELLOW}[OSIRS]" || exit 1 + + echo "" + log_success "Hero System started successfully!" + show_status + + echo "" + log_info "Displaying live logs from all services..." + log_info "Press Ctrl+C to stop all services" + echo "" + + # Keep running and wait for signals + wait + ;; + + stop) + stop_all + ;; + + restart) + stop_all + sleep 2 + $0 start + ;; + + status) + show_status + ;; + + *) + echo "Usage: $0 {start|stop|restart|status}" + echo "" + echo "Commands:" + echo " start - Start all Hero services with live log display (default)" + echo " stop - Stop all Hero services" + echo " restart - Restart all Hero services" + echo " status - Show status of all services" + echo "" + echo "Note: 'start' displays live logs from all services with color-coded prefixes." + echo " Each service's run.sh will build itself before starting." + exit 1 + ;; +esac