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: Fix deployment docker compose and move temporal into separate service #471

Merged
merged 6 commits into from
Aug 28, 2024

Conversation

creatorrr
Copy link
Contributor

@creatorrr creatorrr commented Aug 27, 2024

Signed-off-by: Diwank Tomer [email protected]


🚀 This description was created by Ellipsis for commit 0cc7371

Summary:

This PR restructures Docker Compose by moving Temporal to a separate service, updating configurations, and changing the ENTRYPOINT in agents-api/Dockerfile.

Key points:

  • Restructure Docker Compose by moving Temporal to a separate scheduler service.
  • Remove agents-api/Dockerfile.temporal and its references.
  • Add scheduler/docker-compose.yml for Temporal services.
  • Add scheduler/dynamicconfig/development-sql.yaml for Temporal configuration.
  • Update docker-compose.yml to include scheduler/docker-compose.yml.
  • Comment out unused model-serving configurations in gateway/docker-compose.yml and gateway/traefik.yml.template.
  • Adjust ports and environment variables in llm-proxy/docker-compose.yml and memory-store/docker-compose.yml.
  • Modify agents-api/pyproject.toml to include pydantic email extras.
  • Change ENTRYPOINT in agents-api/Dockerfile to use module execution.

Generated with ❤️ by ellipsis.dev

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. Reviewed everything up to c0c9739 in 31 seconds

More details
  • Looked at 363 lines of code in 10 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. llm-proxy/docker-compose.yml:33
  • Draft comment:
    The port mapping for litellm-db has been changed from 5432:5432 to 15432:5432. Ensure that any services depending on this database are updated to connect to the new port 15432.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is about a change made in the diff, specifically the port mapping for the 'litellm-db' service. However, the comment suggests ensuring that dependent services are updated, which is speculative and not actionable. The comment does not directly suggest a code change but rather a configuration update outside the scope of this file.
    The comment might be considered useful as a reminder to update configurations, but it doesn't suggest a direct code change within the file. It could be seen as speculative since it assumes there are dependent services that need updating.
    While the comment provides a useful reminder, it doesn't align with the rules for review comments, which require actionable and clear suggestions for code changes within the file.
    The comment should be removed because it doesn't suggest a direct code change within the file and is speculative about external configurations.
2. llm-proxy/docker-compose.yml:54
  • Draft comment:
    The port mapping for litellm-redis has been changed from 6379:6379 to 16379:6379. Ensure that any services depending on this Redis instance are updated to connect to the new port 16379.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is about a change made in the diff, specifically the port mapping for Redis. However, the comment suggests ensuring that dependent services are updated, which is speculative and not actionable. The comment does not directly suggest a code change but rather a configuration update outside the scope of this file.
    The comment might be considered useful for someone unaware of the implications of changing port mappings, but it doesn't suggest a direct code change within the file itself.
    While the comment provides useful information, it doesn't align with the rules for review comments as it doesn't suggest a direct code change within the file.
    The comment should be deleted as it doesn't suggest a direct code change within the file and is speculative in nature.

Workflow ID: wflow_vGYTIK63XPOiOFWd


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.

- "5432:5432"
- "15432:5432"

# FIXME: This combination of env_file and environment is not working
Copy link
Contributor

Choose a reason for hiding this comment

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

The comment indicates that the combination of env_file and environment is not working as expected. Consider using only one method to set environment variables to avoid conflicts or unexpected behavior.

- POSTGRES_USER=${TEMPORAL_POSTGRES_USER}
- POSTGRES_PASSWORD=${TEMPORAL_POSTGRES_PASSWORD}
ports:
- 25432:5432
Copy link
Contributor

Choose a reason for hiding this comment

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

The port mapping for temporal-db has been changed from 5432:5432 to 25432:5432. Ensure that any services depending on this database are updated to connect to the new port 25432.

Signed-off-by: Diwank Tomer <[email protected]>
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 20c216e in 25 seconds

More details
  • Looked at 181 lines of code in 10 files
  • Skipped 0 files when reviewing.
  • Skipped posting 6 drafted comments based on config settings.
1. agents-api/docker-compose.yml:2
  • Draft comment:
    The version field is removed, which is appropriate as it is deprecated in newer versions of Docker Compose.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The version field is removed from multiple docker-compose.yml files. This field is deprecated in newer versions of Docker Compose, so its removal is appropriate.
2. docker-compose.yml:2
  • Draft comment:
    The version field is removed, which is appropriate as it is deprecated in newer versions of Docker Compose.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The version field is removed from multiple docker-compose.yml files. This field is deprecated in newer versions of Docker Compose, so its removal is appropriate.
3. gateway/docker-compose.yml:2
  • Draft comment:
    The version field is removed, which is appropriate as it is deprecated in newer versions of Docker Compose.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The version field is removed from multiple docker-compose.yml files. This field is deprecated in newer versions of Docker Compose, so its removal is appropriate.
