Skip to content

feat(SDK): add globs and dir support for artifact deps. #698

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

Merged
merged 55 commits into from
May 28, 2024

Conversation

destifo
Copy link
Contributor

@destifo destifo commented Apr 28, 2024

  • Include glob and dir support for PythonRuntime deps.
  • Include glob and dir support for DenoRuntime deps.
  • add tests

The change includes support for declaring artifact dependencies through globs and dirs

MET-441

Migration notes

In the deps parameter for python.import(...) and deno.import(...), globs and dirs can be passed in addition to files.

  • The change come with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

Summary by CodeRabbit

  • New Features

    • Introduced functionality for defining and deploying Typegraphs for Deno and Python runtimes.
    • Added support for defining a Deno runtime dependency graph with policies for test scenarios.
  • Bug Fixes

    • Corrected the structure of the Deno.serve call in the serve function.
  • Refactor

    • Enhanced method chaining for better readability in the MetaTest class.
  • Tests

    • Updated test coverage reporting to include new Deno runtime test files.
    • Commented out and removed outdated test cases in Deno runtime tests.
  • Chores

    • Updated platform specification in configuration files.

destifo added 2 commits April 28, 2024 23:19
commit 7769dbf
Author: destifo <[email protected]>
Date:   Sun Apr 28 14:57:01 2024 +0300

    chore(ci): add deno_test.ts to code coverage

commit c41f082
Merge: 8182a5b 3f0bd80
Author: destifo <[email protected]>
Date:   Sun Apr 28 13:37:56 2024 +0300

    Merge branch 'upload/deno-runtime' of https://github.com/metatypedev/metatype into upload/deno-runtime

commit 8182a5b
Author: destifo <[email protected]>
Date:   Sun Apr 28 13:37:14 2024 +0300

    refactor(SDK): refactor artifact upload inside tg_deploy TS SDK

commit 3bbd1d8
Author: destifo <[email protected]>
Date:   Sun Apr 28 13:26:39 2024 +0300

    fix(test): update tg snapshots and tests using denoruntime with module import

commit 3f0bd80
Merge: b81934f fad152c
Author: Estifanos Bireda <[email protected]>
Date:   Sat Apr 27 23:24:10 2024 +0300

    Merge branch 'main' into upload/deno-runtime

commit b81934f
Author: destifo <[email protected]>
Date:   Sat Apr 27 22:32:18 2024 +0300

    fix(cli): remove extra quotation from path variable in denoArtifact

commit 0628864
Merge: de1209e 66dee04
Author: Estifanos Bireda <[email protected]>
Date:   Fri Apr 26 16:33:00 2024 +0300

    Merge branch 'main' into upload/deno-runtime

commit de1209e
Author: destifo <[email protected]>
Date:   Fri Apr 26 01:22:14 2024 +0300

    fix(gate): fix deno import caching previous module with same name

commit 494a751
Merge: e5047a2 f0f41ac
Author: Estifanos Bireda <[email protected]>
Date:   Wed Apr 24 22:51:51 2024 +0300

    Merge branch 'main' into upload/deno-runtime

commit e5047a2
Author: destifo <[email protected]>
Date:   Wed Apr 24 22:39:50 2024 +0300

    chore(test): restructure deno runtime tests

commit 01b5c42
Author: destifo <[email protected]>
Date:   Wed Apr 24 15:31:21 2024 +0300

    chore(test): save modified test

commit 97007fa
Merge: b5db97d 3d5e6f9
Author: destifo <[email protected]>
Date:   Tue Apr 23 21:05:01 2024 +0300

    Merge branch 'main' of https://github.com/metatypedev/metatype into upload/deno-runtime

commit b5db97d
Merge: 6b56e34 6133dd0
Author: Estifanos Bireda <[email protected]>
Date:   Tue Apr 23 18:52:24 2024 +0300

    Merge branch 'MET-432--Uploading-`PythonRuntime`-files-' into upload/deno-runtime

commit 6133dd0
Author: destifo <[email protected]>
Date:   Tue Apr 23 18:05:55 2024 +0300

    chore(docs): update artifact upload protocol diagram

commit 31b8213
Author: destifo <[email protected]>
Date:   Tue Apr 23 17:29:59 2024 +0300

    fix(ci): fix python_wasi converage issue in CI

commit 558dc12
Author: destifo <[email protected]>
Date:   Tue Apr 23 16:50:59 2024 +0300

    chore(ci): update test trigger for test-full and install packages inside examples/typegraphs

commit 357758e
Merge: 94e72cb 6054534
Author: Estifanos Bireda <[email protected]>
Date:   Tue Apr 23 15:27:30 2024 +0300

    Merge branch 'main' into MET-432--Uploading-`PythonRuntime`-files-

commit 6b56e34
Merge: 0a88cd0 94e72cb
Author: Estifanos Bireda <[email protected]>
Date:   Tue Apr 23 11:36:33 2024 +0300

    Merge branch 'MET-432--Uploading-`PythonRuntime`-files-' into upload/deno-runtime

commit 94e72cb
Author: destifo <[email protected]>
Date:   Tue Apr 23 11:13:54 2024 +0300

    chore(sdk): add typegraph path in tg_manage

commit 4db2526
Merge: 2d992a3 1e6d424
Author: destifo <[email protected]>
Date:   Tue Apr 23 08:35:09 2024 +0300

    Merge branch 'main' of https://github.com/metatypedev/metatype into MET-432--Uploading--files-

commit 2d992a3
Author: destifo <[email protected]>
Date:   Tue Apr 23 00:23:22 2024 +0300

    chore(sdk, test): python sdk wasm refactor, fix python wasm and python_wasi tests

commit e77e815
Merge: f367d17 73871a7
Author: Estifanos Bireda <[email protected]>
Date:   Mon Apr 22 21:29:05 2024 +0300

    Merge branch 'upload/s3' into MET-432--Uploading-`PythonRuntime`-files-

commit 73871a7
Merge: 5a7584a 18128b6
Author: Estifanos Bireda <[email protected]>
Date:   Mon Apr 22 20:49:23 2024 +0300

    Merge branch 'main' into upload/s3

commit f367d17
Merge: 13bd017 5a7584a
Author: Estifanos Bireda <[email protected]>
Date:   Mon Apr 22 17:04:55 2024 +0300

    Merge branch 'upload/s3' into MET-432--Uploading-`PythonRuntime`-files-

commit 5a7584a
Author: destifo <[email protected]>
Date:   Mon Apr 22 17:02:15 2024 +0300

    fix(test): resolve validation failure.

commit a93dcee
Merge: 0868a6d 597849b
Author: destifo <[email protected]>
Date:   Mon Apr 22 14:54:57 2024 +0300

    Merge branch 'upload/s3' of https://github.com/metatypedev/metatype into upload/s3

commit 0868a6d
Author: destifo <[email protected]>
Date:   Mon Apr 22 14:46:39 2024 +0300

    fix(test): fix wrong module references in test

commit 597849b
Merge: 00f6795 7f3389f
Author: Estifanos Bireda <[email protected]>
Date:   Mon Apr 22 14:13:01 2024 +0300

    Merge branch 'main' into upload/s3

commit 13bd017
Author: destifo <[email protected]>
Date:   Mon Apr 22 10:01:39 2024 +0300

    chore(test): move ts tg_deploy out of meta test

commit f46c5a4
Merge: a4c5b24 00f6795
Author: destifo <[email protected]>
Date:   Mon Apr 22 08:45:41 2024 +0300

    Merge branch 'upload/s3' of https://github.com/metatypedev/metatype into MET-432--Uploading--files-

commit 00f6795
Author: destifo <[email protected]>
Date:   Sun Apr 21 17:29:02 2024 +0300

    chore: resolve merge conflicts

commit 24c7cb0
Merge: 1f28ba2 7b8c794
Author: destifo <[email protected]>
Date:   Sun Apr 21 16:48:44 2024 +0300

    Merge branch 'main' of https://github.com/metatypedev/metatype into upload/s3

commit 1f28ba2
Merge: 16fa8c3 be4a4ed
Author: destifo <[email protected]>
Date:   Fri Apr 19 15:09:57 2024 +0300

    Merge branch 'main' of https://github.com/metatypedev/metatype into upload/s3

commit 16fa8c3
Author: Natoandro <[email protected]>
Date:   Fri Apr 19 10:29:44 2024 +0300

    fix ghjk config

commit 5889e22
Author: Natoandro <[email protected]>
Date:   Thu Apr 18 19:18:12 2024 +0300

    fix pthon version in ghjk

commit fb6d50e
Merge: c07cfc6 a347ffc
Author: Natoandro <[email protected]>
Date:   Thu Apr 18 08:17:10 2024 +0300

    Merge branch 'main' into upload/s3

commit c07cfc6
Merge: 1317c75 ac544b3
Author: Estifanos Bireda <[email protected]>
Date:   Wed Apr 17 01:25:59 2024 +0300

    Merge branch 'main' into upload/s3

commit 0a88cd0
Merge: 2355ee7 a4c5b24
Author: Estifanos Bireda <[email protected]>
Date:   Wed Apr 17 01:13:06 2024 +0300

    Merge branch 'MET-432--Uploading-`PythonRuntime`-files-' into upload/deno-runtime

commit a4c5b24
Author: destifo <[email protected]>
Date:   Wed Apr 17 00:47:17 2024 +0300

    chore(test): renable python wasi tests

commit 726f8ca
Merge: b656d97 595bb03
Author: destifo <[email protected]>
Date:   Tue Apr 16 23:00:02 2024 +0300

    Merge branch 'MET-432--Uploading-`PythonRuntime`-files-' of https://github.com/metatypedev/metatype into MET-432--Uploading-`PythonRuntime`-files-
    Merge branch 'MET-432--Uploading-`PythonRuntime`-files-' of https://github.com/metatypedev/metatype into MET-432--Uploading-`PythonRuntime`-files-

commit 2355ee7
Merge: 3b3a997 595bb03
Author: Estifanos Bireda <[email protected]>
Date:   Tue Apr 16 12:04:38 2024 +0300

    Merge branch 'MET-432--Uploading-`PythonRuntime`-files-' into upload/deno-runtime

commit 3b3a997
Author: destifo <[email protected]>
Date:   Tue Apr 16 12:03:41 2024 +0300

    feat(gate): resolve deno runtime artifacts

commit 595bb03
Merge: bd29db4 1317c75
Author: Estifanos Bireda <[email protected]>
Date:   Tue Apr 16 11:17:45 2024 +0300

    Merge branch 'upload/s3' into MET-432--Uploading-`PythonRuntime`-files-

commit b656d97
Author: destifo <[email protected]>
Date:   Tue Apr 16 10:19:52 2024 +0300

    feat: finalize test suite to run and test tg deploy on both python and ts SDK

commit 1317c75
Author: destifo <[email protected]>
Date:   Tue Apr 16 08:59:54 2024 +0300

    fix: temp fix for npm package failure on git jobs

commit 30188dd
Merge: 8d8c2da bd29db4
Author: Estifanos Bireda <[email protected]>
Date:   Tue Apr 16 00:24:09 2024 +0300

    Merge branch 'MET-432--Uploading-`PythonRuntime`-files-' into upload/deno-runtime

commit bd29db4
Author: destifo <[email protected]>
Date:   Tue Apr 16 00:23:17 2024 +0300

    wip(MetaTest): deploy tg(python, ts) from metatest

commit 9a770a8
Author: destifo <[email protected]>
Date:   Mon Apr 15 22:52:56 2024 +0300

    fix(sdk): fix minor tg_artifact_upload python SDK bugs

commit 250cf2d
Author: destifo <[email protected]>
Date:   Mon Apr 15 08:52:57 2024 +0300

    chore: use type from types module

commit 8d8c2da
Merge: 80cef5f 6087ccb
Author: Estifanos Bireda <[email protected]>
Date:   Sun Apr 14 22:00:16 2024 +0300

    Merge branch 'MET-432--Uploading-`PythonRuntime`-files-' into upload/deno-runtime

commit 6087ccb
Author: destifo <[email protected]>
Date:   Sun Apr 14 20:34:55 2024 +0300

    chore: remove commented code

commit 80cef5f
Author: destifo <[email protected]>
Date:   Sun Apr 14 20:20:15 2024 +0300

    feat(SDK): add deps tracking deno runtime

commit 0445a4e
Author: destifo <[email protected]>
Date:   Sun Apr 14 16:16:25 2024 +0300

    Merge branch 'MET-432--Uploading--files-' into current

commit fa7f540
Author: destifo <[email protected]>
Date:   Sun Apr 14 14:29:07 2024 +0300

    chore: clean up

commit d760b34
Author: destifo <[email protected]>
Date:   Sun Apr 14 13:46:32 2024 +0300

    fix(tests): meta-cli test

commit 4e3c5bb
Author: destifo <[email protected]>
Date:   Sun Apr 14 11:33:27 2024 +0300

    chore(tests): add dep upload test python runtime

commit 95103c6
Merge: 351fcd3 b78fddd
Author: destifo <[email protected]>
Date:   Sat Apr 13 15:36:16 2024 +0300

    Merge 'upload/s3' into 'MET-432--Uploading--files-'

commit b78fddd
Author: destifo <[email protected]>
Date:   Sat Apr 13 01:28:53 2024 +0300

    fix(tests): remove breaking typgate.terminate() call inside test

commit 2642bf8
Author: destifo <[email protected]>
Date:   Sat Apr 13 00:40:41 2024 +0300

    fix(SDK): remove dangling import

commit 351fcd3
Author: destifo <[email protected]>
Date:   Sat Apr 13 00:32:56 2024 +0300

    chore(gate): change modname in python_wasi module

commit 855310f
Author: destifo <[email protected]>
Date:   Fri Apr 12 23:40:27 2024 +0300

    chore: address comments

commit 7944135
Author: destifo <[email protected]>
Date:   Fri Apr 12 17:52:52 2024 +0300

    chore: resolve python artifacts during python_wasi init

commit e123736
Merge: 85958d7 2752d4a
Author: Natoandro <[email protected]>
Date:   Fri Apr 12 13:40:10 2024 +0300

    Merge branch 'main' into upload/s3

commit a960ec6
Author: destifo <[email protected]>
Date:   Fri Apr 12 11:51:30 2024 +0300

    chore: add deps_meta to serialized tg

commit a308c9e
Author: destifo <[email protected]>
Date:   Fri Apr 12 01:58:38 2024 +0300

    feat(SDK): store deps inside meta.artifacts and include dep meta in python module

commit eb7390d
Author: destifo <[email protected]>
Date:   Fri Apr 12 01:27:31 2024 +0300

    refactor(sdk): refactor tg artifact upload

commit b01aa2e
Merge: ec70f26 85958d7
Author: destifo <[email protected]>
Date:   Thu Apr 11 22:22:33 2024 +0300

    Merge branch 'upload/s3' of https://github.com/metatypedev/metatype into MET-432--Uploading--files-

commit ec70f26
Author: destifo <[email protected]>
Date:   Thu Apr 11 15:31:23 2024 +0300

    feat(gate, sdk): restructure tg artifact upload & resolve python artifact path on gate side

commit 85958d7
Author: destifo <[email protected]>
Date:   Thu Apr 11 04:05:04 2024 +0300

    chore(test): add test for multiple typegate instances for wasmedge sync mode

commit d4b4b61
Merge: e88487c 1956485
Author: destifo <[email protected]>
Date:   Thu Apr 11 01:54:19 2024 +0300

    Merge branch 'upload/s3' of https://github.com/metatypedev/metatype into MET-432--Uploading--files-

commit 870f90c
Author: Natoandro <[email protected]>
Date:   Thu Apr 11 00:50:10 2024 +0300

    fix resource leak

commit 1956485
Merge: f21f6c4 5eb8738
Author: Natoandro <[email protected]>
Date:   Wed Apr 10 17:41:24 2024 +0300

    Merge branch 'local-npm-registry' into upload/s3

commit 5eb8738
Merge: ad64586 4dfeb55
Author: Natoandro <[email protected]>
Date:   Wed Apr 10 17:40:16 2024 +0300

    Merge branch 'main' into local-npm-registry

commit f21f6c4
Author: destifo <[email protected]>
Date:   Wed Apr 10 13:48:48 2024 +0300

    fix(test): redis redundant closing

commit 7863a72
Author: destifo <[email protected]>
Date:   Tue Apr 9 18:47:27 2024 +0300

    fix(tests): avoid creating link again during artifact resolution

commit e51099c
Merge: 77596e6 177b3b4
Author: destifo <[email protected]>
Date:   Tue Apr 9 11:20:49 2024 +0300

    Merge branch 'upload/s3' of https://github.com/metatypedev/metatype into upload/s3
    Merge branch 'upload/s3' of https://github.com/metatypedev/metatype into upload/s3

commit 77596e6
Author: destifo <[email protected]>
Date:   Tue Apr 9 11:17:58 2024 +0300

    fix(test): fix tests

commit 177b3b4
Merge: 1fc1c1f ad64586
Author: Natoandro <[email protected]>
Date:   Tue Apr 9 10:56:26 2024 +0300

    Merge branch 'local-npm-registry' into upload/s3

commit ad64586
Merge: 3c21c2b 24a1993
Author: Natoandro <[email protected]>
Date:   Tue Apr 9 10:56:01 2024 +0300

    Merge branch 'main' into local-npm-registry

commit 1fc1c1f
Author: destifo <[email protected]>
Date:   Tue Apr 9 10:18:25 2024 +0300

    chore: update snapshots

commit c0450ef
Merge: 1860d8f 24a1993
Author: destifo <[email protected]>
Date:   Tue Apr 9 09:46:38 2024 +0300

    Merge branch 'main' of https://github.com/metatypedev/metatype into upload/s3

commit 1860d8f
Author: destifo <[email protected]>
Date:   Tue Apr 9 09:42:16 2024 +0300

    chore: address comments

commit 21c8d3a
Author: destifo <[email protected]>
Date:   Mon Apr 8 22:43:01 2024 +0300

    feat(test): add multiple typegate instances option

commit b951ab4
Author: destifo <[email protected]>
Date:   Mon Apr 8 22:41:58 2024 +0300

    fix(tests): destroy s3 during close and close file

commit 9ffd44f
Author: destifo <[email protected]>
Date:   Mon Apr 8 15:51:58 2024 +0300

    chore: replace uploadUrls expiration queue with redis expiration set

commit 6d9d918
Author: destifo <[email protected]>
Date:   Mon Apr 8 10:11:27 2024 +0300

    chore: change expiration queue to redis

commit 2d3ac2c
Author: destifo <[email protected]>
Date:   Mon Apr 8 01:09:56 2024 +0300

    fix: fix tests

commit 638693e
Author: destifo <[email protected]>
Date:   Sun Apr 7 12:55:07 2024 +0300

    chore: await store init and set port on test

commit accfc63
Author: destifo <[email protected]>
Date:   Sat Apr 6 01:39:10 2024 +0300

    chore: address comments

commit 17651f0
Author: destifo <[email protected]>
Date:   Sat Apr 6 00:04:55 2024 +0300

    chore(test): add wasmedge test with sync config(s3)

commit ea9f1dc
Author: destifo <[email protected]>
Date:   Fri Apr 5 22:55:26 2024 +0300

    feat(gate): add shared artifact store

commit 4fb13fc
Merge: b17df8f 7033202
Author: Natoandro <[email protected]>
Date:   Thu Apr 4 23:09:42 2024 +0300

    Merge branch 'local-npm-registry' into upload/s3

commit 7033202
Merge: 3c21c2b 6248eef
Author: Natoandro <[email protected]>
Date:   Thu Apr 4 23:05:39 2024 +0300

    Merge branch 'main' into local-npm-registry

commit 3c21c2b
Author: Natoandro <[email protected]>
Date:   Thu Apr 4 22:51:46 2024 +0300

    Fix cache key in tests.yml workflow

commit f1f26ad
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 22:55:51 2024 +0300

    fix(ci): npm registry

commit 5cbc190
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 20:02:11 2024 +0300

    fix typo

