Skip to content
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

Fix JS tests, update files validation response error #1347

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

NolanTrem
Copy link
Collaborator

@NolanTrem NolanTrem commented Oct 5, 2024

Important

Remove unnecessary environment variables from GitHub Actions, handle missing task IDs in API responses, and fix documentation whitespace.

  • GitHub Actions:
    • Removed POSTGRES_HOST, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_PORT, POSTGRES_DBNAME, R2R_PROJECT_NAME from r2r-js-sdk-integration-tests.yml.
    • Workflow now triggers on all branches.
  • API Changes:
    • In ingestion_router.py, added handling for missing task_id in update_files_app() and ingest_files_app().
  • Models:
    • Changed task_id in UpdateResponse to Optional[UUID] in responses.py.
  • Documentation:
    • Fixed whitespace issue in whats-new.mdx.

This description was created by Ellipsis for 07c90eb. It will automatically update as commits are pushed.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Reviewed everything up to d413048 in 6 seconds

More details
  • Looked at 17 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/r2r-js-sdk-integration-tests.yml:36
  • Draft comment:
    Ensure that the removed environment variables (POSTGRES_HOST, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_PORT, POSTGRES_DBNAME, R2R_PROJECT_NAME) are not required for the R2R server to start and function correctly. If they are needed, consider alternative ways to provide these configurations.
  • Reason this comment was not posted:
    Comment did not seem useful.

Workflow ID: wflow_tcxr38fguOnWynd2


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

vercel bot commented Oct 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yc_demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2024 7:09am
yc-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 5, 2024 7:09am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
recommendation_platform ⬜️ Ignored (Inspect) Oct 5, 2024 7:09am

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 4f19359 in 6 seconds

More details
  • Looked at 34 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/r2r-js-sdk-integration-tests.yml:6
  • Draft comment:
    The workflow is now set to trigger on all branches. Ensure this is intended, as it may lead to excessive workflow runs.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The change to trigger on all branches is significant and should be noted.

Workflow ID: wflow_Z0vyJfbYRFEiR3Lk


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Incremental review on bbd0587 in 15 seconds

More details
  • Looked at 18 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/r2r-js-sdk-integration-tests.yml:57
  • Draft comment:
    Using docker logs $(docker ps -q) will fetch logs for all running containers, which might not be intended if multiple containers are running. Consider specifying the container name or ID explicitly.
  • Reason this comment was not posted:
    Marked as duplicate.

Workflow ID: wflow_M3Vb2M9gObrlZHly


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -58,11 +47,11 @@ jobs:

- name: Display R2R server logs if server not responding
if: failure()
run: cat r2r_server.log
run: docker logs $(docker ps -q)
Copy link
Contributor

Choose a reason for hiding this comment

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

Using docker logs $(docker ps -q) will fetch logs for all running containers, which might not be intended if multiple containers are running. Consider specifying the container name or ID explicitly.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 6445b4a in 6 seconds

More details
  • Looked at 46 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. py/shared/api/models/ingestion/responses.py:40
  • Draft comment:
    The change from UUID to Optional[UUID] for task_id is appropriate, as it aligns with the logic in ingestion_router.py where task_id is set to None if not present. This ensures the model can handle cases where task_id is not provided.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The change from UUID to Optional[UUID] in the UpdateResponse model is consistent with the code changes in ingestion_router.py where task_id is set to None if not present. This ensures that the model can handle cases where task_id is not provided.

Workflow ID: wflow_i9dzvPdZLwR8qSi2


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on aaa08fb in 12 seconds

More details
  • Looked at 18 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. .github/workflows/r2r-js-sdk-integration-tests.yml:50
  • Draft comment:
    The change to docker logs r2r-r2r-1 assumes the container name is always r2r-r2r-1. Consider dynamically determining the container ID or ensuring the container name is constant and documented.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment addresses a potential issue with hardcoding a container name, which could lead to problems if the container name changes or is not consistent. This is a valid concern as it relates to the robustness and maintainability of the code. The comment is actionable, suggesting a way to improve the code by dynamically determining the container ID.
    The comment assumes that the container name might change, but if the container name is indeed constant and documented, the change might be acceptable. Without additional context, it's hard to determine if this is a real issue.
    Even if the container name is constant, documenting this assumption or dynamically determining the container ID would improve code clarity and robustness.
    The comment is valid as it highlights a potential issue with hardcoding the container name and suggests an improvement. It should be kept.

Workflow ID: wflow_w8OWVu2VNl2BNMW6


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 07c90eb in 8 seconds

More details
  • Looked at 12 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. py/core/providers/orchestration/hatchet.py:36
  • Draft comment:
    Remove the unnecessary blank line for better readability.
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The code contains an unnecessary blank line that should be removed for better readability and consistency.

Workflow ID: wflow_Av7rG1nAzG6JHf99


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@NolanTrem NolanTrem changed the title Remove env vars causing docker failure Fix JS tests, update files validation response error Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant