Skip to content

[CI] Fixes argilla integration tests#76

Merged
JonnyTran merged 13 commits into
developfrom
fix-argilla-integration-tests
Jun 11, 2025
Merged

[CI] Fixes argilla integration tests#76
JonnyTran merged 13 commits into
developfrom
fix-argilla-integration-tests

Conversation

@JonnyTran

@JonnyTran JonnyTran commented Jun 6, 2025

Copy link
Copy Markdown
Member

Fixes #54 #9

@JonnyTran JonnyTran self-assigned this Jun 6, 2025
@codecov

codecov Bot commented Jun 6, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 62.50000% with 48 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...rgilla-server/src/argilla_server/contexts/files.py 22.22% 35 Missing ⚠️
argilla/src/argilla/_models/_documents.py 76.47% 8 Missing ⚠️
...er/src/argilla_server/api/handlers/v1/documents.py 81.25% 3 Missing ⚠️
argilla/src/argilla/cli/rich.py 0.00% 1 Missing ⚠️
argilla/src/argilla/workspaces/_resource.py 88.88% 1 Missing ⚠️
Flag Coverage Δ
argilla 70.05% <77.77%> (+0.39%) ⬆️
argilla-server 86.61% <54.21%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ver/src/argilla_server/api/schemas/v1/documents.py 100.00% <100.00%> (ø)
...lla-server/src/argilla_server/contexts/datasets.py 91.01% <100.00%> (ø)
argilla/src/argilla/_api/_workspaces.py 60.69% <100.00%> (+0.87%) ⬆️
argilla/src/argilla/cli/documents/add.py 66.66% <ø> (-7.53%) ⬇️
argilla/src/argilla/cli/documents/list.py 72.00% <ø> (+12.00%) ⬆️
argilla/src/argilla/cli/files/list.py 61.53% <ø> (ø)
argilla/src/argilla/cli/files/upload.py 68.42% <ø> (ø)
argilla/src/argilla/cli/rich.py 51.28% <0.00%> (+34.61%) ⬆️
argilla/src/argilla/workspaces/_resource.py 84.87% <88.88%> (+0.18%) ⬆️
...er/src/argilla_server/api/handlers/v1/documents.py 37.75% <81.25%> (ø)
... and 2 more

... and 166 files with indirect coverage changes

Components Coverage Δ
extralit ∅ <ø> (∅)
argilla 70.05% <77.77%> (+0.39%) ⬆️
argilla_v1 ∅ <ø> (∅)
argilla-server 86.61% <54.21%> (∅)
argilla-frontend ∅ <ø> (∅)
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JonnyTran JonnyTran added bug refactor Code refactoring or technical debt improvements labels Jun 6, 2025
@JonnyTran JonnyTran force-pushed the fix-argilla-integration-tests branch from 6d0c15e to 184d610 Compare June 6, 2025 23:12
@JonnyTran JonnyTran linked an issue Jun 6, 2025 that may be closed by this pull request
17 tasks
JonnyTran and others added 10 commits June 6, 2025 16:39
…dencies

- Updated elasticsearch to 8.17.0 in `argilla-hf-spaces`
…dling

- Updated Document model to include new fields: file_name, reference, and improved ID handling.
- Refactored API schemas to use DocumentCreate and DocumentDelete for better clarity.
- Added from_file method to Document for creating instances from file paths or URLs.
- Enhanced error handling in add_document CLI command with debug option.
- Updated upload_file function to streamline file upload process and improve user feedback.
- Revised test commands in developer documentation to include coverage options.
- Updated development setup instructions to install additional dependencies and clarified Docker deployment steps.
- Enhanced clarity in Docker image build instructions and added commands for running the Argilla Server.
- Fixed all integration tests
- Added new fields to the Document model: file_name and reference for improved metadata management.
- Updated the WorkspacesAPI to handle document creation from both file paths and URLs.
- Enhanced CLI commands for adding documents to include reference and improved error handling.
- Modified document listing and file upload functionalities for better user experience and feedback.
- Updated rich table display to include file names in document listings.
- Added patching for UUID generation in test_get_documents to ensure consistent test results.
- Included new fields (file_name and reference) in the document creation test for better metadata handling.
- Minor adjustments to the Dockerfiles for improved clarity and consistency.
@JonnyTran JonnyTran changed the title [CI] fixes argilla integration tests [CI] Fixes argilla integration tests Jun 11, 2025
@JonnyTran JonnyTran requested a review from Copilot June 11, 2025 19:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes issues in the Argilla integration tests and enhances document handling by:

  • Cleaning up CLI commands, adding reference and debug options to add_document
  • Expanding the Document model with from_file and updated payload serialization
  • Introducing LocalFileStorage for S3-like operations and updating file‐IO in the server context

Reviewed Changes

Copilot reviewed 34 out of 34 changed files in this pull request and generated 2 comments.

File Description
argilla/src/argilla/cli/documents/add.py Added reference and debug flags; updated call to add_document
argilla/src/argilla/_models/_documents.py Expanded Document schema, added from_file constructor, payload methods
argilla-server/src/argilla_server/contexts/files.py Implemented local file storage, updated put_object/get_object to use ObjectWriteResult and HTTPResponse
(other files) Various imports, schema renames, devcontainer/Dockerfile updates
Comments suppressed due to low confidence (1)

argilla-server/src/argilla_server/contexts/files.py:27

  • The code later calls json.load and io.BytesIO, but neither json nor io is imported. Please add import json and import io to avoid NameError.
from urllib3 import HTTPResponse

Comment thread argilla/src/argilla/cli/documents/add.py Outdated
Comment thread argilla/src/argilla/_models/_documents.py Outdated
@JonnyTran JonnyTran marked this pull request as ready for review June 11, 2025 20:07
@JonnyTran JonnyTran requested review from a team as code owners June 11, 2025 20:07
@JonnyTran JonnyTran merged commit 12ddfa9 into develop Jun 11, 2025
2 of 7 checks passed
@JonnyTran JonnyTran added this to the v0.5.0 milestone Jun 16, 2025
@JonnyTran JonnyTran deleted the fix-argilla-integration-tests branch June 30, 2025 20:23
jonnywireless pushed a commit that referenced this pull request Jul 31, 2025
This PR fixes issues in the Argilla integration tests and enhances document handling by:

- Cleaning up CLI commands, adding reference and debug options to add_document
- Expanding the Document model with from_file and updated payload serialization
- Introducing LocalFileStorage for S3-like operations and updating file‐IO in the server context
JonnyTran added a commit that referenced this pull request Jul 31, 2025
This PR fixes issues in the Argilla integration tests and enhances document handling by:

- Cleaning up CLI commands, adding reference and debug options to add_document
- Expanding the Document model with from_file and updated payload serialization
- Introducing LocalFileStorage for S3-like operations and updating file‐IO in the server context
jonnywireless pushed a commit that referenced this pull request Aug 2, 2025
This PR fixes issues in the Argilla integration tests and enhances document handling by:

- Cleaning up CLI commands, adding reference and debug options to add_document
- Expanding the Document model with from_file and updated payload serialization
- Introducing LocalFileStorage for S3-like operations and updating file‐IO in the server context
jonnywireless pushed a commit that referenced this pull request Aug 2, 2025
This PR fixes issues in the Argilla integration tests and enhances document handling by:

- Cleaning up CLI commands, adding reference and debug options to add_document
- Expanding the Document model with from_file and updated payload serialization
- Introducing LocalFileStorage for S3-like operations and updating file‐IO in the server context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code refactoring or technical debt improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG-python/deployment] [CI] Fix argilla Integration Tests [CI] Test suites update and coverage

2 participants