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

Reduce memory footprint due to storing state messages #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 36 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 2.0
version: 2.1

filters: &filters
filters:
Expand All @@ -13,7 +13,6 @@ filters__tags: &filters__tags
only: /^v[0-9]+(\.[0-9]+)*$/

workflows:
version: 2
test:
jobs:
- cache:
Expand All @@ -34,19 +33,19 @@ workflows:
<<: *filters
requires:
- cache
- test--9.6:
- test--9-6:
<<: *filters
requires:
- cache
- test--9.5:
- test--9-5:
<<: *filters
requires:
- cache
- test--9.4:
- test--9-4:
<<: *filters
requires:
- cache
- test--8.4:
- test--8-4:
<<: *filters
requires:
- cache
Expand All @@ -58,11 +57,6 @@ workflows:
<<: *filters
requires:
- test--12
- test--11
- test--10
- test--9.6
- test--9.5
- test--9.4
- test-release:
<<: *filters__tags
requires:
Expand All @@ -79,7 +73,7 @@ workflows:
requires:
- approve-release

cache: &cache deps-v6-{{ checksum "setup.py" }}
cache: &cache deps-v7-{{ checksum "setup.py" }}

py: &py python:3.7.7-stretch

Expand All @@ -88,10 +82,25 @@ restore__cache: &restore__cache
keys:
- *cache

# Simple checkout command to pull external forks.
# The CircleCI util does not work without setting up SSH keys
# which we technically do not need for open-source repos.
checkout_command: &checkout_command
run:
name: checkout
command: |
git clone https://github.com/datamill-co/target-postgres .
if [[ "$CIRCLE_BRANCH" =~ ^pull\/* ]]; then
git fetch origin refs/pull/${CIRCLE_PR_NUMBER}/head
git checkout ${CIRCLE_SHA1}
else
git checkout ${CIRCLE_BRANCH}
fi

test__base: &test__base
working_directory: /code/
steps:
- checkout
- *checkout_command
- *restore__cache
- attach_workspace:
at: "./"
Expand All @@ -117,7 +126,7 @@ jobs:
docker:
- image: *py
steps:
- checkout
- *checkout_command
- *restore__cache

- run:
Expand All @@ -137,7 +146,7 @@ jobs:
command: |
python -m venv venv/tap-github
source venv/tap-github/bin/activate
pip install tap-github
pip install git+https://github.com/MeltanoLabs/tap-github[email protected]
deactivate

- run:
Expand Down Expand Up @@ -187,7 +196,7 @@ jobs:
POSTGRES_DB: target_postgres_test
POSTGRES_PASSWORD: postgres

test--9.6:
test--9-6:
<<: *test__base
docker:
- image: *py
Expand All @@ -196,7 +205,7 @@ jobs:
POSTGRES_DB: target_postgres_test
POSTGRES_PASSWORD: postgres

test--9.5:
test--9-5:
<<: *test__base
docker:
- image: *py
Expand All @@ -205,7 +214,7 @@ jobs:
POSTGRES_DB: target_postgres_test
POSTGRES_PASSWORD: postgres

test--9.4:
test--9-4:
<<: *test__base
docker:
- image: *py
Expand All @@ -214,7 +223,7 @@ jobs:
POSTGRES_DB: target_postgres_test
POSTGRES_PASSWORD: postgres

test--8.4:
test--8-4:
<<: *test__base
docker:
- image: *py
Expand All @@ -227,12 +236,12 @@ jobs:
working_directory: /code/
docker:
- image: *py
- image: postgres:9.4.26
- image: postgres:12.2
environment:
POSTGRES_DB: target_postgres_test
POSTGRES_PASSWORD: postgres
steps:
- checkout
- *checkout_command
- *restore__cache
- attach_workspace:
at: "./"
Expand All @@ -252,7 +261,7 @@ jobs:
source venv/tap-github/bin/activate
cd /code/.circleci/integration/tap-github

tap-github --config config.json --properties properties.json > /code/artifacts/data/tap
tap-github --config config.json --catalog catalog.json > /code/artifacts/data/tap

deactivate

Expand Down Expand Up @@ -294,7 +303,7 @@ jobs:

deactivate

cd /code
cd /code/

source venv/tap-postgres/bin/activate
cd /code/.circleci/integration/tap-postgres
Expand Down Expand Up @@ -324,7 +333,7 @@ jobs:
POSTGRES_DB: target_postgres_test
POSTGRES_PASSWORD: postgres
steps:
- checkout
- *checkout_command
- *restore__cache
- attach_workspace:
at: "./"
Expand All @@ -349,7 +358,7 @@ jobs:
docker:
- image: *py
steps:
- checkout
- *checkout_command
- *restore__cache
- attach_workspace:
at: "./"
Expand All @@ -374,7 +383,7 @@ jobs:
docker:
- image: *py
steps:
- checkout
- *checkout_command
- *restore__cache
- attach_workspace:
at: "./"
Expand Down Expand Up @@ -404,7 +413,7 @@ jobs:
docker:
- image: *py
steps:
- checkout
- *checkout_command
- *restore__cache
- attach_workspace:
at: "./"
Expand Down
Loading