commit ea76957
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 19:36:56 2024 +0300

    Update NPM registry URL in tests.yml

commit 7413c27
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 19:08:43 2024 +0300

    fix typo

commit 0a1f098
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 18:45:01 2024 +0300

    test(ci): publish to local npm repository

commit 0d8d46c
Merge: a4b9047 b48d719
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 11:41:25 2024 +0300

    Merge branch 'main' into local-npm-registry

commit b17df8f
Merge: 8747c37 a4b9047
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 10:57:00 2024 +0300

    Merge branch 'local-npm-registry' into upload/s3

commit a4b9047
Merge: 2bcd01b 1c6c8af
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 10:56:46 2024 +0300

    Merge branch 'main' into local-npm-registry

commit 8747c37
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 10:55:30 2024 +0300

    Remove console.log in wasmedge.ts

commit ed7cc96
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 03:22:02 2024 +0300

    Fix upload

commit bc339fd
Author: Natoandro <[email protected]>
Date:   Wed Apr 3 02:38:02 2024 +0300

    Update artifact spec

commit 5ad6a82
Merge: 60c96b6 2bcd01b
Author: Natoandro <[email protected]>
Date:   Mon Apr 1 11:23:10 2024 +0300

    Merge branch 'local-npm-registry' into upload/s3

commit 2bcd01b
Author: Natoandro <[email protected]>
Date:   Fri Mar 29 11:28:44 2024 +0300

    fix merge confusions

commit a91c5d2
Merge: 2bd5836 3f43eb3
Author: Natoandro <[email protected]>
Date:   Fri Mar 29 10:46:30 2024 +0300

    Merge branch 'main' into local-npm-registry

commit 2bd5836
Author: Natoandro <[email protected]>
Date:   Fri Mar 29 06:32:51 2024 +0300

    fix(ci): setup verdaccio for test-full gh workflow

commit bff7675
Author: Natoandro <[email protected]>
Date:   Thu Mar 28 22:31:25 2024 +0300

    fix: clean deno.lock

commit f010c9d
Merge: fc8deeb 7a6fd18
Author: Natoandro <[email protected]>
Date:   Thu Mar 28 15:36:42 2024 +0300

    Merge branch 'main' into local-npm-registry

commit fc8deeb
Author: Natoandro <[email protected]>
Date:   Thu Mar 28 15:29:01 2024 +0300

    fix tests

commit 2aee21f
Author: Natoandro <[email protected]>
Date:   Thu Mar 28 01:12:29 2024 +0300

    use verdaccio local npm registry

commit e88487c
Merge: b29845d 2a176ee
Author: destifo <[email protected]>
Date:   Wed Mar 27 10:18:24 2024 +0300

    Merge branch 'main' of https://github.com/metatypedev/metatype into MET-432--Uploading-`PythonRuntime`-files-

commit 60c96b6
Merge: be761e5 2a176ee
Author: Natoandro <[email protected]>
Date:   Tue Mar 26 20:14:18 2024 +0300

    Merge branch 'main' into upload/s3

commit b29845d
Author: destifo <[email protected]>
Date:   Tue Mar 26 11:27:50 2024 +0300

    fix: fix artifact and deps storage dir

commit be761e5
Merge: 4cc1d47 055b0fc
Author: Natoandro <[email protected]>
Date:   Tue Mar 26 10:57:28 2024 +0300

    Merge branch 'main' into upload/s3

commit 4cc1d47
Author: Natoandro <[email protected]>
Date:   Tue Mar 26 10:57:19 2024 +0300

    fix tests

commit b8489fa
Author: destifo <[email protected]>
Date:   Tue Mar 26 09:42:06 2024 +0300

    chore(sdk): resolve dep relative paths

commit 6049b89
Author: destifo <[email protected]>
Date:   Tue Mar 26 09:19:04 2024 +0300

    chore(sdk, test): finalize uploading artifacts and depedencies

commit fdb617d
Author: destifo <[email protected]>
Date:   Mon Mar 25 10:15:55 2024 +0300

    chore(test): add tg deployer through shell in meta test

commit e2cc245
Author: destifo <[email protected]>
Date:   Sun Mar 24 19:42:51 2024 +0300

    wip(sdk, gate): add dep uploader and refactorr artifact upload

commit 15cae1a
Author: Natoandro <[email protected]>
Date:   Sun Mar 24 06:13:35 2024 +0300

    test(sdk/core): Fix tests

commit 1d3ea75
Author: Natoandro <[email protected]>
Date:   Sat Mar 23 23:05:33 2024 +0300

    remove unnecessary comment

commit ba09f0a
Author: Natoandro <[email protected]>
Date:   Sat Mar 23 22:43:35 2024 +0300

    remove old artifact service

commit 381ac90
Author: Natoandro <[email protected]>
Date:   Sat Mar 23 22:34:11 2024 +0300

    feat: Artifact store

commit f8af661
Author: destifo <[email protected]>
Date:   Sat Mar 23 00:22:12 2024 +0300

    chore: replace upload protcol tldraw to drawio format

commit 51ec515
Author: destifo <[email protected]>
Date:   Sat Mar 23 00:16:43 2024 +0300

    wip: store artifact deps in global_store

commit 1488c88
Merge: 4b86ac5 630f506
Author: destifo <[email protected]>
Date:   Fri Mar 22 20:26:15 2024 +0300

    Merge branch 'main' of https://github.com/metatypedev/metatype into MET-432--Uploading-`PythonRuntime`-files-

commit 4b86ac5
Author: destifo <[email protected]>
Date:   Fri Mar 22 15:35:12 2024 +0300

    wip: store artifact deps in tg context

commit 0e34974
Author: destifo <[email protected]>
Date:   Fri Mar 22 10:02:08 2024 +0300

    chore: access tg name from params

commit 0bd23a8
Author: destifo <[email protected]>
Date:   Thu Mar 21 22:37:08 2024 +0300

    feat(sdk, gate): inital commit to uploading python_rt files

commit 3417d70
Author: destifo <[email protected]>
Date:   Thu Mar 21 09:23:32 2024 +0300

    chore: remove duplicate drawing

commit 0eb3350
Author: Estifanos Bireda <[email protected]>
Date:   Thu Mar 21 09:16:29 2024 +0300

    add upload protocol workflow diagram

    Signed-off-by: Estifanos Bireda <[email protected]>

commit 541fa05
Author: destifo <[email protected]>
Date:   Thu Mar 21 09:09:10 2024 +0300

    chore(docs): add workflow diagram for upload protocol

commit ac797d8
Author: destifo <[email protected]>
Date:   Thu Mar 21 00:21:49 2024 +0300

    chore: rename files to artifacts as per OCI nomenclature

commit 28c031a
Author: destifo <[email protected]>
Date:   Wed Mar 20 20:35:05 2024 +0300

    chore(gate): set artifact tmp_dir resolution

commit 7574301
Merge: 1d73e02 70b69d3
Author: Estifanos Bireda <[email protected]>
Date:   Wed Mar 20 11:10:44 2024 +0300

    Merge branch 'main' into MET-430--Upload-protocol-poc--uploading-wasm-file-for-WasmEdgeRuntime-for-single-replica-mode-

commit 1d73e02
Author: destifo <[email protected]>
Date:   Wed Mar 20 11:05:38 2024 +0300

    chore(job): revert deno dir changes

commit eb3167e
Author: destifo <[email protected]>
Date:   Wed Mar 20 10:52:25 2024 +0300

    fix(job): fix github job failing

commit b0df853
Author: destifo <[email protected]>
Date:   Wed Mar 20 10:49:55 2024 +0300

    fix(test): fix bindings_test.ts

commit 9c0b0ad
Author: destifo <[email protected]>
Date:   Wed Mar 20 10:35:38 2024 +0300

    chore(gate, sdk): upload artifacts before deploying typegraph

commit aaa83ab
Author: destifo <[email protected]>
Date:   Wed Mar 20 09:48:41 2024 +0300

    chore: address comments on reading file directly in wasmedge typegate engine and create artifact path on gate side:

commit 4fec426
Author: destifo <[email protected]>
Date:   Tue Mar 19 23:37:56 2024 +0300

    chore: remove unnecessary changes

commit 861fb53
Author: destifo <[email protected]>
Date:   Tue Mar 19 23:20:05 2024 +0300

    chore: address comments

commit 729d92b
Author: destifo <[email protected]>
Date:   Tue Mar 19 23:15:39 2024 +0300

    fix(test): fix tests after uppload protocol change

commit d035425
Author: destifo <[email protected]>
Date:   Tue Mar 19 23:14:08 2024 +0300

    chore(sdk, test): change file hash impl and modify wasmedge test

commit e635571
Author: destifo <[email protected]>
Date:   Tue Mar 19 08:47:57 2024 +0300

    feat(sdk, test): add ts wasmedge test, make wasmedge.wasi async in ts sdk

commit 8da52ca
Author: destifo <[email protected]>
Date:   Mon Mar 18 15:56:21 2024 +0300

    chore: update snapshots

commit cc34e31
Author: destifo <[email protected]>
Date:   Mon Mar 18 15:05:50 2024 +0300

    chore(sdk): update tg snapshot

commit 949d91d
Author: destifo <[email protected]>
Date:   Mon Mar 18 13:04:58 2024 +0300

    chore(typegraph_core): fix snapshot assert

commit 3cb34e1
Merge: 3d724f8 97caf65
Author: destifo <[email protected]>
Date:   Mon Mar 18 11:12:36 2024 +0300

    Merge branch 'main' of https://github.com/metatypedev/metatype into MET-430--Upload-protocol-poc--uploading-wasm-file-for-WasmEdgeRuntime-for-single-replica-mode-

commit 3d724f8
Author: destifo <[email protected]>
Date:   Mon Mar 18 10:40:52 2024 +0300

    chore(sdk): concat entry script path in wasm path

commit 51c20ad
Author: destifo <[email protected]>
Date:   Mon Mar 18 00:20:59 2024 +0300

    chore(test): add wasmedge ts test

commit 0809745
Author: destifo <[email protected]>
Date:   Mon Mar 18 00:04:59 2024 +0300

    feat(sdk): handle file upload in typescript sdk

commit 4d1e562
Author: destifo <[email protected]>
Date:   Sun Mar 17 23:00:18 2024 +0300

    chore(sdk): add referred files to returned values upon finalize_typegraph

commit a4a0350
Author: destifo <[email protected]>
Date:   Sun Mar 17 11:24:40 2024 +0300

    feat(gate): update prisma migrations and read wasm file in engine

commit e634bf5
Author: destifo <[email protected]>
Date:   Sun Mar 17 11:15:41 2024 +0300

    feat(core_sdk): remove reading file and replace with upload url

commit 0708bab
Author: destifo <[email protected]>
Date:   Sun Mar 17 11:13:10 2024 +0300

    feat(gate): sign upload url

commit 167216e
Author: destifo <[email protected]>
Date:   Thu Mar 14 14:48:36 2024 +0300

    feat(gate): change to open the artifacts from the typegate engine

commit 6768d49
Author: destifo <[email protected]>
Date:   Thu Mar 14 14:29:24 2024 +0300

    feat(gate): add cache to store used urls and add file upload at tg_deploy

commit 93d6632
Author: destifo <[email protected]>
Date:   Thu Mar 14 14:14:36 2024 +0300

    feat(sdk): add refereed files getter from the global store

commit bbc1bd2
Author: destifo <[email protected]>
Date:   Wed Mar 13 13:53:06 2024 +0300

    feat(gate): add getUploadUrl endpoint and one time endpoint to upload file

commit 2457db1
Author: destifo <[email protected]>
Date:   Wed Mar 13 13:48:59 2024 +0300

    chore(sdk, gate): add ref_files to tg.meta during tg conversion

commit 824cb6b
Author: destifo <[email protected]>
Date:   Wed Mar 13 13:39:09 2024 +0300

    chore(sdk): add hash compute function and field to store it

commit 8ade4c2
Author: afmika <[email protected]>
Date:   Thu Mar 14 20:26:09 2024 +0300

    fix: typegate.json

commit 461afc2
Merge: 77358f4 df54a39
Author: afmika <[email protected]>
Date:   Thu Mar 14 20:03:18 2024 +0300

    merge with main

commit 77358f4
Author: afmika <[email protected]>
Date:   Thu Mar 14 19:56:24 2024 +0300

    fix: rename query variable

commit 0cf18ed
Author: afmika <[email protected]>
Date:   Thu Mar 14 19:32:15 2024 +0300

    address comments

commit 716ec96
Author: afmika <[email protected]>
Date:   Thu Mar 14 18:30:19 2024 +0300

    fix: support multiple typegraph in a single file

commit 3c70162
Author: afmika <[email protected]>
Date:   Wed Mar 13 18:14:45 2024 +0300

    test(e2e): make sure test does not depend on the version + debug collected files on ci

commit 7b1aedc
Merge: 99c96ba 69c43ed
Author: afmika <[email protected]>
Date:   Wed Mar 13 13:45:07 2024 +0300

    Merge branch 'main' into sdk-long-running-discovery

commit 99c96ba
Author: afmika <[email protected]>
Date:   Wed Mar 13 13:38:20 2024 +0300

    feat(sdk): make config optional for the global postprocessor

commit b4eafae
Author: afmika <[email protected]>
Date:   Wed Mar 13 13:19:47 2024 +0300

    test(validation): delegate validation to sdk

