Skip to content

Commit

Permalink
chore: prepare v0.22.0 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Nov 29, 2022
1 parent 3a0ece8 commit ad51f49
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# CHANGELOG

## NEXT RELEASE
## v0.22.0 (2022-11-28)

- API has more unified error handling for 5xx error types
- Introduced new HarveyError and cleaned up various error handling throughout the app. All messages should now properly get logged when a deployment gets killed, errors raised when Sentries need to be triggered, and various log levels were corrected
- Introduced new `HarveyError` and cleaned up various error handling throughout the app. All messages should now properly get logged when a deployment gets killed, errors raised when Sentries need to be triggered, and various log levels were corrected
- Healthchecks of containers now check when the container was started to ensure that not only are they running, but that they restarted within the last 60 seconds as a part of the deploy
- Fixed a bug where containers may not properly recreate when their configs or images don't differ from the last deploy
- If a project's lock status cannot be determined, we now kill the process instead of continuing and logging only
- If a project's lock status cannot be determined, we now kill the process instead of continuing and logging only to ensure we don't steamroll a previous deployment
- Harvey can now distinguish between a system lock and a user lock allowing for user-locked deployments to stay that way even if a deployment fails
- Wraps `store_deployment_details` in a try/except to log out errors with saving details to the DB
- Drops default deployment timeout from 30 minutes to 10 minutes
- Various other improvements and fixes

## v0.21.0 (2022-11-21)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ Environment Variables:
LOG_LEVEL The logging level used for the entire application. Default: INFO
ALLOWED_BRANCHES A comma separated list of branch names that are allowed to trigger deployments from a webhook event. Default: "main,master"
PAGINATION_LIMIT The number of records to return via API. Default: 20
DEPLOY_TIMEOUT The number of seconds any given deploy can take before timing out. Default: 1800
DEPLOY_TIMEOUT The number of seconds any given deploy can take before timing out. Default: 600
GIT_TIMEOUT The number of seconds any given git operation can take before timing out. Default: 300
DEPLOY_ON_TAG A boolean specifying if a tag pushed will trigger a deploy. Default: True
HARVEY_PATH The path where Harvey will store projects, logs, and the SQLite databases. Default: ~/harvey
Expand Down
4 changes: 2 additions & 2 deletions harvey/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class Config:
# User configurable settings
allowed_branches = [branch.strip().lower() for branch in os.getenv('ALLOWED_BRANCHES', 'main,master').split(',')]
deploy_timeout = int(os.getenv('DEPLOY_TIMEOUT', 1800)) # Default is 30 minutes
deploy_timeout = int(os.getenv('DEPLOY_TIMEOUT', 600)) # Default is 10 minutes
git_timeout = int(os.getenv('GIT_TIMEOUT', 300)) # Default is 5 minutes
pagination_limit = int(os.getenv('PAGINATION_LIMIT', 20))
deploy_on_tag = os.getenv('DEPLOY_ON_TAG', True) # Whether a tag pushed will trigger a deploy or not
Expand All @@ -22,7 +22,7 @@ class Config:
# Harvey settings
host = os.getenv('HOST', '127.0.0.1')
port = int(os.getenv('PORT', 5000))
harvey_version = '0.21.0'
harvey_version = '0.22.0'
supported_deployments = {
'deploy',
'pull',
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

setuptools.setup(
name='harvey-cd',
version='0.21.0',
version='0.22.0',
description='The lightweight Docker Compose deployment platform.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit ad51f49

Please sign in to comment.