Skip to content

WIP Zenith Implementation - #5443

Closed
sipsma wants to merge 117 commits into
dagger:mainfrom
sipsma:zenith
Closed

sipsma wants to merge 117 commits into
dagger:mainfrom
sipsma:zenith

Conversation

@sipsma

@sipsma sipsma commented Jul 11, 2023 •

Copy link
Copy Markdown
Contributor

Highly WIP, but have some basics functioning on top of the re-architecture PR.

Working basics:

  1. Invoking environment commands, including local dir import/export. Examples:
    • ./hack/dev ./bin/dagger do -e ./universe/dagger --output /tmp/testout cli
    • ./hack/dev ./bin/dagger do -e ./universe/dagger lint
  2. Invoking environment checks. Examples (the output needs some TLC):
    • Listing checks: ./hack/dev ./bin/dagger check list -e ./universe/dagger
    • Passing check: ./hack/dev ./bin/dagger check -e ./universe/dagger python-lint
    • Failing check (warning: there is a ton of output): ./hack/dev ./bin/dagger check -e ./universe/dagger engine-lint
  3. "type-unsafe" API for invocation (i.e. dagger env calls out to the go-sdk env to lint)
  4. Loading environments both from Directory and from "universe"
  5. The new "environment builder" API (only in Go so far, also needs some really obvious cleanups still like fixing WithCommand_ 😁)

Lots of TODOs and cleanups needed, major ones that immediately come to mind:

  1. Update internal SDK developer docs for new requirements so we can start working on updating them for the modifications to how environment runtimes are invoked
    • Fortunately, this is largely just a simplification; more work is done server side so SDKs have less to do.
  2. Reconcile the API/CLI/etc. w/ the other proposals (here and here)
  3. Implement namespacing of loaded environment resolvers (still just putting everything under Query atm)
  4. (related to above) Support for WithExtension
  5. Merge the re-arch PR, rebase this one on main
    • I also made some small fixes + improvements in this PR that should be backported to that one

There's obviously no way that this PR will include all of Zenith's implementation of course, I think goal should probably be to have a solid+clean implementation of just Tool entrypoints (currently still named Command in this PR), with the foundation laid for the other types as follow-ups.

@sipsma
sipsma requested review from shykes and vito July 11, 2023 18:45
@sipsma
sipsma force-pushed the zenith branch 3 times, most recently from 5150ca0 to 8d38eb0 Compare July 12, 2023 18:39
Comment thread engine/client/client.go Resolved
@sipsma
sipsma force-pushed the zenith branch 2 times, most recently from ea0d2de to b73bfa1 Compare July 14, 2023 00:50
@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@sipsma

sipsma commented Aug 1, 2023

Copy link
Copy Markdown
Contributor Author

Pivoting back here now, gonna start w/ rebasing on #5415 since that's in a solid place now

@sipsma
sipsma force-pushed the zenith branch 2 times, most recently from 587beab to 3de7d56 Compare August 4, 2023 17:22
sipsma and others added 13 commits August 7, 2023 09:27
Signed-off-by: Erik Sipsma <[email protected]>
* check list => checks
* check run => check
* artifact list => artifacts
* artifact get => export

Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
mostly aligning with dagger check

Signed-off-by: Alex Suraci <[email protected]>
These are currently native Go code, only usable by the Go SDK. In the
future they'll turn into extensions, and should have a similar codegen
API.

Signed-off-by: Alex Suraci <[email protected]>
was seeing trailing linebreaks end up in 'dagger check list'

Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Erik Sipsma <[email protected]>
vito and others added 18 commits August 17, 2023 20:38
also tweak shell init order / zoom setup

Signed-off-by: Alex Suraci <[email protected]>
This is up to the user to decide. Now that Progrock's focus-mode UI
shows all progress including a line of output in the status bar, it's
not as necessary.

Signed-off-by: Alex Suraci <[email protected]>
* cleaner, synchronous callback-based API
* back to interactive support (scrolling DAG view), even for
  shell/interactive things; it magically switches where user input gets
  sent to as zoomed vertices appear and disappear

Signed-off-by: Alex Suraci <[email protected]>
a bit hacky, will clean up

Signed-off-by: Alex Suraci <[email protected]>
don't need context.Context everywhere

Signed-off-by: Alex Suraci <[email protected]>
we expect them in check, but everywhere else tends to hide bootstrapping
issues. a --reveal-errors flag is also added to check for
troubleshooting. (could maybe just be collapsed into --debug.)

Signed-off-by: Alex Suraci <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
NOTE: this was basically redone since the original patch didn't apply at
all

Signed-off-by: Marcos Lilljedahl <[email protected]>
Signed-off-by: Alex Suraci <[email protected]>
@shykes

shykes commented Aug 31, 2023

Copy link
Copy Markdown
Contributor

I took the liberty of reconciling the README in this branch with the one in main.

  • Zenith README is now in zenith/README.md
  • Zenith examples are in zenith/EXAMPLES.md

@github-actions

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions

github-actions Bot commented Oct 1, 2023

Copy link
Copy Markdown
Contributor

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@sipsma

sipsma commented Oct 2, 2023

Copy link
Copy Markdown
Contributor Author

This should have been closed a while back, current iteration can be found here: #5757

@sipsma sipsma closed this Oct 2, 2023
@frenchi frenchi mentioned this pull request Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants