Repository navigation
ci(inbound): run the inbound module E2E in a path-gated hosted lane #8668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
19f11b8
640aab5
b1c3db2
bf5385d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ unused `ex63` profile. | |
| | `rust-gates-off` | gates-off checks and gate-contract tests, kernel floor, dep-sim calibration | | ||
| | `tauri` | Tauri clippy and coverage | | ||
| | `pester` | `install.ps1` tests | | ||
| | `inbound-e2e` | test modules from the registry, then `tests/inbound_module_e2e.rs` against the verified TinyEventQueues release (its `e2e-test-support` gate keeps it out of `rust-cov`); armed by the `inbound` area only | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. State the lane’s delivery coverage limitation. This test does not exercise the production
|
||
|
|
||
| How lanes behave: | ||
|
|
||
|
|
@@ -90,7 +91,7 @@ Lanes are grouped into jobs sized for 4-core, ~14 GB runners: `checks`, | |
| `rust-lint` (lint and gates-off in turn), `rust-cov-core`, `rust-cov-product`, | ||
| `rust-cov-facades` and `rust-cov-tui` (the `rust-cov` lane in four jobs, each a whole | ||
| section of `scripts/ci/rust-coverage.sh`, picked by `OH_COV_SHARD`; the gate merges their | ||
| lcov files and fails if any is missing), `tauri` and `pester`. | ||
| lcov files and fails if any is missing), `tauri`, `pester` and `inbound-e2e`. | ||
| Groups whose areas are untouched don't start. | ||
|
|
||
| ## Measuring | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,7 @@ export const AREA_ENV = { | |
| toolchainImage: "CI_AREA_TOOLCHAIN_IMAGE", | ||
| installPs1: "CI_AREA_INSTALL_PS1", | ||
| storage: "CI_AREA_STORAGE", | ||
| inbound: "CI_AREA_INBOUND", | ||
| }; | ||
|
|
||
| /** Read the area flags from an environment object. Missing means false. */ | ||
|
|
@@ -72,11 +73,27 @@ export const HOSTED_GROUPS = [ | |
| container: true, | ||
| })), | ||
| { group: "tauri", lanes: ["tauri"], maxParallel: 1, container: true }, | ||
| // One integration target with a feature set of its own: a runner and a | ||
| // Rust cache of its own, armed only by the `inbound` area. | ||
| { | ||
| group: "inbound-e2e", | ||
| lanes: ["inbound-e2e"], | ||
|
Comment on lines
+79
to
+80
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Adding this hosted lane and group leaves the repository's CI inventory stale: AGENTS.md reference: AGENTS.md:L832-L832 Useful? React with 👍 / 👎.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed in |
||
| maxParallel: 1, | ||
| container: true, | ||
| }, | ||
|
|
||
| // pwsh ships on the bare ubuntu-latest image, not in the CI container. | ||
| { group: "pester", lanes: ["pester"], maxParallel: 1, container: false }, | ||
| ]; | ||
|
|
||
| /** | ||
| * The inbound module E2E, with the gates its target requires | ||
| * (crates/openhuman-cli/Cargo.toml), against the staged release modules. | ||
| */ | ||
| export const INBOUND_MODULE_E2E = | ||
| "bash scripts/ci-cancel-aware.sh cargo test -p openhuman-cli" + | ||
| " --features modules,inbound-queues,e2e-test-support --test inbound_module_e2e"; | ||
|
|
||
| const CORE_PRODUCT = '"$(bash scripts/ci/product-features.sh --core)"'; | ||
|
|
||
| /** | ||
|
|
@@ -591,6 +608,32 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) { | |
| }, | ||
| ], | ||
| }, | ||
| { | ||
| // tests/inbound_module_e2e.rs: the Composio admission path into the | ||
| // digest-verified TinyEventQueues release and back through the host's | ||
| // production `Deliver` (#8155). Its `e2e-test-support` gate is not in | ||
| // the product set, so rust-coverage.sh skips the target; it runs here, | ||
| // for changes to the inbound host, the module host or the module pin. | ||
| name: "inbound-e2e", | ||
| // Compiles the core crate; hosted runners can cap heavy-compile slots | ||
| // (lanes.mjs). Lower number = served first. | ||
| heavy: 2, | ||
| targetDir: targetDir("build"), | ||
| env: { ...rustEnv }, | ||
| checks: [ | ||
| { | ||
| name: "install-test-modules", | ||
| when: areas.inbound, | ||
| run: `bash scripts/ci/self-hosted/install-test-modules.sh "${modulesDir}" ${modulesEnvFile}`, | ||
| }, | ||
| { | ||
| name: "inbound-module-e2e", | ||
| when: areas.inbound, | ||
| needs: ["install-test-modules"], | ||
| run: withModules(INBOUND_MODULE_E2E), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| }, | ||
| ], | ||
| }, | ||
| { | ||
| name: "tauri", | ||
| // Compiles the core crate; hosted runners can cap heavy-compile slots | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -90,7 +90,7 @@ local_source_ids=() | |
| if local_module_source_is_source; then | ||
| local_source_ids+=(tinyconnectors tinyflows tinyjuice tinysearch tinyhosts tinymcp) | ||
| else | ||
| for released_id in tinychannels tinyflows tinyjuice tinysearch; do | ||
| for released_id in tinychannels tinyflows tinyjuice tinysearch tinyeventqueues; do | ||
| released_dir="$(stage_release_module "$released_id" "$wallet_platform" "$module_ext")" | ||
| if [ "$released_id" = "tinychannels" ]; then | ||
| tinychannels_dir="$released_dir" | ||
|
|
@@ -108,6 +108,13 @@ if local_module_source_is_source; then | |
| export OPENHUMAN_MODULE_PATH="$released_dir${OPENHUMAN_MODULE_PATH:+:$OPENHUMAN_MODULE_PATH}" | ||
| fi | ||
|
|
||
| # inbound_module_e2e loads the TinyEventQueues release in either mode; it is | ||
| # not among the modules built from source above. | ||
| if local_module_source_is_source; then | ||
| released_dir="$(stage_release_module tinyeventqueues "$wallet_platform" "$module_ext")" | ||
| export OPENHUMAN_MODULE_PATH="$released_dir${OPENHUMAN_MODULE_PATH:+:$OPENHUMAN_MODULE_PATH}" | ||
| fi | ||
|
|
||
| # Wallet JSON-RPC E2E sends a recovery phrase only to an attested module. Build | ||
| # artifacts are deliberately not treated as release-pinned recipients, so use | ||
| # the checksum-pinned release archive and its accompanying `modules.toml`. | ||
|
|
@@ -394,6 +401,10 @@ run_full_suite() { | |
| run_in_process_modules "$@" | ||
| elif [[ "$target" =~ ^json_rpc_.*_e2e$ ]]; then | ||
| run_json_rpc_e2e "$target" "$@" | ||
| elif [ "$target" = "inbound_module_e2e" ]; then | ||
| # Outside the product set (e2e-test-support); it loads the staged | ||
| # TinyEventQueues release from OPENHUMAN_MODULE_PATH (#8155). | ||
| cargo_test --features modules,inbound-queues,e2e-test-support --test "$target" -- "$@" | ||
|
Comment on lines
+404
to
+407
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pass the required features on the direct Direct invocation falls through to the generic Suggested fix
|
||
| elif [ "$target" = "tinymcp_storage_smoke_e2e" ]; then | ||
| OPENHUMAN_MODULE_PATH="$tinymcp_dir${OPENHUMAN_MODULE_PATH:+:$OPENHUMAN_MODULE_PATH}" \ | ||
| cargo_test --features e2e-test-support --test "$target" -- "$@" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For an inbound-changing PR, this flag lets the plan step schedule the
inbound-e2ematrix group, but in the checked.github/workflows/ci-lanes.ymlthejobs.plan.outputsblock does not exposeinboundandjobs.lanes.envforwards area flags only throughCI_AREA_STORAGE. The detachedlanes.mjsinvocation therefore reconstructsareas.inboundas false, filters the selected lane out as inactive, emits an empty lanes list, and lets the job summary pass without running the E2E; export the filter result and restoreCI_AREA_INBOUNDin the lane job as well.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, fixed in
bf5385db15. The plan job now exportsinbound, and the lane job setsCI_AREA_INBOUND: ${{ needs.plan.outputs.inbound }}. Without it,lanes.mjsrebuilt the plan withinbound = falseand the lane started nothing and passed.self-hosted-lanes.test.mjsnow checks that everyAREA_ENVflag reaches the lane job; it fails on the previous workflow (CI_AREA_INBOUND is not forwarded to the lane job).