ehmatthes / django-simple-deploy

A reusable Django app that configures your project for deployment
BSD 3-Clause "New" or "Revised" License
307 stars 26 forks source link

Simplify logging #260

Closed ehmatthes closed 11 months ago

ehmatthes commented 11 months ago

Originally, I didn't want to start writing a log file until we knew that the deployment was going to work. In retrospect, this was an unnecessary complexity. We're taking significant steps such as creating a project, and creating a db before we start logging. These are really important things to have a record of, especially for troubleshooting.

It's perfectly reasonable to create a log file as soon as we have something to log. People can pass the --no-logging arg if they need, and they can delete log files or directories before making a commit to their project if needed.

ehmatthes commented 11 months ago

Working notes

ehmatthes commented 11 months ago

git status notes

ehmatthes commented 11 months ago

More tasks

ehmatthes commented 11 months ago

prep_automate_all()

ehmatthes commented 11 months ago

Final changes before testing

ehmatthes commented 11 months ago

First pass at testing

Start with integration tests first, because they are most important and don't check log output. If those pass, unit tests should be mostly updating log assertions?

Make sure integration tests pass, and skim through log after each deployment to address any glaring issues.

ehmatthes commented 11 months ago

platform_sh integration test

ehmatthes commented 11 months ago

fly_io integration test

2023-11-04 01:32:11,742 INFO: Looking for Fly.io app to deploy against...
2023-11-04 01:32:12,552 INFO: fly apps list
2023-11-04 01:32:12,552 INFO: NAME                          OWNER       STATUS      PLATFORM    LATEST DEPLOY 
2023-11-04 01:32:12,552 INFO: fly-builder-wild-thunder-9106 personal    suspended   machines                    
2023-11-04 01:32:12,553 INFO: snowy-sea-2928                personal    pending     machines                    
2023-11-04 01:32:12,553 INFO: 
2023-11-04 01:32:12,553 INFO:   Found Fly.io app: snowy-sea-2928
2023-11-04 01:32:12,553 INFO: Looking for Fly.io region...
ehmatthes commented 11 months ago

Update unit tests

ehmatthes commented 11 months ago

build_dev_env.py cross-platform

ehmatthes commented 11 months ago

Platform.sh integration test (Windows)

ehmatthes commented 11 months ago

Moving remaining platform.sh issues to #265.