Skip to content
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

[components] Deployment directory doc #27360

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

smackesey
Copy link
Collaborator

@smackesey smackesey commented Jan 24, 2025

Summary & Motivation

New doc that shows how to create a multi-code-location deployment directory with dg and demonstrates the separation of environments between code locations.

How I Tested These Changes

Manually went through the demonstrated flow.

Copy link
Collaborator Author

smackesey commented Jan 24, 2025

@smackesey smackesey marked this pull request as ready for review January 24, 2025 18:14
@smackesey smackesey requested a review from neverett as a code owner January 24, 2025 18:14
@smackesey smackesey requested a review from schrockn January 24, 2025 18:14
```

This is the default set of component types available in every new code
location. We can add to it by installing `dagster-components[dbt]`:
Copy link

Choose a reason for hiding this comment

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

There appears to be a mismatch between the text and the example command. The text mentions installing dagster-components[dbt], but the subsequent command shows dagster-components[sling]. Consider updating the text to match the actual package being installed.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

@@ -0,0 +1,152 @@
---
title: "Adding a component to a project"
Copy link

Choose a reason for hiding this comment

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

The document title "Adding a component to a project" doesn't accurately reflect the content, which focuses on creating and managing deployment directories with multiple code locations. A more fitting title would be "Setting up a deployment directory" to help readers quickly understand the document's purpose.

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

Copy link

github-actions bot commented Jan 24, 2025

Deploy preview for dagster-docs ready!

Preview available at https://dagster-docs-8is3ryz8r-elementl.vercel.app

Direct link to changed pages:

@smackesey smackesey force-pushed the sean/components/deployment-doc branch from 0c327da to d95ef28 Compare January 24, 2025 18:20
Base automatically changed from sean/components/rm-dagster-cloud-yaml to master January 24, 2025 18:22
@smackesey smackesey force-pushed the sean/components/deployment-doc branch 2 times, most recently from e398562 to 1d7d0ff Compare January 24, 2025 20:49
### pyproject.toml

[tool.dg]
is_deployment = true
Copy link
Member

Choose a reason for hiding this comment

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

recommend making this a type or enum to future proof

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Making what an enum exactly? The values of all config params are checked at load time

Copy link
Member

Choose a reason for hiding this comment

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

Meaning that I don't think we should have a is_deployment=true flag in here and instead of project_type= or something

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Problem with that is there are currently three is_* flags you can set and two of them can coexist:

  • is_deployment
  • is_code_location
  • is_component_lib

is_component_lib and is_code_location can coexist.

Comment on lines +93 to +97
$ cd code_locations/code-location-1 && dg component-type list

dagster_components.definitions
dagster_components.pipes_subprocess_script_collection
Assets that wrap Python scripts executed with Dagster's PipesSubprocessClient.
Copy link
Member

Choose a reason for hiding this comment

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

we definitely need to improve this output :-) cc: @benpankow

Copy link
Collaborator Author

Choose a reason for hiding this comment

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


As you can see, we are back to only the default list of component types. This
is because we are now using the environment of `code-location-2`, in which we
have not installed `dagster-components[sling]`.
Copy link
Member

Choose a reason for hiding this comment

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

demonstrate a final command of running dagster dev and having it run the two code servers

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added

### pyproject.toml

[tool.dg]
is_deployment = true
Copy link
Member

Choose a reason for hiding this comment

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

Meaning that I don't think we should have a is_deployment=true flag in here and instead of project_type= or something

@smackesey smackesey force-pushed the sean/components/deployment-doc branch from 1d7d0ff to 66eda58 Compare January 24, 2025 22:33
@smackesey smackesey requested a review from schrockn January 24, 2025 22:33
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.

2 participants