Skip to content
This repository was archived by the owner on May 6, 2024. It is now read-only.

Commit 6d28fd6

Browse files
committed
feat: Move vcs backend to asyncio
The core goal here is to resolve some IO latency/blocking in vcs-server when `git fetch` takes a long period of time. This upgrades us to Python 3.8.1 as well to make use of AsyncMock. Note, pytest is locked at <5.4 right now, and is currently broken as of the 5.4.0 release.
1 parent 5e7afa8 commit 6d28fd6

15 files changed

+263
-410
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
rev: 18.6b4
55
hooks:
66
- id: black
7-
language_version: python3.7
7+
language_version: python3.8
88
- repo: git://github.com/pre-commit/pre-commit-hooks
99
rev: v2.0.0
1010
hooks:
@@ -19,10 +19,10 @@ repos:
1919
- id: no-commit-to-branch
2020
- id: trailing-whitespace
2121
- id: debug-statements
22-
language_version: python3.7
22+
language_version: python3.8
2323
- id: flake8
2424
log_file: '.artifacts/flake8.log'
25-
language_version: python3.7
25+
language_version: python3.8
2626
- id: requirements-txt-fixer
2727
args: ['requirements-base.txt', 'requirements-dev.txt', 'requirements-test.txt']
2828
# - repo: https://github.com/pre-commit/mirrors-mypy

.python-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
3.7.2
1+
3.8.1
22
2.7.14

.travis.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ branches:
44
- trying
55
language: python
66
sudo: true
7-
dist: xenial
7+
dist: buster
88
services:
99
- redis-server
1010
- postgresql
1111
python:
12-
- '3.7'
12+
- '3.8'
1313
cache:
1414
yarn: true
1515
directories:

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official Python runtime as a parent image
2-
FROM python:3.7-slim-stretch
2+
FROM python:3.8.2-slim-buster
33

44
# add our user and group first to make sure their IDs get assigned consistently
55
RUN groupadd -r zeus && useradd -r -m -g zeus zeus
@@ -29,6 +29,7 @@ RUN set -ex \
2929
libpq-dev \
3030
libxml2-dev \
3131
libxslt-dev \
32+
libz-dev \
3233
openssl \
3334
ssh \
3435
wget \

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ upgrade: install-requirements
55
poetry run zeus db upgrade
66

77
setup-git:
8-
pip install "pre-commit>=1.12.0,<1.13.0"
8+
pip install "pre-commit>=2.2.0,<2.3.0"
99
pre-commit install
1010
git config branch.autosetuprebase always
1111
git config --bool flake8.strict true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ They should be submitted with the `application/x-webpack-stats+json` type.
7676

7777
### Requirements
7878

79-
- Python 3.7
79+
- Python 3.8
8080
- Node (and [Volta](https://volta.sh/))
8181
- Postgres 9.4+
8282

0 commit comments

Comments
 (0)