-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(meta-test): update
t.engine()
impl (#716)
Update the implementation of `t.engine()` <!-- 1. Explain below WHAT the change is --> The change comes with removing the different spin-offs of `t.engine` which arose from the previous impl of t.engine incompatibility with artifact upload protocol. The change will make `t.engine` deploy the artifacts in Artifact Resolution mode by running a shell command to deploy the typegraph. <!-- 2. Explain below WHY the change cannot be made simpler --> ... <!-- 3. Explain below WHY the was made or link an issue number --> [MET-500](https://linear.app/metatypedev/issue/MET-500/test-update-the-implementation-of-tengine) <!-- 4. Explain HOW users should update their code or remove that section --> - [x] remove different versions of `t.engine` - [x] add tg_deploy caller script which imports typegraphs dynamically and deploys them. - [x] make changes to make `t.engine` run in artifact resolution mode - [x] update existing tests to adhere to the current change - [x] pass unique different `tempDir`s to all the typegate instances created during test. - [x] add support for authoring multiple typegraphs in a single file in `meta-test` and add multi typegraph tests. #### Migration notes python SDK test typegraphs' function names should be the same with the filename of the typegraph file, for dynamic import compatibility reasons. <!-- 5. Readiness checklist - [ ] The change come with new or modified tests - [ ] Hard-to-understand functions have explanatory comments - [ ] End-user documentation is updated to reflect the change --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a new function `wasm_duplicate` to handle WebAssembly runtimes with specific policies. - **Refactor** - Renamed and refactored functions and test setups to align with updated test frameworks and improve code clarity. - **Bug Fixes** - Added error handling in the `getLocalPath` function to log warnings if linking errors occur. - **Tests** - Updated test scripts to reflect changes in function calls, imports, and engine instantiation for better test accuracy and reliability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
96 changed files
with
1,792 additions
and
2,315 deletions.
There are no files selected for viewing
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.