refactor: split into Cargo workspace with fine-grained crates + CI/E2E#3
Open
loonghao wants to merge 10 commits intoiOfficeAI:mainfrom
Open
refactor: split into Cargo workspace with fine-grained crates + CI/E2E#3loonghao wants to merge 10 commits intoiOfficeAI:mainfrom
loonghao wants to merge 10 commits intoiOfficeAI:mainfrom
Conversation
…e dirs - Delete src/ (original monolith source, fully migrated to crates/) - Delete tests/ (integration tests, migrated to crates/aion-agent/tests/ and crates/aion-providers/tests/) - Delete crates/aion-core/ (transitional catch-all crate, now split into aion-types, aion-protocol, aion-config, aion-providers, aion-tools, aion-mcp, aion-agent) - Remove stale crates/aion-types/src/protocol.rs (content lives in aion-protocol) - Mark shell-dependent hook tests as #[cfg(unix)] to pass on Windows - Update AGENTS.md with final workspace layout and dependency order
- .config/nextest.toml: three profiles (default/ci/e2e) with per-profile timeout, retry, thread and JUnit output settings - .github/workflows/ci.yml: three-platform matrix (Linux/macOS/Windows), nextest --profile ci, JUnit report via dorny/test-reporter - .github/workflows/e2e.yml: separate E2E workflow triggered on push to main and workflow_dispatch; graceful skip when API keys are absent; per-provider matrix (anthropic/openai) with nextest --profile e2e - crates/aion-agent/tests/e2e/: Anthropic and OpenAI smoke tests (single-turn completion + tool-use), tempfile-based, graceful skip - justfile: test/test-ci/test-e2e/coverage recipes unified under nextest - Fix stale aionrs:: and aion_core:: refs in spawn_test.rs and provider_openai_test.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactors the monolithic single-crate layout into a clean Cargo workspace with 8 purpose-built crates, adds
workspace-hackfor build acceleration, automated release versioning via release-please, and a complete CI/E2E testing pipeline.Workspace Structure
Dependency order (no cycles)
CI / Testing
ci.yml— runs on every PR and push to main--profile ci(parallel, 2× retry, JUnit output)dorny/test-reportere2e.yml— real API smoke testspushto main (path-filtered) andworkflow_dispatchanthropic/openaiANTHROPIC_API_KEY/OPENAI_API_KEYare absente2e: sequential, 120 s timeout, no retriesrelease-please.yml— automated versioningrelease.yml— multi-platform binariesworkflow_dispatchOther
justfile: unifiedvx justrecipes (test,test-ci,test-e2e,check-all,coverage, …).config/nextest.toml:default/ci/e2eprofilesrust-toolchain.toml: pins stable channeltests/directoriesRequired Secrets
CODECOV_TOKENANTHROPIC_API_KEYOPENAI_API_KEY