Skip to content

Commit 006b113

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feat/gherkinmigration
Signed-off-by: Simon Schrottner <[email protected]>
2 parents 4bf829a + 293fadb commit 006b113

File tree

21 files changed

+630
-19
lines changed

21 files changed

+630
-19
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060

6161
- if: matrix.python-version == '3.11'
6262
name: Upload coverage to Codecov
63-
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
63+
uses: codecov/codecov-action@5a605bd92782ce0810fa3b8acc235c921b497052 # v5.2.0
6464
with:
6565
name: Code Coverage for ${{ matrix.package }} on Python ${{ matrix.python-version }}
6666
directory: ${{ matrix.package }}
@@ -91,10 +91,10 @@ jobs:
9191
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
9292

9393
- name: Initialize CodeQL
94-
uses: github/codeql-action/init@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3
94+
uses: github/codeql-action/init@dd196fa9ce80b6bacc74ca1c32bd5b0ba22efca7 # v3
9595
with:
9696
languages: python
9797
config-file: ./.github/codeql-config.yml
9898

9999
- name: Perform CodeQL Analysis
100-
uses: github/codeql-action/analyze@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3
100+
uses: github/codeql-action/analyze@dd196fa9ce80b6bacc74ca1c32bd5b0ba22efca7 # v3

.github/workflows/lint-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2727

28-
- uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2
28+
- uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2
2929
# When the previous steps fails, the workflow would stop. By adding this
3030
# condition you can continue the execution with the populated error message.
3131
if: always() && (steps.lint_pr_title.outputs.error_message != null)
@@ -44,7 +44,7 @@ jobs:
4444
4545
# Delete a previous comment when the issue has been resolved
4646
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
47-
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 # v2
47+
uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 # v2
4848
with:
4949
header: pr-title-lint-error
5050
delete: true

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@ jobs:
4545
permissions:
4646
# IMPORTANT: this permission is mandatory for trusted publishing to pypi
4747
id-token: write
48-
container:
49-
image: "python:3.13"
5048

5149
steps:
5250
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
5351
with:
5452
submodules: recursive
5553

54+
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
55+
with:
56+
python-version: '3.13'
57+
5658
- name: Upgrade pip
5759
run: pip install --upgrade pip
5860

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ docs/_build/
5151

5252
# Virtual env directories
5353
.venv
54+
55+
# vscode
56+
.vscode/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
default_stages: [commit]
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.8.6
4+
rev: v0.9.2
55
hooks:
66
- id: ruff
77
args: [--fix]

.release-please-manifest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"hooks/openfeature-hooks-opentelemetry": "0.1.3",
33
"providers/openfeature-provider-flagd": "0.1.5",
4-
"providers/openfeature-provider-ofrep": "0.1.0"
4+
"providers/openfeature-provider-ofrep": "0.1.1",
5+
"providers/openfeature-provider-flipt": "0.1.3"
56
}

providers/openfeature-provider-flagd/tests/e2e/file/test_flaqd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
# Python 3.8 does not fully support tagging, hence that it will run all cases
33
import sys
44

5-
from e2e.paths import TEST_HARNESS_PATH
65
from pytest_bdd import scenarios
76

7+
from tests.e2e.paths import TEST_HARNESS_PATH
8+
89
if sys.version_info >= (3, 9):
910
scenarios(f"{TEST_HARNESS_PATH}/gherkin")

providers/openfeature-provider-flagd/tests/e2e/rpc/test_flaqd.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import sys
22

3-
from e2e.paths import TEST_HARNESS_PATH
43
from pytest_bdd import scenarios
54

5+
from tests.e2e.paths import TEST_HARNESS_PATH
6+
67
# as soon as we support all the features, we can actually remove this limitation to not run on Python 3.8
78
# Python 3.8 does not fully support tagging, hence that it will run all cases
89
if sys.version_info >= (3, 9):

providers/openfeature-provider-flagd/tests/test_config.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
22

3+
# not sure if we still need this test, as this is also covered with gherkin tests.
34
from openfeature.contrib.provider.flagd.config import (
45
DEFAULT_CACHE,
56
DEFAULT_CACHE_SIZE,
@@ -20,7 +21,6 @@
2021
ENV_VAR_KEEP_ALIVE_TIME_MS,
2122
ENV_VAR_OFFLINE_FLAG_SOURCE_PATH,
2223
ENV_VAR_PORT,
23-
ENV_VAR_RESOLVER_TYPE,
2424
ENV_VAR_RETRY_BACKOFF_MS,
2525
ENV_VAR_STREAM_DEADLINE_MS,
2626
ENV_VAR_TLS,
@@ -84,7 +84,6 @@ def test_overrides_defaults_with_environment(monkeypatch, resolver_type): # noq
8484
monkeypatch.setenv(ENV_VAR_KEEP_ALIVE_TIME_MS, str(keep_alive))
8585
monkeypatch.setenv(ENV_VAR_OFFLINE_FLAG_SOURCE_PATH, offline_path)
8686
monkeypatch.setenv(ENV_VAR_PORT, str(port))
87-
monkeypatch.setenv(ENV_VAR_RESOLVER_TYPE, str(resolver_type.value))
8887
monkeypatch.setenv(ENV_VAR_RETRY_BACKOFF_MS, str(retry_backoff))
8988
monkeypatch.setenv(ENV_VAR_STREAM_DEADLINE_MS, str(stream_deadline))
9089
monkeypatch.setenv(ENV_VAR_TLS, str(tls))
@@ -97,7 +96,6 @@ def test_overrides_defaults_with_environment(monkeypatch, resolver_type): # noq
9796
assert config.keep_alive_time == keep_alive
9897
assert config.offline_flag_source_path == offline_path
9998
assert config.port == port
100-
assert config.resolver == resolver_type
10199
assert config.retry_backoff_ms == retry_backoff
102100
assert config.stream_deadline_ms == stream_deadline
103101
assert config.tls is tls
@@ -122,7 +120,6 @@ def test_uses_arguments_over_environments_and_defaults(monkeypatch, resolver_typ
122120
monkeypatch.setenv(ENV_VAR_KEEP_ALIVE_TIME_MS, str(keep_alive) + "value")
123121
monkeypatch.setenv(ENV_VAR_OFFLINE_FLAG_SOURCE_PATH, offline_path + "value")
124122
monkeypatch.setenv(ENV_VAR_PORT, str(port) + "value")
125-
monkeypatch.setenv(ENV_VAR_RESOLVER_TYPE, str(resolver_type) + "value")
126123
monkeypatch.setenv(ENV_VAR_RETRY_BACKOFF_MS, str(retry_backoff) + "value")
127124
monkeypatch.setenv(ENV_VAR_STREAM_DEADLINE_MS, str(stream_deadline) + "value")
128125
monkeypatch.setenv(ENV_VAR_TLS, str(tls) + "value")
@@ -147,7 +144,6 @@ def test_uses_arguments_over_environments_and_defaults(monkeypatch, resolver_typ
147144
assert config.keep_alive_time == keep_alive
148145
assert config.offline_flag_source_path == offline_path
149146
assert config.port == port
150-
assert config.resolver == resolver_type
151147
assert config.retry_backoff_ms == retry_backoff
152148
assert config.stream_deadline_ms == stream_deadline
153149
assert config.tls is tls

0 commit comments

Comments
 (0)