commit 4a09550
Author: afmika <[email protected]>
Date:   Tue Mar 12 19:44:15 2024 +0300

    chore(cli/sdk): remove unused code

commit 1237202
Author: afmika <[email protected]>
Date:   Tue Mar 12 19:37:12 2024 +0300

    test(e2e): missing runtime name when removing a file

commit 80147d3
Author: afmika <[email protected]>
Date:   Tue Mar 12 18:26:10 2024 +0300

    fix(test): name clash + update self_deploy

commit d53cbb7
Author: afmika <[email protected]>
Date:   Tue Mar 12 17:34:04 2024 +0300

    fix(website): disable empty typegraph

commit 763d25a
Author: afmika <[email protected]>
Date:   Tue Mar 12 17:11:28 2024 +0300

    test(template): fix outdated sdks

commit b4fa6a3
Author: afmika <[email protected]>
Date:   Tue Mar 12 16:48:31 2024 +0300

    fix(cli): run the server on the appropriate command

commit 9aeecda
Author: afmika <[email protected]>
Date:   Tue Mar 12 16:34:34 2024 +0300

    feat(cli): remove duplicate action

commit c5dd5ea
Author: afmika <[email protected]>
Date:   Mon Mar 11 20:30:47 2024 +0300

    feat(sdk): multiple choices on failed migration

commit 332a629
Author: afmika <[email protected]>
Date:   Mon Mar 11 19:18:00 2024 +0300

    feat(sdk): allow MigrationAction to be configurable per runtime name

commit 57eb593
Merge: 0aaaf88 e0521ea
Author: afmika <[email protected]>
Date:   Mon Mar 11 15:23:51 2024 +0300

    Merge branch 'main' into sdk-long-running-discovery

commit 0aaaf88
Author: afmika <[email protected]>
Date:   Fri Mar 8 22:26:32 2024 +0300

    test(e2e): temporary disable dev migration test

commit 8c71fbe
Author: afmika <[email protected]>
Date:   Fri Mar 8 21:22:31 2024 +0300

    fix(cli): stdout out of order for Confirm

commit e520c40
Author: afmika <[email protected]>
Date:   Fri Mar 8 21:07:09 2024 +0300

    feat(cli): migration failure on nullconstraint (wip)

commit 31d224c
Author: afmika <[email protected]>
Date:   Fri Mar 8 18:00:26 2024 +0300

    feat(cli): database reset live interaction

commit 41a6678
Author: afmika <[email protected]>
Date:   Fri Mar 8 17:25:02 2024 +0300

    fix(sdk/python): migration not considered

commit 542d976
Author: afmika <[email protected]>
Date:   Fri Mar 8 16:26:58 2024 +0300

    fix(sdk): never decide on a default migration path on sdk

commit d6222ba
Author: afmika <[email protected]>
Date:   Thu Mar 7 19:15:14 2024 +0300

    feat(cli): database reset interactive (wip)

commit efe5a6e
Author: afmika <[email protected]>
Date:   Thu Mar 7 16:52:44 2024 +0300

    fix(cli): run server only on specific commands

commit b8e90dd
Author: afmika <[email protected]>
Date:   Wed Mar 6 19:43:10 2024 +0300

    fix(cli): increase payload size

commit 67909f6
Author: afmika <[email protected]>
Date:   Wed Mar 6 19:13:28 2024 +0300

    fix(sdk): cover empty list edgecase

commit 4e1a774
Author: afmika <[email protected]>
Date:   Wed Mar 6 19:02:47 2024 +0300

    test(cli): disable codegen

commit 7b096a4
Author: afmika <[email protected]>
Date:   Wed Mar 6 18:54:11 2024 +0300

    fix(sdk): tarball yields wrong rel. path when sdk is spawn from another process

commit bd26328
Merge: cf5c919 1cb26cf
Author: afmika <[email protected]>
Date:   Wed Mar 6 14:23:17 2024 +0300

    fix conflicts

commit cf5c919
Author: afmika <[email protected]>
Date:   Tue Mar 5 20:03:58 2024 +0300

    fix(cli): dir => root typegraph, migration paths => relative to dir

commit a3ce96c
Author: afmika <[email protected]>
Date:   Tue Mar 5 19:20:26 2024 +0300

    fix(sdk/python/e2e): circular imports

commit a08b48d
Author: afmika <[email protected]>
Date:   Tue Mar 5 18:14:07 2024 +0300

    feat(sdk/python): deploy

commit db4d4f3
Author: afmika <[email protected]>
Date:   Tue Mar 5 17:54:21 2024 +0300

    feat(sdk/python): serialize

commit bef5e19
Author: afmika <[email protected]>
Date:   Tue Mar 5 13:07:32 2024 +0300

    fix(cli): unreachable loader event when no files are provided

commit bd648e5
Author: afmika <[email protected]>
Date:   Mon Mar 4 19:31:43 2024 +0300

    fix(sdk): always sync target version

commit c2ec8ad
Author: afmika <[email protected]>
Date:   Mon Mar 4 19:27:11 2024 +0300

    fix(cli): cover missed events

commit ef72b48
Author: afmika <[email protected]>
Date:   Mon Mar 4 19:20:36 2024 +0300

    feat(sdk/sdk): python client

commit f45e67b
Author: afmika <[email protected]>
Date:   Mon Mar 4 17:50:10 2024 +0300

    fix(cli): forced panic in default mode

commit b560612
Author: afmika <[email protected]>
Date:   Mon Mar 4 17:43:15 2024 +0300

    feat(cli): retry on failure

commit 63af3fe
Author: afmika <[email protected]>
Date:   Sat Mar 2 00:21:25 2024 +0300

    feat(cli): basic retry on failure

commit 15fb9a8
Merge: 5223352 c8f89ae
Author: afmika <[email protected]>
Date:   Fri Mar 1 14:26:48 2024 +0300

    Merge branch 'main' into sdk-long-running-discovery

commit 5223352
Author: afmika <[email protected]>
Date:   Thu Feb 29 20:15:10 2024 +0300

    fix(cli): bind directly from pre-allocated tcplistener

commit 363028d
Author: afmika <[email protected]>
Date:   Thu Feb 29 19:29:53 2024 +0300

    fix(cli): retry bug (wip)

commit bb80840
Author: afmika <[email protected]>
Date:   Thu Feb 29 17:38:03 2024 +0300

    feat(cli/sdk): set prefix when the typegraph is loaded

commit 11225de
Author: afmika <[email protected]>
Date:   Wed Feb 28 19:08:30 2024 +0300

    chore(examples): rm debug line

commit 9fd97a8
Author: afmika <[email protected]>
Date:   Wed Feb 28 19:04:31 2024 +0300

    feat(sdk): rework deploy command with new scheme

commit 0e920dd
Merge: 71c5403 169e5f4
Author: afmika <[email protected]>
Date:   Wed Feb 28 17:49:45 2024 +0300

    fix conflicts

