-
Notifications
You must be signed in to change notification settings - Fork 38
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 for first time use of dev containers in clean environment #1136
Conversation
WalkthroughWalkthroughThe recent updates focus on optimizing caching mechanisms and configurations for improved performance in the development environment. These changes aim to enhance efficiency and streamline the development process. Additionally, a new GitHub Actions workflow named "Dev Containers" has been implemented to automate setting up the development environment and running backend unit tests upon code changes in the main branch. Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (2)
- dev.docker-compose.yml (1 hunks)
- spiffworkflow-backend/dev.docker-compose.yml (1 hunks)
Additional comments: 5
dev.docker-compose.yml (3)
- 9-9: The addition of the
POETRY_CACHE_DIR
environment variable is a good fix for ensuring Poetry utilizes the specified cache directory within the containerized development environment. This change should help address the issue with dependency management in clean environments, especially on Alpine Linux systems.- 9-9: Reinstating the
POETRY_VIRTUALENVS_IN_PROJECT
environment variable is crucial for ensuring that virtual environments are correctly configured within the project. This change contributes to a more predictable and controlled development environment.- 9-9: Please ensure to test these changes in the Alpine Linux environment to verify that Poetry behaves as expected with these new configurations.
spiffworkflow-backend/dev.docker-compose.yml (2)
- 11-11: Reinstating the
POETRY_VIRTUALENVS_IN_PROJECT
environment variable in thespiffworkflow-backend
service configuration is a positive step towards ensuring that virtual environments are correctly configured within the project. This change aligns with the overall objectives of enhancing the development container experience.- 11-11: Please ensure to test these changes in the development environment to confirm that the virtual environments are correctly configured as intended.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- .github/workflows/dev_containers.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- .github/workflows/dev_containers.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- spiffworkflow-frontend/dev.docker-compose.yml (1 hunks)
Additional comments: 2
spiffworkflow-frontend/dev.docker-compose.yml (2)
- 8-8: The addition of the
CYPRESS_CACHE_FOLDER
environment variable is a good practice for managing Cypress cache in a containerized environment. This ensures that Cypress uses a specific directory for caching, which can help avoid permission issues and improve build times by reusing the cache.- 11-11: Setting the
npm_config_cache
environment variable is a solid approach to manage npm's cache directory. This change will help in optimizing dependency installation times and resolving potential cache-related issues in a containerized setup, especially on systems like Alpine Linux where the default cache location might not be ideal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- spiffworkflow-frontend/dev.docker-compose.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- spiffworkflow-frontend/dev.docker-compose.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (4)
- .github/workflows/dev_containers.yml (1 hunks)
- dev.docker-compose.yml (1 hunks)
- spiffworkflow-backend/dev.docker-compose.yml (1 hunks)
- spiffworkflow-frontend/dev.docker-compose.yml (1 hunks)
Files skipped from review as they are similar to previous changes (4)
- .github/workflows/dev_containers.yml
- dev.docker-compose.yml
- spiffworkflow-backend/dev.docker-compose.yml
- spiffworkflow-frontend/dev.docker-compose.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review Status
Actionable comments generated: 0
Configuration used: .coderabbit.yaml
Files selected for processing (1)
- dev.docker-compose.yml (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- dev.docker-compose.yml
Found this issue when moving to my alpine box - seems like due to mounting a pre-existing working directory, poetry was not respecting all the things i expected it to. Fix is to add one more env var to the arena dev docker compose file.
Summary by CodeRabbit