Skip to content
This repository was archived by the owner on Apr 23, 2026. It is now read-only.

fix: Use lazy import to not impact the CLI layer - #2959

Merged
mergify[bot] merged 1 commit into
instructlab:mainfrom
dmartinol:lazy_import
Jan 22, 2025
Merged

fix: Use lazy import to not impact the CLI layer#2959
mergify[bot] merged 1 commit into
instructlab:mainfrom
dmartinol:lazy_import

Conversation

@dmartinol

Copy link
Copy Markdown
Contributor

Issue resolved by this Pull Request:
Resolves #2957

Changes related to ingest CLI will be added to #2903

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the
    conventional commits.
  • Changelog updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Functional tests have been added, if necessary.
  • E2E Workflow tests have been added, if necessary.

Signed-off-by: Daniele Martinoli <dmartino@redhat.com>
@dmartinol

Copy link
Copy Markdown
Contributor Author

@instructlab/core-maintainers @jwm4 one more to fix a minor issue

@cdoern cdoern left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm, I have noticed this log issue with a few other commands, curious as to why this solves it.

@mergify mergify Bot added the one-approval PR has one approval from a maintainer label Jan 22, 2025

@jwm4 jwm4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This seems like a good idea.

@dmartinol

dmartinol commented Jan 22, 2025

Copy link
Copy Markdown
Contributor Author

lgtm, I have noticed this log issue with a few other commands, curious as to why this solves it.

I think it's not loading the dependencies logging these message unless the command is actually executed (--help does not run the command function, so internal imports are not affecting the CLI)

@dmartinol
dmartinol marked this pull request as ready for review January 22, 2025 14:39
@mergify mergify Bot removed the one-approval PR has one approval from a maintainer label Jan 22, 2025
@mergify
mergify Bot merged commit 59a1b2e into instructlab:main Jan 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--help for rag will show the log info

4 participants