Repository navigation
Conversation
f440a76 to
d22704d
Compare
b24e812 to
fe12f0a
Compare
sipsma
left a comment
There was a problem hiding this comment.
Looks really great, thanks for putting this together so quickly! Have a couple minor comments/questions, but really the only thing I think we should do before merging is add some integ tests for what's working so far.
I added a bunch of test utils recently, you can see the latest in this PR: https://github.com/dagger/dagger/pull/5308/files#diff-b6e594474025769dd7b1a4bfbeb8b43ab3a26b34796bb76f76be91a0cbbd410d
I'm hoping to get that merged soon, but in the meantime you can rebase on top of that one or just write the tests separately, whatever you prefer.
There was a problem hiding this comment.
This is totally fine, but I'm curious if you think every start script users write will be exactly this? If so, could we just put node --loader ts-node/esm ./main.mts in the typescript runtime on this line?
There was a problem hiding this comment.
It could be this or something else, by using the script start, we let the user choose how to start the ci.
This way, he may rename his file ci.ts or ci.mts or use a different loader or anything. What we actually need is to launch the script, we can let the user define its own way.
There was a problem hiding this comment.
Do you think we need to get every file in the dir here, or can we just provide the file that has the serveCommands call (which should be in the callstack of this function)?
My guess was that program.getSourceFiles would then handle visiting every file imported by that one, but could be wrong.
Not a big deal, just a potential small simplification I am curious about.
There was a problem hiding this comment.
That's a great question, I didn't try but since typescript.createProgram expect an array of every files to instrospect.
I assumed it worked the same way as the include in tsconfig.json which require every files involved (even these from node_modules).
I can try to just use the main file and see if it works, we can check this in a follow up to simplify the code.
Nice! I might add more tests in a further PR then! |
96fd2e5 to
bc83a08
Compare
|
There's a lot of unrelated commits here, I assume you did a merge from main instead of rebase. Can you fix that? |
|
I'll, my bad! |
bc83a08 to
ac50801
Compare
82b15ce to
927d7d0
Compare
|
@sipsma Waiting for your approval to merge :) |
sipsma
left a comment
There was a problem hiding this comment.
LGTM! I just merged the CLI PR, which includes the updates to the integ test tooling you may want here: #5308
I do think it's extremely important to get test coverage for TS in there ASAP. You can see what @helderco is doing with integrating python here for a good example on how to approach this: #5300
However, no need for that to be in this PR if you'd prefer a follow up.
6f3a820 to
7cdb7cf
Compare
1a81c36 to
546a042
Compare
Signed-off-by: Tom Chauveau <[email protected]>
546a042 to
125ff3e
Compare
Signed-off-by: Tom Chauveau <[email protected]>
Signed-off-by: Tom Chauveau <[email protected]>
Signed-off-by: Vasek - Tom C <[email protected]>
Signed-off-by: Vasek - Tom C <[email protected]>
Signed-off-by: Vasek - Tom C <[email protected]>
Signed-off-by: Vasek - Tom C <[email protected]>
Signed-off-by: Vasek - Tom C <[email protected]>
Signed-off-by: Vasek - Tom C <[email protected]>
Signed-off-by: Vasek - Tom C <[email protected]>
6cadd59 to
f88603b
Compare
|
Ok it seems that dependencies installation is a bit messed up with npm but it works well with |
Signed-off-by: Vasek - Tom C <[email protected]>
|
@sipsma It seems the test Do you have any idea of what we could do to be consistent between all tests? |
|
What would help move this one along? |
|
Closing this PR for now since Zenith include too much breaking change that invalidate this PR. |
Handle dagger do with string arguments.
Split code into multiples files and function.
Add local import and test documentation.
Fixes DAG-1423