fix(ci): green CI — delete stale integration tests + clippy + cargo fmt #3
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_matrixchat!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik_1"
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?
Fifth repo in the home#188 CI sweep.
What was red
The single CI workflow
.forgejo/workflows/ci.ymlchains:cargo fmt --check→cargo check --workspace→cargo clippy --workspace --all-targets -- -D warnings→cargo test --workspace --lib --bins. Three of those four were failing.crates/hero_matrixchat_sdk/tests/integration_test.rs— referenceshero_matrixchat_sdk::MatrixClientwhich no longer exists (the SDK was refactored to be the OpenRPC clientHeroMatrixchatServerClient)crates/hero_matrixchat_examples/tests/integration.rs— usesMatrixChatClient::new(&path)(no such constructor) andclient.health()with no args (now requiresHealthInput { profile: None })hero_matrixchat_server/src/profile.rs(real lint, auto-fixable)hero_matrixchatbinary + Matrix server)Fix
Deleted two stale integration test files
Both files referenced types/methods orphaned by an SDK refactor. They didn't compile. Their deletion does not remove working test coverage — they were already broken.
crates/hero_matrixchat_sdk/tests/integration_test.rs(~114 cascading errors from missingMatrixClientimport)crates/hero_matrixchat_examples/tests/integration.rs(usesMatrixChatClient::newwhich doesn't exist, plus tries to spawn a livehero_matrixchatbinary that CI doesn't have)Auto-fix collapsible_if
One
cargo clippy --fix-able issue inhero_matrixchat_server/src/profile.rs:30.cargo fmt --allPre-existing format drift across 7 files. Folded in because
ci.yml's first step iscargo fmt --check.What this PR does NOT do
The repo has zero working tests after this cleanup. That gap is genuinely real (the deleted files weren't testing anything — they didn't even compile). Filed follow-up at hero_matrixchat#2 — SDK unit tests + SDK round-trip tests (mock server) +
#[ignore]'d E2E tests.Local verification
Discipline confirmation
Per home#188 §Engineering discipline:
#[ignore]broken tests (they don't compile)#[allow(...)](orphaned, not preserved-for-future)Tracker: home#188 · Follow-up: hero_matrixchat#2
Signed-off-by: mik-tf
CI workflow `.forgejo/workflows/ci.yml` runs cargo fmt --check, cargo check, cargo clippy --all-targets -- -D warnings, and cargo test. Fmt was failing on pre-existing format drift; clippy was failing with 122 cumulative errors; tests... weren't really tests. ## Stale integration tests deleted Two integration test files referenced types/methods that no longer exist in the SDK after a refactor (HeroMatrixchatServerClient replaced the old MatrixClient direct-Matrix-protocol client): - `crates/hero_matrixchat_sdk/tests/integration_test.rs` — used `hero_matrixchat_sdk::MatrixClient`, which doesn't exist; cascaded into ~114 compile errors. - `crates/hero_matrixchat_examples/tests/integration.rs` — used `MatrixChatClient::new(&path)` (no such constructor) and `client.health()` with no args (now requires HealthInput); 8 cascading errors. Also tried to spawn a live `hero_matrixchat` binary via `Command::new(...).arg("--start")`, which CI's runner doesn't have anyway. Both deletes do NOT remove working test coverage — they remove dead code that was already broken at compile time. The repo has zero real tests today; tracked separately. ## clippy fix (1) `crates/hero_matrixchat_server/src/profile.rs:30` — collapsible_if auto-fixed by `cargo clippy --fix`. ## cargo fmt across workspace Pre-existing format drift in the bin / sdk / server crates. Folded in here because ci.yml's first step is `cargo fmt --check`. ## Local verification ``` cargo fmt --all --check ✓ cargo check --workspace ✓ cargo clippy --workspace --all-targets -- -D warnings ✓ cargo test --workspace --lib --bins ✓ (0 tests — see follow-up) ``` ## Out of scope (intentional, separate follow-up) The repo has **zero working tests** after this cleanup. Tracked at #2 — SDK unit tests + SDK round-trip tests (mock server) + #[ignore]'d E2E tests against the live stack. Adding these is real test-design work; out of scope for "make CI go green via canonical port". Per home#188 engineering discipline: - ✅ Diagnosed root cause for every error (stale API references, not a runtime/CI issue) - ✅ Deletes are honest cleanup of code that was already broken, not coping - ✅ Filed follow-up issue for the real gap (no tests) - ❌ Did NOT silently `#[ignore]` the broken tests (they don't even compile) - ❌ Did NOT preserve the broken files with `#[allow(...)]` — they're orphaned from a past architecture Fifth repo in the home#188 CI sweep. Tracker: lhumina_code/home#188 Signed-off-by: mik-tfPR #3 first CI run hit an infrastructure issue not a code issue. Pushed
fc4d0c9to fix.Root cause: previous
ci.ymlused GitHub-Actions-only conventions:Forgejo's
code.forgejo.orgaction mirror doesn't haveactions-rs/toolchain, so the runner died at the toolchain-install step:Fix: ported to the canonical Hero pattern (proven on hero_agent + hero_router):
runs-on: docker+container: image: ghcr.io/despiegk/builder:latestactions-rs/ GitHub-only dependenciesSame enforcement (fmt-check, cargo check, clippy
-D warnings, cargo test), different runner shape.This is an additional commit ON TOP of the test-deletion + clippy + fmt fixes — they were correct, the runner just couldn't get to executing them. Re-running CI now.
Squash-merged to
developmentasdefde49. Branch deleted. Two real fixes: stale-test cleanup + canonical workflow port. Test-coverage gap tracked at #2.Pull request closed