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] Better error message for failing entry points (BUILD-647) #27530

Draft
wants to merge 1 commit into
base: graphite-base/27530
Choose a base branch
from

Conversation

smackesey
Copy link
Collaborator

@smackesey smackesey commented Feb 4, 2025

Summary & Motivation

Currently if there is an error when loading a dagster-components entry point, the whole process terminates unceremoniously with an ugly error.

This PR changes this behavior:

Entry points are loaded in a try-catch block. Any error loading an entry point causes a warning to be written to stdout about the failing entry point, and the entry point to be passed over so that the whole system doesn't blow up. The warning shows up in the dg output.

How I Tested These Changes

New unit test and manually (running dg component-type list in an env with a bad entry point).

Copy link
Collaborator Author

smackesey commented Feb 4, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@smackesey smackesey changed the title [components] Better error message for failing entry points [components] Better error message for failing entry points (BUILD-647) Feb 4, 2025
@smackesey smackesey changed the base branch from sean/components/windows/missing-component-error-message to graphite-base/27530 February 6, 2025 22:37
@smackesey smackesey force-pushed the windows/components/entry-point-error branch from 0fbef2d to 95bbc0b Compare February 10, 2025 16:52
@smackesey smackesey changed the base branch from graphite-base/27530 to sean/components/component-type-list-json February 10, 2025 16:52
@smackesey smackesey force-pushed the sean/components/component-type-list-json branch from 8562f12 to e8529a0 Compare February 12, 2025 13:37
@smackesey smackesey force-pushed the windows/components/entry-point-error branch from 95bbc0b to a003820 Compare February 12, 2025 13:37
@smackesey smackesey changed the base branch from sean/components/component-type-list-json to graphite-base/27530 February 13, 2025 14:08
@smackesey smackesey force-pushed the windows/components/entry-point-error branch from a003820 to 588c249 Compare February 13, 2025 14:11
@smackesey smackesey force-pushed the windows/components/entry-point-error branch from 588c249 to 0f097b6 Compare February 13, 2025 14:39
@smackesey smackesey force-pushed the windows/components/entry-point-error branch from 0f097b6 to a289baa Compare February 13, 2025 16:09
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.

1 participant