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

feat(start): Add more context to what is going on underneath the hood for start #148

Merged
merged 4 commits into from
Nov 18, 2024

Conversation

hubertdeng123
Copy link
Member

This will more clearly state the steps that are happening underneath the hood for starting a service.

Screenshot 2024-11-15 at 4 16 57 PM

Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.53%. Comparing base (7a47db3) to head (d5a5c91).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #148      +/-   ##
==========================================
+ Coverage   90.35%   90.53%   +0.18%     
==========================================
  Files          20       20              
  Lines        1026     1035       +9     
==========================================
+ Hits          927      937      +10     
+ Misses         99       98       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -12,6 +12,7 @@
DEVSERVICES_DEPENDENCIES_CACHE_DIR = os.path.join(DEVSERVICES_CACHE_DIR, "dependencies")
DEVSERVICES_DEPENDENCIES_CACHE_DIR_KEY = "DEVSERVICES_DEPENDENCIES_CACHE_DIR"
STATE_DB_FILE = os.path.join(DEVSERVICES_LOCAL_DIR, "state")
DOCKER_COMPOSE_COMMAND_LENGTH = 7
Copy link
Member

Choose a reason for hiding this comment

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

Is this the same across all docker compose commands or is it only true for up?

Copy link
Member Author

Choose a reason for hiding this comment

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

True for all

cmd: list[str], current_env: dict[str, str], status: Status, len_options: int
) -> subprocess.CompletedProcess[str]:
# TODO: Get rid of these constants, we need a smarter way to determine the containers being brought up
for dependency in cmd[DOCKER_COMPOSE_COMMAND_LENGTH:-len_options]:
Copy link
Member

Choose a reason for hiding this comment

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

I somewhat prefer the magic numbers if we can factor them out soon, but this is fine too

@hubertdeng123 hubertdeng123 merged commit e9c2eca into main Nov 18, 2024
14 checks passed
@hubertdeng123 hubertdeng123 deleted the hubertdeng123/add-details-to-start branch November 18, 2024 17:09
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.

2 participants