Repository navigation
Release 0.4.48 - #596
Merged
Merged
Release 0.4.48#596
Conversation
Rebase develop to main.
…eries to persist them to ApertureDB. (#594)
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the test suite, enhances ingestion commands (including a new from_croissant CLI), refines connector configuration handling, and adds the MLCroissant SDK integration.
- Tests now include a
--no-interactiveflag and shell scripts improve error handling. - Ingestion logic is refactored into
_process_dataand a newfrom_croissantcommand is added. - Configuration loading now supports
APERTUREDB_KEYfrom Google Colab and connector port logic is refined.
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| test/test_CLI.py | Updated CLI tests to pass --no-interactive flag |
| test/run_test_container.sh | Added startup delay to wait for containers |
| test/run_test.sh | Enabled pipefail for better error handling in test script |
| test/adb_timing_tests.py | Adjusted timing threshold for adb command tests |
| aperturedb/cli/ingest.py | Refactored ingestion into _process_data and added from_croissant command |
| aperturedb/cli/configure.py | Improved name assignment when creating configurations from JSON or key |
| aperturedb/init.py | Bumped package version to 0.4.48 |
| aperturedb/MLCroissant.py | Added SDK class for MLCroissant dataset ingestion |
| aperturedb/EntityUpdateDataCSV.py | Reformatted update conditionals in docstring |
| aperturedb/ConnectorRest.py | Enhanced port selection logic in REST connector |
| aperturedb/Connector.py | Added default=str fallback for JSON serialization |
| aperturedb/CommonLibrary.py | Added support for APERTUREDB_KEY Google Colab secret in connector lookup |
Comments suppressed due to low confidence (2)
test/adb_timing_tests.py:16
- [nitpick] It may be helpful to add a comment explaining why the threshold was increased to 1.0 seconds to provide context for future maintainers.
assert diff.total_seconds() <= 1.0, f"Command {command} took too long"
aperturedb/cli/ingest.py:93
- [nitpick] The new helper
_process_datacould benefit from a docstring explaining its parameters and behavior, improving maintainability.
def _process_data(data, sample_count, module_name, batchsize, num_workers, stats, debug):
| except ImportError: | ||
| console.log( | ||
| "mlcroissant is not installed. Please install it with `pip install -U mlcroissant`.") | ||
| typer.Abort() |
There was a problem hiding this comment.
Calling typer.Abort() without raise will not stop execution. Use raise typer.Abort() to properly abort the command.
Suggested change
| typer.Abort() | |
| raise typer.Abort() |
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
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.
Uh oh!
There was an error while loading. Please reload this page.