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

Entity scan on non-existing data model package silences error #3197

Merged
merged 8 commits into from
Apr 20, 2024

Conversation

Doom9527
Copy link
Contributor

@Doom9527 Doom9527 commented Apr 4, 2024

Resolves #3144

Description

This PR primarily addresses the scenario where Elide is configured with a non-existent data model package. With the updated implementation, Elide now fails to start gracefully and throws a runtime exception when encountering an invalid data model package during scanning.

Motivation and Context

In the Standalone or other projects which import Elide, the getAnnotatedClasses of the DefaultClassScanner under the Elide is called to scan the package. I add a judgment on the Set, and throw an exception if it is empty.

How Has This Been Tested?

If a non-existent package name is provided, an exception is thrown as expected.

License

I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@Doom9527 Doom9527 force-pushed the issue-3144-fix branch 2 times, most recently from 0b1dd9a to 45d7c4c Compare April 8, 2024 07:15
Solved some problems.
.github/workflows/ci-cd.yml Outdated Show resolved Hide resolved
screwdriver.yaml Outdated Show resolved Hide resolved
Copy link
Member

@aklish aklish left a comment

Choose a reason for hiding this comment

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

Code looks good and will approve when screwdriver yaml is added back and github workflows (which are not free) are removed.

@Doom9527
Copy link
Contributor Author

Yes, I have added screwdriver yaml back and removed github workflows.

@aklish aklish merged commit 19de457 into yahoo:master Apr 20, 2024
2 checks passed
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.

Entity scan on non-existing data model package silences error
2 participants