4. memory-store/docker-compose.yml:2
  • Draft comment:
    The version field is removed, which is appropriate as it is deprecated in newer versions of Docker Compose.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The version field is removed from multiple docker-compose.yml files. This field is deprecated in newer versions of Docker Compose, so its removal is appropriate.
5. monitoring/docker-compose.yml:2
  • Draft comment:
    The version field is removed, which is appropriate as it is deprecated in newer versions of Docker Compose.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The version field is removed from multiple docker-compose.yml files. This field is deprecated in newer versions of Docker Compose, so its removal is appropriate.
6. scheduler/docker-compose.yml:2
  • Draft comment:
    The version field is removed, which is appropriate as it is deprecated in newer versions of Docker Compose.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The version field is removed from multiple docker-compose.yml files. This field is deprecated in newer versions of Docker Compose, so its removal is appropriate.

Workflow ID: wflow_k6CXvloKWTfUhmur


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 ffc829b in 15 seconds

More details
  • Looked at 13 lines of code in 1 files
  • Skipped 1 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. agents-api/pyproject.toml:21
  • Draft comment:
    Ensure that the email extra for pydantic is necessary. If not, consider removing it to avoid unnecessary dependencies.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The change in the pydantic dependency from a simple version to include the email extra is a minor change, but it should be verified if the email extra is necessary for the project. If not, it could lead to unnecessary bloat.

Workflow ID: wflow_WVqrD0apeXcK7j1v


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 1b105f5 in 16 seconds

More details
  • Looked at 10 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. agents-api/Dockerfile:17
  • Draft comment:
    The poetry install --no-dev command is redundant since dependencies are already installed in line 13. Consider removing this line to optimize the build process.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment is about a line that was not changed in the diff, which violates the rule that comments should only be about changed lines. Therefore, the comment should be removed.
    The comment might still be valid in terms of optimizing the Dockerfile, even if it wasn't part of the diff changes.
    The rules clearly state to remove comments on lines that weren't changed in the diff, regardless of their validity.
    Remove the comment because it is about a line that was not changed in the diff.

Workflow ID: wflow_2m9LlzWXFewIPvnl


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 542654a in 24 seconds

More details
  • Looked at 649 lines of code in 12 files
  • Skipped 0 files when reviewing.
  • Skipped posting 3 drafted comments based on config settings.
1. agents-api/docker-compose.yml:17
  • Draft comment:
    Consider using a consistent approach for environment variables. Use default values where applicable, e.g., AGENTS_API_KEY: ${AGENTS_API_KEY:-default_value}. This applies to other environment variables in this file and other Docker Compose files as well.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The use of environment variables in the Docker Compose files is inconsistent. In some places, default values are provided using the syntax ${VAR:-default} while in others, they are not. This inconsistency can lead to unexpected behavior if the environment variables are not set.
2. .env.example:3
  • Draft comment:
    Ensure that sensitive information placeholders like <your_jwt_shared_key> are not accidentally replaced with real data in version-controlled files. This applies to other sensitive placeholders in this file as well.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The .env.example file contains sensitive information placeholders. It's important to ensure that these placeholders are not accidentally filled with real sensitive data in the version-controlled file.
3. gateway/docker-compose.yml:6
  • Draft comment:
    The env_file directive has been removed in favor of inline environment variable definitions. Ensure this change is consistent across all services to avoid confusion.
  • Reason this comment was not posted:
    Confidence changes required: 33%
    The Docker Compose files have removed the use of env_file and replaced it with inline environment variable definitions. This change should be consistent across all services to avoid confusion.

Workflow ID: wflow_7sjMN8336dRW6e33


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

Signed-off-by: Diwank Tomer <[email protected]>
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 0cc7371 in 13 seconds

More details
  • Looked at 33 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. memory-store/docker-compose.yml:36
  • Draft comment:
    The change to make the 'cozo_backup' volume external is not explained in the PR description. Ensure that the external volume is properly set up in the deployment environment to avoid runtime issues.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable:
    The comment violates the rule against asking the PR author to ensure something is set up correctly. It also mentions the PR description, which is not relevant to the code change itself. The change to make the volume external is a valid code change, but the comment does not provide actionable feedback on the code itself.
    I might be overlooking the potential impact of not having the external volume set up correctly, but the comment does not provide a direct code change suggestion.
    The rules clearly state not to ask for verification or ensure something is set up correctly, so the comment should be removed regardless of potential impact.
    Remove the comment as it violates the rules by asking for verification and mentioning the PR description.

Workflow ID: wflow_94Bq3s87NlQrnceT


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

@creatorrr creatorrr merged commit 9f5f0cb into dev-tasks Aug 28, 2024
2 of 5 checks passed
@creatorrr creatorrr deleted the x/fix-dploy-v0.4 branch August 28, 2024 00:35
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