-
Notifications
You must be signed in to change notification settings - Fork 12
Mock model providers for client tests #307
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
Draft
mliu-cloudera
wants to merge
21
commits into
main
Choose a base branch
from
liu/tests
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
eaf7137
Debug HTTP requests
mliu-cloudera 89e8240
Mock Bedrock calls
mliu-cloudera c06ac75
Get a working test
mliu-cloudera 8d51122
Move get_all_env_var_names() to _model_provider
mliu-cloudera 0c22bc3
Comment out conftest _get_model_arns() override
mliu-cloudera f1c0bd2
Update uv.lock?
mliu-cloudera 31987a2
Add MODEL_PROVIDER to EnabledModelProvider fixture
mliu-cloudera 032dc05
Refactor, modularize
mliu-cloudera c520bcc
Retype Generator as Iterator
mliu-cloudera f46d9b9
Mock ChatHistoryManager (in a friendly banter sort of way)
mliu-cloudera 767f0ae
Mostly satisfy linters
mliu-cloudera d04c296
Start mocking Bedrock model-calling endpoints
mliu-cloudera 54fe734
Mock embedding
mliu-cloudera 95045be
Mock reranking
mliu-cloudera 7633166
Refactor
mliu-cloudera b4e4855
Satisfy linter
mliu-cloudera c1ef053
Test non-streaming chat
mliu-cloudera dedbdc2
Test streaming chat
mliu-cloudera a9361a8
Suppress IntelliJ warning
mliu-cloudera 7fc52b3
Update chat history check
mliu-cloudera 488e2dd
Make Java mock session configurable-ish
mliu-cloudera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # | ||
| # CLOUDERA APPLIED MACHINE LEARNING PROTOTYPE (AMP) | ||
| # (C) Cloudera, Inc. 2025 | ||
| # All rights reserved. | ||
| # | ||
| # Applicable Open Source License: Apache 2.0 | ||
| # | ||
| # NOTE: Cloudera open source products are modular software products | ||
| # made up of hundreds of individual components, each of which was | ||
| # individually copyrighted. Each Cloudera open source product is a | ||
| # collective work under U.S. Copyright Law. Your license to use the | ||
| # collective work is as provided in your written agreement with | ||
| # Cloudera. Used apart from the collective work, this file is | ||
| # licensed for your use pursuant to the open source license | ||
| # identified above. | ||
| # | ||
| # This code is provided to you pursuant a written agreement with | ||
| # (i) Cloudera, Inc. or (ii) a third-party authorized to distribute | ||
| # this code. If you do not have a written agreement with Cloudera nor | ||
| # with an authorized and properly licensed third party, you do not | ||
| # have any rights to access nor to use this code. | ||
| # | ||
| # Absent a written agreement with Cloudera, Inc. ("Cloudera") to the | ||
| # contrary, A) CLOUDERA PROVIDES THIS CODE TO YOU WITHOUT WARRANTIES OF ANY | ||
| # KIND; (B) CLOUDERA DISCLAIMS ANY AND ALL EXPRESS AND IMPLIED | ||
| # WARRANTIES WITH RESPECT TO THIS CODE, INCLUDING BUT NOT LIMITED TO | ||
| # IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY AND | ||
| # FITNESS FOR A PARTICULAR PURPOSE; (C) CLOUDERA IS NOT LIABLE TO YOU, | ||
| # AND WILL NOT DEFEND, INDEMNIFY, NOR HOLD YOU HARMLESS FOR ANY CLAIMS | ||
| # ARISING FROM OR RELATED TO THE CODE; AND (D)WITH RESPECT TO YOUR EXERCISE | ||
| # OF ANY RIGHTS GRANTED TO YOU FOR THE CODE, CLOUDERA IS NOT LIABLE FOR ANY | ||
| # DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE OR | ||
| # CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, DAMAGES | ||
| # RELATED TO LOST REVENUE, LOST PROFITS, LOSS OF INCOME, LOSS OF | ||
| # BUSINESS ADVANTAGE OR UNAVAILABILITY, OR LOSS OR CORRUPTION OF | ||
| # DATA. | ||
| # | ||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ad85f43 should be reverted before this is merged.