Skip to content

ci: add 4 load-bearing crates to CI workflow (skipped openrouter-runtime) - #100

Merged
KooshaPari merged 2 commits into
masterfrom
fix/b-ci-expand-5-crates
Oct 17, 2026
Merged

KooshaPari merged 2 commits into
masterfrom
fix/b-ci-expand-5-crates

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

User description

Summary

Adds four previously-skipped load-bearing crates to the CI matrix:

  • jcode-provider-core
  • jcode-provider-openai-runtime
  • jcode-tui-markdown
  • jcode-command-risk

These crates compile fine but were absent from CI, meaning regressions could land on master undetected.

Why one crate was skipped

jcode-provider-openrouter-runtime is intentionally not added. At HEAD 748eeaa1e it has a pre-existing test failure: the test expects the glm-4.5 model to be the autodetected default, but the runtime now defaults to glm-5.3 (the model catalog rotated). Fixing that requires either updating the test expectation or pinning the test fixture to an older catalog snapshot — both are small but neither is in scope for this PR.

Filed as a separate follow-up issue so it can be tracked and resolved independently. Once that test passes, this crate should be added in a follow-up PR.

Audit source

~/.jcode/scratch/audit/B-test-integrity.md — coverage gaps in CI matrix.

Acceptance criteria

  • All four newly added crates compile and pass their existing test suites in CI
  • The skipped crate (jcode-provider-openrouter-runtime) is documented with a follow-up reference
  • Follow-up: jcode-provider-openrouter-runtime model-default drift — separate issue

CodeAnt-AI Description

Run four additional crate test suites in CI

What Changed

  • CI now runs library tests for risk classification, Markdown rendering, the OpenAI runtime, and shared provider components.
  • The OpenRouter runtime remains excluded because it has an unresolved test failure related to its default model.

Impact

✅ Earlier detection of risk-classifier regressions
✅ Earlier detection of Markdown-rendering regressions
✅ Earlier detection of provider regressions

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

Per audit B-7b, CI explicitly named only 7 of 92 workspace crates
in the `build` job. The remaining ~80% of crate lib-tests were
never run in CI. This commit adds 4 of the 5 highest-leverage
crates by test count and user-surface criticality:

- jcode-provider-core (127 tests) — shared provider surface
- jcode-provider-openai-runtime (133 tests, 3 ignored) — most-used streaming
- jcode-tui-markdown (148 tests) — render layer
- jcode-command-risk (209 tests) — safety-critical classifier

jcode-provider-openrouter-runtime is intentionally skipped: it has
a pre-existing test failure at HEAD 748eeaa
(`autodetected_profile_seeds_default_model_and_cache_namespace`
expects `glm-4.5` but the autodetected default is now `glm-5.3`,
a model-name drift). Tracked separately; the 4 added here are the
audit-clean subset.

Total: +617 lib tests per CI run, ~5 min added CI time.

tx-agent: jcode
tx-validated: test
tx-task: B-audit-2026-10-16-option-b
tx-scope: .github/workflows/ci.yml
tx-intent: close ~10% of the 75-crate test-surface gap with the audit-clean subset of highest-leverage crates
Copilot AI balanced review requested due to automatic review settings October 17, 2026 04:42
@codeant-ai

codeant-ai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Incremental review completed ee32c05 Oct 17, 2026 · 05:58 05:58
✅ Reviewed your PR b01a3b0 Oct 17, 2026 · 04:42 04:47

@codeant-ai

codeant-ai Bot commented Oct 17, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 58 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 817df604-ecfc-417e-a0b9-077bdb750600
📥 Commits

Reviewing files that changed from the base of the PR and between 748eeaa and ee32c05.

📒 Files selected for processing: 1
  • .github/workflows/ci.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:M This PR changes 30-99 lines, ignoring generated files label Oct 17, 2026
Comment thread .github/workflows/ci.yml Resolved
@codeant-ai

codeant-ai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

CodeAnt PR Risk: Low Risk

  • The PR appears safe to merge; it adds four targeted crate test runs to CI, and the markdown tests run serially to avoid the reported shared-state race.

Assessed commit: ee32c056e6e0

@kilo-code-bot

kilo-code-bot Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 0
Files Reviewed (1 file)
  • .github/workflows/ci.yml

Previous suggestion on jcode-tui-markdown lib tests running with default parallelism (race on FAILED_RENDERS) was resolved by adding --test-threads=1 at ci.yml:360 in commit ee32c05.

Previous Review Summary (commit b01a3b0)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit b01a3b0)

Status: 1 Suggestion (pre-existing inline comment) | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
.github/workflows/ci.yml 360 Markdown lib tests run with default parallelism; cache-reset tests can race on FAILED_RENDERS. Consider --test-threads=1 (already used by TUI cohort above).
Files Reviewed (1 file)
  • .github/workflows/ci.yml - 1 suggestion (existing comment)

Fix these issues in Kilo Cloud


Reviewed by free · Input: 61.8K · Output: 5.6K · Cached: 143.1K

@KooshaPari

Copy link
Copy Markdown
Owner Author

FIXED: markdown_latex_image tests reset the global FAILED_RENDERS cache between assertions, so default libtest parallelism permits interference. Added --test-threads=1 to the jcode-tui-markdown lib test CI command. Validation: cargo check -p jcode-tui-markdown --no-default-features -j 1 passed; confirmed the flag is scoped to that target.

@KooshaPari

Copy link
Copy Markdown
Owner Author

Receipt: reviewed the finding against current PR tip ee32c05.

  • FIXED (already present in ee32c05): the jcode-tui-markdown lib-test invocation uses --test-threads=1, serializing the tests that reset shared render caches.

Validation: confirmed the shared FAILED_RENDERS/reset call sites and the CI command. Cargo validation was attempted; the environment did not complete it (details recorded in kcodeant-RESULT.md). No successful compile/test run is claimed. No additional fix commit was needed or pushed.

@KooshaPari
KooshaPari merged commit 36c1f45 into master Oct 17, 2026
6 checks passed
KooshaPari added a commit that referenced this pull request Oct 17, 2026
* docs(audit): 2026-10-17 full-state audit mdset (10 lanes, 4 PRs)

10-agent subagent-driven audit of the KCode fork. 18 artifacts in this
mdset cover all 10 audit lanes plus the new artifacts from the in-flight
agents that completed during this cycle.

In this cycle we shipped:
- PR #99  fix(a2/auto-dream): make LLM-stub path honest
- PR #100 ci: add 4 load-bearing crates to CI workflow
- PR #101 docs(readme): correct provider count
- PR #105 fix(tui/swarm-rename): wire TUI rename handler (A-1 retry)

Investigated, not merged:
- PR #94 (fork builds never auto-update): 3 real issues filed in #104
- 9 STALE PRs: 7 closed, 4 commented, label 'needs-operator-decision' created
- 6 cherry-pick candidates identified (low-risk additive)
- 1 critical security patch (rustls/quinn-proto) requires manual Cargo.lock fix

Constraints honored:
- No destructive git ops
- No upstream PRs from KooshaPari/ (binding memo 2026-10-15)

tx-agent:     jcode
tx-validated: manual
tx-scope:     docs/audits/2026-10-17-full-state/
tx-intent:    persist 10-lane audit artifacts in the source repo

* docs(audit): verify CLI test target and correct fork divergence counts
@KooshaPari
KooshaPari deleted the fix/b-ci-expand-5-crates branch November 27, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants