Skip to content

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

chore(ci): rename test module identifiers

Steven Enamakel0e90cba75947
diff --git a/scripts/ci/check-openhuman-rust-layout.mjs b/scripts/ci/check-openhuman-rust-layout.mjs
index 757d25f11b..056bb70c5a 100644
--- a/scripts/ci/check-openhuman-rust-layout.mjs
+++ b/scripts/ci/check-openhuman-rust-layout.mjs
@@ -76,7 +76,7 @@ function allRustFiles(directory) {
});
}
-const INLINE_TEST_MODULE_RE =
+const INLINE_TESTS_MODULE_RE =
/^\s*#\[cfg\([^\n]*\btest\b[^\n]*\)\]\s*\n(?:\s*#\[[^\n]+\]\s*\n)*\s*(?:pub(?:\([^)]*\))?\s+)?mod\s+\w+\s*\{/m;
const failures = [];
@@ -113,7 +113,7 @@ for (const file of allRustFiles(CRATES_ROOT)) {
`${file}: test modules must use a descriptive *_tests.rs filename`,
);
}
- if (INLINE_TEST_MODULE_RE.test(source)) {
+ if (INLINE_TESTS_MODULE_RE.test(source)) {
failures.push(
`${file}: inline test module; move it to a sibling *_tests.rs file`,
);
diff --git a/scripts/ci/self-hosted/install-test-modules.sh b/scripts/ci/self-hosted/install-test-modules.sh
index 7a724fefca..cf29c77d1c 100755
--- a/scripts/ci/self-hosted/install-test-modules.sh
+++ b/scripts/ci/self-hosted/install-test-modules.sh
@@ -21,7 +21,7 @@ log() { echo "[ci][test-modules] $*"; }
dest="${1:?usage: install-test-modules.sh <dest-dir> <env-file>}"
env_file="${2:?usage: install-test-modules.sh <dest-dir> <env-file>}"
-host_key="${OH_TEST_MODULE_HOST_KEY:-ubuntu-22.04-x86_64}"
+host_key="${OH_MODULE_HOST_KEY:-ubuntu-22.04-x86_64}"
blobs="${CI_CACHE_DIR:+${CI_CACHE_DIR}/blobs}"
blobs="${blobs:-${dest}/.blobs}"
mkdir -p "${blobs}" "${dest}"