Skip to content

Fix: Enforce type safety, test discovery, and build portability - #3

Open
mertcano wants to merge 1 commit into
AxisAIOrg:mainfrom
mertcano:gagwag
Open

Fix: Enforce type safety, test discovery, and build portability#3
mertcano wants to merge 1 commit into
AxisAIOrg:mainfrom
mertcano:gagwag

Conversation

@mertcano

Copy link
Copy Markdown

This PR addresses workspace-wide technical debt by eliminating unsafe any types, restoring deterministic Python test execution, and migrating POSIX-specific build scripts to a portable Node.js implementation.

Type Boundaries: Replaced unbounded any types with unknown and Record<string, unknown> across API routes, local storage, and task parameters.

Safe Module Loading: Implemented strict interfaces (MujocoLoader, MujocoImport) and runtime narrowing for dynamic MuJoCo imports. Added instanceof Error checks for safe virtual filesystem operations.

Test Discovery: Added pythonpath = ["."] to pyproject.toml to resolve ModuleNotFoundError during pytest collection.

Cross-Platform Compatibility: Replaced hardcoded Linux mkdir/cp shell commands in package.json with a portable fs/promises Node.js script (copy-mujoco.mjs) to support Windows build environments.

This PR addresses workspace-wide technical debt by eliminating unsafe any types, restoring deterministic Python test execution, and migrating POSIX-specific build scripts to a portable Node.js implementation.

Type Boundaries: Replaced unbounded any types with unknown and Record<string, unknown> across API routes, local storage, and task parameters.

Safe Module Loading: Implemented strict interfaces (MujocoLoader, MujocoImport) and runtime narrowing for dynamic MuJoCo imports. Added instanceof Error checks for safe virtual filesystem operations.

Test Discovery: Added pythonpath = ["."] to pyproject.toml to resolve ModuleNotFoundError during pytest collection.

Cross-Platform Compatibility: Replaced hardcoded Linux mkdir/cp shell commands in package.json with a portable fs/promises Node.js script (copy-mujoco.mjs) to support Windows build environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant