Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

ci: skip cron module tests in shared test processes

Steven Enamakel31446f844698
diff --git a/.github/workflows/test-reusable.yml b/.github/workflows/test-reusable.yml
index f10691c403..0d52ae17fd 100644
--- a/.github/workflows/test-reusable.yml
+++ b/.github/workflows/test-reusable.yml
@@ -235,7 +235,24 @@ jobs:
inference::tokenjuice::tests::the_module_defers_a_summary_until_requested
inference::tokenjuice::tests::released_queries_keep_cached_originals_in_the_module_and_accept_artifact_content
tools::implementations::network::host::tests::tinyjuice_detects_and_converts_html
+ cron::bus_host::tests::execute_runs_the_registered_handler_and_reports_a_retryable_failure
+ cron::bus_host::tests::a_permanent_handler_outcome_stops_the_retry_loop
+ cron::bus_host::tests::an_agent_only_scheduler_refuses_shell_jobs_before_running_anything
+ cron::bus_host::tests::failed_is_accepted_for_any_job
+ cron::bus_host::tests::deliver_answers_with_the_delivery_status_string
+ cron::bus_host::tests::schedule_trigger_runs_a_system_job_and_records_the_handler_result
+ cron::bus_host::tests::schedule_trigger_for_an_unknown_flow_is_answered_not_failed
+ cron::bus_host::tests::dropping_the_registration_stops_serving_the_object
+ cron::documents_port::tests::the_port_serves_the_contracts_document_interface_and_reports_capabilities
+ cron::documents_port::tests::a_second_absent_write_comes_back_as_a_conflict_kind
+ cron::documents_port::tests::a_collection_outside_the_schedule_port_is_refused
+ cron::documents_port::tests::an_unknown_operation_is_refused_not_guessed
+ cron::documents_port::tests::one_object_is_served_per_scope_and_reused
)
+ MODULE_TEST_SKIP_ARGS=()
+ for module_test in "${MODULE_TESTS[@]}"; do
+ MODULE_TEST_SKIP_ARGS+=(--skip "$module_test")
+ done
STAGED_MODULE_PATH="${OPENHUMAN_MODULE_PATH:-}"
echo "[test-reusable] feature set: ${FEATURES} (cli: ${CLI_FEATURES})"
@@ -250,7 +267,7 @@ jobs:
# process below. Boot and parallel resolver tests can otherwise race
# while attaching the same released library to the one module host.
unset OPENHUMAN_MODULE_PATH
- bash scripts/ci-cancel-aware.sh cargo test -p openhuman --lib --features "${CORE_FEATURES}"
+ bash scripts/ci-cancel-aware.sh cargo test -p openhuman --lib --features "${CORE_FEATURES}" -- "${MODULE_TEST_SKIP_ARGS[@]}"
if [ -n "$STAGED_MODULE_PATH" ]; then
export OPENHUMAN_MODULE_PATH="$STAGED_MODULE_PATH"
fi
diff --git a/scripts/ci/self-hosted/lanes-plan.mjs b/scripts/ci/self-hosted/lanes-plan.mjs
index 4770d1e6e9..5797ebc342 100644
--- a/scripts/ci/self-hosted/lanes-plan.mjs
+++ b/scripts/ci/self-hosted/lanes-plan.mjs
@@ -563,7 +563,18 @@ export function buildPlan({ profile, areas, env = {}, isPullRequest = true }) {
when: areas.storage,
run:
`cargo test -p openhuman --features ${STORAGE_DRIVERS} --lib --` +
- STORAGE_LIB_FILTERS.map((f) => ` ${f}`).join(""),
+ STORAGE_LIB_FILTERS.map((f) => ` ${f}`).join("") +
+ " --skip cron::bus_host::tests:: --skip cron::documents_port::tests::",
+ },
+ {
+ // TinyFlows owns a process-global module host during these tests.
+ // Keep them out of the broad storage test process, where unrelated
+ // cron tests can replace handlers while a callback is executing.
+ name: "cron-module-tests",
+ when: areas.storage,
+ run:
+ `cargo test -p openhuman --features ${STORAGE_DRIVERS} --lib --` +
+ " cron::bus_host::tests:: cron::documents_port::tests:: --test-threads=1",
},
{
name: "storage-session-store-tests",