-
Notifications
You must be signed in to change notification settings - Fork 10
Various fixes and cleanups #558
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,7 +3,7 @@ COMPOSE_BAKE=true | |||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| [tasks."python:install"] | ||||||||||||||||||||||||||
| description = "Install Python dependencies" | ||||||||||||||||||||||||||
| run = "uv sync --all-groups" | ||||||||||||||||||||||||||
| run = "uv sync --all-packages" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| [tasks."python:format"] | ||||||||||||||||||||||||||
| description = "Format Python code" | ||||||||||||||||||||||||||
|
|
@@ -30,10 +30,12 @@ ruff check \ | |||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| [tasks."python:test"] | ||||||||||||||||||||||||||
| description = "Run Python tests" | ||||||||||||||||||||||||||
| run = "docker compose run tests" | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| run = """ | ||||||||||||||||||||||||||
| docker compose build tests | ||||||||||||||||||||||||||
| docker compose run -T tests | ||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| [tasks."application:service:run"] | ||||||||||||||||||||||||||
| [tasks."application:service:run:production"] | ||||||||||||||||||||||||||
| description = "Run the application service" | ||||||||||||||||||||||||||
| run = """ | ||||||||||||||||||||||||||
| docker run \ | ||||||||||||||||||||||||||
|
|
@@ -42,20 +44,34 @@ docker run \ | |||||||||||||||||||||||||
| pocketsizefund/{{arg(name="service_name")}}:latest \ | ||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| [tasks."application:service:development"] | ||||||||||||||||||||||||||
| [tasks."application:service:run:development"] | ||||||||||||||||||||||||||
| description = "Run the application service locally with hot reloading" | ||||||||||||||||||||||||||
| run = """ | ||||||||||||||||||||||||||
| cd application/{{arg(name="service_name")}} | ||||||||||||||||||||||||||
| uv run uvicorn src.{{arg(name="service_name")}}.main:application --reload | ||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| [tasks."application:service:test"] | ||||||||||||||||||||||||||
| [tasks."application:service:test:integration"] | ||||||||||||||||||||||||||
| description = "Run integration tests" | ||||||||||||||||||||||||||
| run = """ | ||||||||||||||||||||||||||
| cd application/{{arg(name="service_name")}} | ||||||||||||||||||||||||||
| docker-compose up --build --abort-on-container-exit --remove-orphans | ||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| [tasks."application:service:test:behavioral"] | ||||||||||||||||||||||||||
| description = "Run behavioral tests" | ||||||||||||||||||||||||||
| run = """ | ||||||||||||||||||||||||||
| cd application/{{arg(name="service_name")}} | ||||||||||||||||||||||||||
| docker-compose up --build --abort-on-container-exit | ||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
Comment on lines
+61
to
+67
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Standardize behavioral test invocation -[tasks."application:service:test:behavioral"]
- description = "Run behavioral tests"
- run = """
- cd application/{{arg(name="service_name")}}
- docker-compose up --build --abort-on-container-exit
- """
+[tasks."application:service:test:behavioral"]
+description = "Run behavioral tests"
+run = """
+cd application/{{arg(name="service_name")}}
+docker compose up --build --abort-on-container-exit
+"""📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
| [tasks."application:service:cleanup:behavioral"] | ||||||||||||||||||||||||||
| description = "Clean up behavioral tests" | ||||||||||||||||||||||||||
| run = """ | ||||||||||||||||||||||||||
| cd application/{{arg(name="service_name")}} | ||||||||||||||||||||||||||
| docker-compose down -v | ||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
Comment on lines
+68
to
+74
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Standardize cleanup of behavioral tests -[tasks."application:service:cleanup:behavioral"]
- description = "Clean up behavioral tests"
- run = """
- cd application/{{arg(name="service_name")}}
- docker-compose down -v
- """
+[tasks."application:service:cleanup:behavioral"]
+description = "Clean up behavioral tests"
+run = """
+cd application/{{arg(name="service_name")}}
+docker compose down -v
+"""📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||
| [tasks."lint"] | ||||||||||||||||||||||||||
| depends = ["python:lint"] | ||||||||||||||||||||||||||
| description = "Run code quality checks" | ||||||||||||||||||||||||||
|
|
@@ -69,4 +85,3 @@ run = """ | |||||||||||||||||||||||||
| cd infrastructure | ||||||||||||||||||||||||||
| uv run pulumi up --yes | ||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: Integration Tests for datamanager service | ||
| name: Data manager integration tests | ||
|
|
||
| services: | ||
| datamanager: | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| --- | ||
| name: Application unit tests | ||
|
|
||
| services: | ||
| tests: | ||
|
|
||
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.
🛠️ Refactor suggestion
Unify Docker Compose CLI usage
The integration test task still uses
docker-compose(hyphenated) while other tasks usedocker compose. This inconsistency can cause failures if one CLI is unavailable.Apply this diff to standardize on the Compose v2 CLI:
🤖 Prompt for AI Agents