commit 71c5403
Author: afmika <[email protected]>
Date:   Wed Feb 28 17:40:27 2024 +0300

    chore: remove unwanted file

commit e6713df
Author: afmika <[email protected]>
Date:   Wed Feb 28 17:39:11 2024 +0300

    fix(cli): loader event not firing when serialize

commit f3da37b
Author: afmika <[email protected]>
Date:   Wed Feb 28 16:40:50 2024 +0300

    feat(cli): deploy without migration

commit cf5dab6
Author: afmika <[email protected]>
Date:   Wed Feb 28 16:08:36 2024 +0300

    fix(cli): pass value

commit fe50df8
Author: afmika <[email protected]>
Date:   Wed Feb 28 16:07:37 2024 +0300

    feat(cli/sdk): id by path scheme + pass migration flags

commit 7c7e974
Author: afmika <[email protected]>
Date:   Tue Feb 27 21:29:29 2024 +0300

    feat(cli/sdk): store response

commit a0a0051
Author: afmika <[email protected]>
Date:   Tue Feb 27 19:07:15 2024 +0300

    feat(cli): deploy (wip)

commit ea704d8
Author: afmika <[email protected]>
Date:   Tue Feb 27 12:49:36 2024 +0300

    feat(cli): prepare deploy

commit bf7cd7d
Author: afmika <[email protected]>
Date:   Mon Feb 26 21:36:47 2024 +0300

    feat(cli): prepare undeploy

commit 6b6278e
Author: afmika <[email protected]>
Date:   Mon Feb 26 20:37:52 2024 +0300

    feat(sdk): undeploy

commit f5fc024
Author: afmika <[email protected]>
Date:   Mon Feb 26 18:48:14 2024 +0300

    fix(cli): conflicting ports

commit 8445a0b
Author: afmika <[email protected]>
Date:   Fri Feb 23 19:24:32 2024 +0300

    fix(examples): add top level await

commit 0513a19
Author: afmika <[email protected]>
Date:   Fri Feb 23 19:00:04 2024 +0300

    feat(sdk): print serialized version

commit 5aefdcd
Author: afmika <[email protected]>
Date:   Fri Feb 23 18:36:43 2024 +0300

    feat(sdk): serialize (wip)

commit d6c5bc7
Author: afmika <[email protected]>
Date:   Fri Feb 23 17:04:20 2024 +0300

    fix(cli): threads pointing to different mem loc

commit f8fddd6
Merge: 7721c70 bbf0b95
Author: afmika <[email protected]>
Date:   Fri Feb 23 15:55:02 2024 +0300

    Merge branch 'main' into sdk-long-running-discovery

commit 7721c70
Author: afmika <[email protected]>
Date:   Thu Feb 22 20:01:37 2024 +0300

    feat(sdk): serialization (wip)

commit ddc5796
Author: afmika <[email protected]>
Date:   Wed Feb 21 19:58:05 2024 +0300

    feat(sdk): change finalization logic + serialization (wip)

commit 0585964
Merge: 3bbc840 961fab5
Author: afmika <[email protected]>
Date:   Tue Feb 20 12:42:24 2024 +0300

    Merge branch 'main' into sdk-long-running-discovery

commit 3bbc840
Author: afmika <[email protected]>
Date:   Mon Feb 19 19:51:55 2024 +0300

    feat(sdk): change finalization logic (wip)

commit b69003e
Merge: abef816 966ff1a
Author: afmika <[email protected]>
Date:   Mon Feb 19 12:01:21 2024 +0300

    Merge branch 'main' into sdk-long-running-discovery

commit abef816
Author: afmika <[email protected]>
Date:   Fri Feb 16 19:06:57 2024 +0300

    feat(sdk): prepare client (wip)

commit ef634b9
Merge: 410d202 0461df1
Author: afmika <[email protected]>
Date:   Fri Feb 16 17:01:02 2024 +0300

    fix: merge conflict

commit 410d202
Merge: 8156bf7 3ff31ae
Author: afmika <[email protected]>
Date:   Fri Feb 16 16:09:29 2024 +0300

    Merge branch 'main' into sdk-long-running-discovery

commit 8156bf7
Author: afmika <[email protected]>
Date:   Wed Feb 14 17:46:03 2024 +0300

    refactor(cli/sdk): move all preps to sdk (wip)
@destifo destifo self-assigned this Apr 28, 2024
Base automatically changed from upload/deno-runtime to main April 29, 2024 15:30
@destifo destifo marked this pull request as ready for review April 30, 2024 18:05
@destifo
Copy link
Contributor Author

destifo commented May 5, 2024

@CodiumAI-Agent /review

@CodiumAI-Agent
Copy link

PR Review 🔍

⏱️ Estimated effort to review [1-5]

4, due to the extensive changes across multiple files and languages, including TypeScript and Python, which involve complex features like glob pattern handling and directory management in dependency resolution. The PR also modifies core utility functions and introduces new test cases, requiring careful consideration of both functionality and potential side effects.

🧪 Relevant tests

No

⚡ Possible issues

Possible Bug: The use of is_glob function in fs_host.rs might not correctly handle edge cases where file names contain characters that resemble glob patterns but are not intended as such. This could lead to incorrect file handling.

Performance Concern: The get_matching_files function in fs_host.rs could potentially lead to performance issues if the directory contains a large number of files or if the glob pattern is complex, as it iterates over all files and checks each one against the glob pattern.

🔒 Security concerns

No

Code feedback:
relevant filetypegraph/core/src/utils/fs_host.rs
suggestion      

Consider optimizing the get_matching_files function by using more efficient glob matching libraries or algorithms that can handle large datasets more efficiently. This change is important to ensure that the function scales well with larger directories and more complex glob patterns. [important]

