Skip to content

Commit

Permalink
Merge main into stable/4.0.x. Update 20231109
Browse files Browse the repository at this point in the history
* commit 'c504ee995bee16faf22501909cdd4efafd6aafff':
  Bump the opentelemetry-dependencies group (#283)
  Bump flake8 from 6.0.0 to 6.1.0 in /requirements (#279)
  Bump leonsteinhaeuser/project-beta-automations from 2.1.0 to 2.2.1 (#267)
  Bump actions/checkout from 3 to 4 (#268)
  Fix docker python updates in dependabot (#281)
  Bump fastjsonschema from 2.17.1 to 2.18.1 in /requirements (#278)
  Bump psycopg2 from 2.9.6 to 2.9.9 in /requirements (#280)
  Bump black from 23.7.0 to 23.11.0 in /requirements (#277)
  Bump redis from 4.6.0 to 5.0.1 in /requirements (#272)
  Bump mypy from 1.4.1 to 1.6.1 in /requirements (#275)
  Bump pytest from 7.4.0 to 7.4.3 in /requirements (#273)
  Bump autoflake from 2.2.0 to 2.2.1 in /requirements (#276)
  Bump debugpy from 1.6.7 to 1.8.0 in /requirements (#274)
  Bump flask from 2.3.2 to 3.0.0 in /requirements (#271)
  Add dependabot.yml (#265)
  Fix signal handler (#264)
  • Loading branch information
m-schieder committed Nov 9, 2023
2 parents a6b187e + c504ee9 commit a65b02a
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 24 deletions.
37 changes: 37 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/requirements/"
schedule:
interval: "daily"
assignees:
- "jsangmeister"
groups:
opentelemetry-dependencies:
patterns:
- "opentelemetry-*"
open-pull-requests-limit: 42

- package-ecosystem: "pip"
directory: "/system_tests/"
schedule:
interval: "daily"
assignees:
- "jsangmeister"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
assignees:
- "jsangmeister"
ignore:
- dependency-name: "python"
update-types: ["version-update:semver-minor"]

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
assignees:
- "jsangmeister"
6 changes: 3 additions & 3 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
name: "Test: Productive start"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Build container
run: make build
Expand All @@ -34,15 +34,15 @@ jobs:
name: "Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Execute tests
run: make run-ci

test-full-system:
name: "Full System Tests"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Start containers
run: make run-dev-standalone
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Set status
runs-on: ubuntu-latest
steps:
- uses: leonsteinhaeuser/project-beta-automations@v2.1.0
- uses: leonsteinhaeuser/project-beta-automations@v2.2.1
with:
gh_app_ID: ${{ secrets.AUTOMATION_APP_ID }}
gh_app_installation_ID: ${{ secrets.AUTOMATION_APP_INSTALLATION_ID }}
Expand Down
3 changes: 1 addition & 2 deletions datastore/shared/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import atexit
import os
import sys
from functools import partial
from signal import SIGINT, SIGTERM, signal

from .di import injector
Expand All @@ -28,7 +27,7 @@ def shutdown():
atexit.register(shutdown)

for sig in (SIGTERM, SIGINT):
signal(sig, partial(sys.exit, 0))
signal(sig, lambda *_: sys.exit(0))

application = flask_frontend.create_application()

Expand Down
2 changes: 1 addition & 1 deletion datastore/writer/flask_frontend/routes_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def reserve_ids():
def write_without_events():
if not request.is_json:
raise InvalidRequest("Data must be json")
if type(request.json) != list:
if not isinstance(request.json, list):
raise InvalidRequest("write_without_events data internally must be a list!")
req_json = cast(List[Dict[str, Any]], request.json)[0]
if len(req_json.get("events", ())) != 1 and any(
Expand Down
16 changes: 8 additions & 8 deletions requirements/requirements-general.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# update to newer version as soon as https://github.com/konradhalas/dacite/issues/218 is fixed
dacite==1.7.0
fastjsonschema==2.17.1
Flask==2.3.2
fastjsonschema==2.18.1
Flask==3.0.0
gunicorn==21.2.0
psycopg2==2.9.6
redis==4.6.0
psycopg2==2.9.9
redis==5.0.1

# opentelemetry
opentelemetry-api==1.19.0
opentelemetry-sdk==1.19.0
opentelemetry-exporter-otlp==1.19.0
opentelemetry-instrumentation-flask==0.40b0
opentelemetry-api==1.21.0
opentelemetry-sdk==1.21.0
opentelemetry-exporter-otlp==1.21.0
opentelemetry-instrumentation-flask==0.42b0
12 changes: 6 additions & 6 deletions requirements/requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
-r requirements-general.txt

# testing
pytest==7.4.0
pytest==7.4.3
pytest-cov==4.1.0

# linting & formatting
black==23.7.0
autoflake==2.2.0
black==23.11.0
autoflake==2.2.1
isort==5.12.0
flake8==6.0.0
mypy==1.4.1
flake8==6.1.0
mypy==1.6.1

# other dev stuff
debugpy==1.6.7
debugpy==1.8.0
pip-check==2.8.1
4 changes: 2 additions & 2 deletions tests/shared/unit/di/test_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def test_singleton_and_factory(self):

cs = injector.get(ClientService)

assert type(cs) == client_service
assert type(cs.master_service) == master_service
assert type(cs) is client_service
assert type(cs.master_service) is master_service
assert cs.value == "default"
assert cs.another_value == "default2"
assert cs.init_master_service == cs.master_service
Expand Down
2 changes: 1 addition & 1 deletion tests/shared/unit/di/test_providing.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ServiceFactory:


def test_default_injector():
assert type(default_injector) == DependencyProvider
assert type(default_injector) is DependencyProvider


class TestRegistrationAsSingleton:
Expand Down

0 comments on commit a65b02a

Please sign in to comment.