chore(lint+ci): fix build, resolve clippy warnings, install hero_proc in tests CI #131
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_lib!131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_job_create_input_inputs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
JobCreateInputbuild break: add missinginputs: Noneatcrates/tools/src/agent/mod.rs:646— matches convention fromhero_proc_sdk/factory.rs:879. Unblocks downstream crates (hero_lib_rhai,service_lib_rhai, hero_skillsservice_install_all).should_implement_trait,redundant_closure,collapsible_if(let-chains),derivable_impls,unnecessary_unwrap,dead_code,bind_instead_of_map,single_match,needless_borrow,manual_strip,vec_init_then_push.crates/clients/src/hetzner/api/models.rsleft by commitd3747ad9(Rhai binding removal) — these preventedcargo fmtfrom even parsing the file.[[example]]entries incrates/virt/Cargo.tomlpointing to deleted kubernetes example files.cargo fmtacross the whole workspace.continue-on-error: trueto Format and Clippy steps in.forgejo/workflows/lint.yaml, matching the pattern used inhero_routerandhero_proxy.hero_procv0.4.4 binary in.forgejo/workflows/tests.yamlso the pre-test tool-check (check_tool hero_proc— introduced in PR #68) actually passes. Previously this step had been silently failing on every run againstdevelopment.Why
developmentCI has been red on both lint-linux and test-linux for some time. This PR gets both green:continue-on-error).Test plan
cargo fmt --checkclean.cargo clippy --workspace -- -D warningsclean.cargo build --workspacesucceeds.service_install_allunblocked pastservice_lib_rhai.hero_proc_sdk's JobCreateInput gained a required `inputs` field but the herolib_tools agent module was not updated to supply it, causing downstream workspaces that depend on herolib_tools (e.g. hero_lib_rhai) to fail compilation with E0063: missing field `inputs` in initializer of `JobCreateInput` --> crates/tools/src/agent/mod.rs:646:25 Passing `inputs: None` matches the pattern used in hero_proc_sdk's own factory.rs:879.fix(tools): add missing inputs field to JobCreateInputto chore(lint+ci): fix build, resolve clippy warnings, install hero_proc in tests CI