relevant linepub fn get_matching_files(glob_pattern: &str) -> Result, String> {

relevant filetypegraph/core/src/utils/fs_host.rs
suggestion      

Implement additional checks or a more robust pattern matching mechanism in the is_glob function to accurately determine if a string is a glob pattern. This will prevent potential bugs related to misinterpretation of file names as glob patterns. [important]

relevant linepub fn is_glob(path: &str) -> bool {

relevant filetypegraph/core/src/utils/postprocess/deno_rt.rs
suggestion      

Ensure that error handling is robust in resolve_globs_dirs to manage cases where glob patterns do not match any files or directories, preventing runtime panics or unhandled exceptions. [important]

relevant linelet resolved_deps = resolve_globs_dirs(deps)?;

relevant filetypegraph/core/src/utils/postprocess/python_rt.rs
suggestion      

Similar to the Deno runtime, add comprehensive error handling around the use of resolve_globs_dirs in the Python runtime to gracefully handle errors and provide meaningful error messages to the user. [important]

relevant linelet resolved_deps = resolve_globs_dirs(deps)?;

Copy link
Contributor

coderabbitai bot commented May 6, 2024

Walkthrough

The changes introduce new functionality and modifications across multiple files to support Deno and Python runtimes in the Typegraph framework. This includes adding new test files, modifying test coverage reporting, and updating dependency management. Additionally, significant updates have been made to utility functions and the core processing logic to handle glob patterns and directory resolutions for dependencies.

Changes

File Path Change Summary
.ghjk/lock.json Changed platform from "x86_64-linux" to "aarch64-darwin" and removed a specific entry.
.github/workflows/tests.yml Added a new test file for Deno runtime coverage reporting.
typegate/tests/runtimes/deno/deno_dep.ts Introduced functionality for defining a Deno runtime dependency graph for addition operations.
typegate/tests/runtimes/deno/deno_globs.py Introduced functionality for defining and deploying a Typegraph for Deno runtime.
typegate/tests/runtimes/deno/deno_test.ts Commented out and removed significant portions of code related to Deno runtime test cases.
typegate/tests/runtimes/python/python_globs.ts Introduced functionality for defining and exposing Python functions using TypeGraph.
typegate/tests/utils/test.ts Modified serve function, updated MetaTest class, and added logging for serialized data.
typegraph/core/Cargo.toml Added glob = "0.3" dependency.
typegraph/core/src/utils/fs_host.rs Added functions for handling glob patterns and directory resolutions.
typegraph/core/src/utils/postprocess/deno_rt.rs Updated DenoProcessor to handle glob and directory resolutions for dependencies.
typegraph/core/src/utils/postprocess/python_rt.rs Updated dependency resolution logic to use resolve_globs_dirs.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to full the review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

coderabbitai[bot]
coderabbitai bot previously requested changes May 6, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Review Details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits Files that changed from the base of the PR and between 5cc7729 and 0208e04.
Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
Files selected for processing (11)
  • .ghjk/lock.json (3 hunks)
  • .github/workflows/tests.yml (1 hunks)
  • typegate/tests/runtimes/deno/deno_dep.ts (1 hunks)
  • typegate/tests/runtimes/deno/deno_globs.py (1 hunks)
  • typegate/tests/runtimes/deno/deno_test.ts (3 hunks)
  • typegate/tests/runtimes/python_wasi/python_globs.ts (1 hunks)
  • typegate/tests/utils/test.ts (4 hunks)
  • typegraph/core/Cargo.toml (1 hunks)
  • typegraph/core/src/utils/fs_host.rs (3 hunks)
  • typegraph/core/src/utils/postprocess/deno_rt.rs (3 hunks)
  • typegraph/core/src/utils/postprocess/python_rt.rs (2 hunks)
Files skipped from review due to trivial changes (3)
  • .ghjk/lock.json
  • .github/workflows/tests.yml
  • typegraph/core/Cargo.toml
Additional comments not posted (8)
typegate/tests/runtimes/python_wasi/python_globs.ts (1)

12-32: Ensure the deps arrays in test_glob and test_dir correctly handle globs and directories as intended by the PR.

Verification successful

The verification process did not find the exact string 'deps: ["py/*.py", "py"]' in the file python_globs.ts. However, based on the provided code snippet, the deps arrays are used as follows:

  • test_glob uses deps: ["py/*.py"] to specify a glob pattern.
  • test_dir uses deps: ["py"] to specify a directory.

This matches the intended functionality as described in the review comment, where test_glob should handle a glob pattern and test_dir should handle a directory. Therefore, it appears that the deps arrays are correctly handling globs and directories as intended by the PR.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Description: Verify that the `deps` arrays in `test_glob` and `test_dir` correctly handle globs and directories.

# Test: Search for the `deps` array usage. Expect: Correct handling of globs and directories.
rg --type python $'deps: \["py/\*\.py", "py"\]'

Length of output: 79



Script:

#!/bin/bash
# Description: Verify that the `deps` arrays in `test_glob` and `test_dir` correctly handle globs and directories in the TypeScript file.

# Test: Search for the `deps` array usage in the TypeScript file. Expect: Correct handling of globs and directories.
rg 'deps: \["py/\*\.py", "py"\]' typegate/tests/runtimes/python_wasi/python_globs.ts

Length of output: 86

typegate/tests/runtimes/deno/deno_globs.py (1)

18-39: Ensure the deps arrays in test_glob and test_dir correctly handle globs and directories as intended by the PR.

typegraph/core/src/utils/postprocess/python_rt.rs (1)

45-47: Ensure the resolve_globs_dirs function is used correctly to handle dependencies in the Python runtime.

typegraph/core/src/utils/postprocess/deno_rt.rs (1)

87-89: Ensure the resolve_globs_dirs function is used correctly to handle dependencies in the Deno runtime.

typegraph/core/src/utils/fs_host.rs (2)

238-254: Ensure the get_matching_files function correctly handles glob patterns as intended by the PR.


256-279: Ensure the resolve_globs_dirs function correctly resolves dependencies specified as globs or directories.

typegate/tests/runtimes/deno/deno_test.ts (1)

150-150: Ensure the new test for local imports is correctly implemented and integrates with the changes made in the Deno runtime.

typegate/tests/utils/test.ts (1)

191-193: Ensure the new method for deploying and testing typegraphs is correctly implemented and integrates with the changes made in the SDK.

Yohe-Am
Yohe-Am previously approved these changes May 7, 2024
Copy link
Contributor

@michael-0acf4 michael-0acf4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, can't wait for this to be merged!

@destifo destifo changed the base branch from main to meta-test/engine May 24, 2024 23:41
Base automatically changed from meta-test/engine to main May 25, 2024 19:42
Copy link

codecov bot commented May 27, 2024

Codecov Report

Attention: Patch coverage is 15.38462% with 33 lines in your changes are missing coverage. Please review.

Project coverage is 73.00%. Comparing base (8bf253b) to head (32278cf).

Files Patch % Lines
typegate/tests/utils/s3.ts 2.94% 33 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #698      +/-   ##
==========================================
- Coverage   73.14%   73.00%   -0.15%     
==========================================
  Files         117      117              
  Lines       14141    14171      +30     
  Branches     1415     1415              
==========================================
+ Hits        10343    10345       +2     
- Misses       3771     3799      +28     
  Partials       27       27              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@destifo destifo requested a review from coderabbitai[bot] May 27, 2024 22:00
@destifo destifo dismissed coderabbitai[bot]’s stale review May 27, 2024 22:32

requested for review again and not working.

@destifo destifo enabled auto-merge (squash) May 28, 2024 05:52
@destifo destifo merged commit 01d5b1a into main May 28, 2024
12 checks passed
@destifo destifo deleted the upload/globs-and-dirs branch May 28, 2024 07:03
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.

6 participants