-
Notifications
You must be signed in to change notification settings - Fork 14
feat: worker abstractions; fix: various improvements and bug fixes #328
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
tazlin
wants to merge
127
commits into
main
Choose a base branch
from
even-better-tests-rebase
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.
Conversation
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 comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
a2a6db0 to
27e6932
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
055117e to
60350da
Compare
d12fced to
6d44d18
Compare
This includes scenarios where, for example, JobIDs and WorkerIDs.
This more accurately reflects the usage of this field type fix: rename `job_id` vars to `gen_id`
`object` and `any` have distinct meanings. particularly, I do in fact mean "any" here rather than expecting an object compatible with `object`
`id_factory`, `default_testing_image_bytes`, `default_testing_image_PIL`
- Fixes the `SharedKeyCreateRequest` class to use the `PUT` method instead of `POST`. - A new mixin class, `MessageSpecifiesSharedKeyMixin` - Accordingly updates the api <-> sdk map json - Adds a warning when shared keys are empty (probably unintended but still useful for testing) docs: add missing shared keys mkdocs stub
The `time_constructed` property is the time at which the model is constructed and will be used to infer pop times if not otherwise specified for jobs. It may also serve some purpose with testing and/or debugging.
Includes reworked contrib.md, a new code style guide, and the start of a package structure guide. Inserts a link to the mkdocs to an onboarding documentation map.
Allows extrapolation from a parameter set what features are required in order to complete the request. Also implements some basic facilities to evaluate if a given image worker is capable of fulfilling a given generation. Text and alchemy worker evaluation is not yet supported as of this commit.
…read safety refactor: dynamic params via `additional_params` for image gen This allows extendibility, allowing parameter types or categories either unknown the SDK or as implemented by third parties. style: catch up fix/style: missing import, lingering style issues [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci fix: remove `type` syntax for now I am unclear how to guard it from raising an exception right now and its not terribly important as it just helps my IDE color it a certain way fix: use compat version of horde_model_reference fix: using `typing_extensions` for `override` This namespace migration is only effective as of python 3.12 and later, and the old namespace appears to still be valid in 3.12 and 3.13 at this time.
Unordered indents were locally configured to lint as 2-space, which mkdocs does not support.
This more accurately reflects that they are simply the well defined and known to the SDK types. "Any" implies a generic (child class) relationship which these type aliases do not actually encapsulate.
Due to the evolution of the design of the sdk, most of the usages of the `generation_id`(s) variables were confusingly named. In the current iteration, `generations` are instances of inference (or generating) , where `results` are the actual outputs from those. There can be 1...N results, but generations are always a single, discrete, entity from the perspective of the SDK.
This closes a gap in testing where if an endpoint was supported in the SDK by any verb, but not all verbs, testing would still pass. This was specifically in response that a newly added DELETE verb to a previously existing endpoint (`/users/`) did not cause the testing to fail.
…pdates - A substantial rework of the job/generation systems, their semantic meanings, and improved their separation of responsibilities - Introduces backend_parsing modules and example worker generation scripts. - Updates API payload/response maps and field descriptions for user endpoints, including support for user deletion and undeletion. - Enhances documentation with backend values mapper and client design guides, - Reworks package structure - Improves many test methodologies, and adds tests for new/changed modules/classes
- Uses python 3.12+ typing features to better define the relationships for generations and jobs, especially when generics/generic parameters. - Adjust the logging system for logfire - Also includes a number of ruff lint fixes
- Fixes docstring test to properly identify and correct docstrings for API models - Fixes missing docstrings in API models
8e377ed to
517a6e8
Compare
d92eeaa to
2d88b17
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
--todo--