Skip to content

Commit dd118e7

Browse files
committed
wip
1 parent 3ac285d commit dd118e7

File tree

4 files changed

+41
-116
lines changed

4 files changed

+41
-116
lines changed

.github/workflows/test-integrations-flags.yml

Lines changed: 1 addition & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -22,78 +22,14 @@ env:
2222
CACHED_BUILD_PATHS: |
2323
${{ github.workspace }}/dist-serverless
2424
jobs:
25-
test-flags-latest:
26-
name: Flags (latest)
27-
timeout-minutes: 30
28-
runs-on: ${{ matrix.os }}
29-
strategy:
30-
fail-fast: false
31-
matrix:
32-
python-version: ["3.8","3.12","3.13"]
33-
# python3.6 reached EOL and is no longer being supported on
34-
# new versions of hosted runners on Github Actions
35-
# ubuntu-20.04 is the last version that supported python3.6
36-
# see https://github.com/actions/setup-python/issues/544#issuecomment-1332535877
37-
os: [ubuntu-20.04]
38-
steps:
39-
- uses: actions/[email protected]
40-
- uses: actions/setup-python@v5
41-
with:
42-
python-version: ${{ matrix.python-version }}
43-
allow-prereleases: true
44-
- name: Setup Test Env
45-
run: |
46-
pip install "coverage[toml]" tox
47-
- name: Erase coverage
48-
run: |
49-
coverage erase
50-
- name: Test launchdarkly latest
51-
run: |
52-
set -x # print commands that are executed
53-
./scripts/runtox.sh "py${{ matrix.python-version }}-launchdarkly-latest"
54-
- name: Test openfeature latest
55-
run: |
56-
set -x # print commands that are executed
57-
./scripts/runtox.sh "py${{ matrix.python-version }}-openfeature-latest"
58-
- name: Test unleash latest
59-
run: |
60-
set -x # print commands that are executed
61-
./scripts/runtox.sh "py${{ matrix.python-version }}-unleash-latest"
62-
- name: Generate coverage XML (Python 3.6)
63-
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
64-
run: |
65-
export COVERAGE_RCFILE=.coveragerc36
66-
coverage combine .coverage-sentry-*
67-
coverage xml --ignore-errors
68-
- name: Generate coverage XML
69-
if: ${{ !cancelled() && matrix.python-version != '3.6' }}
70-
run: |
71-
coverage combine .coverage-sentry-*
72-
coverage xml
73-
- name: Upload coverage to Codecov
74-
if: ${{ !cancelled() }}
75-
uses: codecov/[email protected]
76-
with:
77-
token: ${{ secrets.CODECOV_TOKEN }}
78-
files: coverage.xml
79-
# make sure no plugins alter our coverage reports
80-
plugin: noop
81-
verbose: true
82-
- name: Upload test results to Codecov
83-
if: ${{ !cancelled() }}
84-
uses: codecov/test-results-action@v1
85-
with:
86-
token: ${{ secrets.CODECOV_TOKEN }}
87-
files: .junitxml
88-
verbose: true
8925
test-flags-pinned:
9026
name: Flags (pinned)
9127
timeout-minutes: 30
9228
runs-on: ${{ matrix.os }}
9329
strategy:
9430
fail-fast: false
9531
matrix:
96-
python-version: ["3.8","3.12","3.13"]
32+
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
9733
# python3.6 reached EOL and is no longer being supported on
9834
# new versions of hosted runners on Github Actions
9935
# ubuntu-20.04 is the last version that supported python3.6

scripts/populate_tox/populate_tox.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,10 @@
8282
"huggingface_hub",
8383
"langchain",
8484
"langchain_notiktoken",
85-
"launchdarkly",
8685
"litestar",
8786
"loguru",
8887
"openai",
8988
"openai_notiktoken",
90-
"openfeature",
9189
"pure_eval",
9290
"pymongo",
9391
"pyramid",
@@ -106,7 +104,6 @@
106104
"tornado",
107105
"trytond",
108106
"typer",
109-
"unleash",
110107
}
111108

112109

scripts/populate_tox/tox.jinja

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ envlist =
175175
{py3.9,py3.11,py3.12}-langchain-latest
176176
{py3.9,py3.11,py3.12}-langchain-notiktoken
177177

178-
# LaunchDarkly
179-
{py3.8,py3.12,py3.13}-launchdarkly-v9.8.0
180-
{py3.8,py3.12,py3.13}-launchdarkly-latest
181-
182178
# Litestar
183179
{py3.8,py3.11}-litestar-v{2.0}
184180
{py3.8,py3.11,py3.12}-litestar-v{2.6}
@@ -196,10 +192,6 @@ envlist =
196192
{py3.9,py3.11,py3.12}-openai-latest
197193
{py3.9,py3.11,py3.12}-openai-notiktoken
198194

199-
# OpenFeature
200-
{py3.8,py3.12,py3.13}-openfeature-v0.7
201-
{py3.8,py3.12,py3.13}-openfeature-latest
202-
203195
# OpenTelemetry (OTel)
204196
{py3.7,py3.9,py3.12,py3.13}-opentelemetry
205197

@@ -297,10 +289,6 @@ envlist =
297289
{py3.7,py3.12,py3.13}-typer-v{0.15}
298290
{py3.7,py3.12,py3.13}-typer-latest
299291

300-
# Unleash
301-
{py3.8,py3.12,py3.13}-unleash-v6.0.1
302-
{py3.8,py3.12,py3.13}-unleash-latest
303-
304292
# === Integrations - Auto-generated ===
305293
# These come from the populate_tox.py script. Eventually we should move all
306294
# integration tests there.
@@ -589,18 +577,6 @@ deps =
589577
openai-latest: tiktoken~=0.6.0
590578
openai-notiktoken: openai
591579
592-
# OpenFeature
593-
openfeature-v0.7: openfeature-sdk~=0.7.1
594-
openfeature-latest: openfeature-sdk
595-
596-
# LaunchDarkly
597-
launchdarkly-v9.8.0: launchdarkly-server-sdk~=9.8.0
598-
launchdarkly-latest: launchdarkly-server-sdk
599-
600-
# Unleash
601-
unleash-v6.0.1: UnleashClient~=6.0.1
602-
unleash-latest: UnleashClient
603-
604580
# OpenTelemetry (OTel)
605581
opentelemetry: opentelemetry-distro
606582

tox.ini

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,6 @@ envlist =
175175
{py3.9,py3.11,py3.12}-langchain-latest
176176
{py3.9,py3.11,py3.12}-langchain-notiktoken
177177

178-
# LaunchDarkly
179-
{py3.8,py3.12,py3.13}-launchdarkly-v9.8.0
180-
{py3.8,py3.12,py3.13}-launchdarkly-latest
181-
182178
# Litestar
183179
{py3.8,py3.11}-litestar-v{2.0}
184180
{py3.8,py3.11,py3.12}-litestar-v{2.6}
@@ -196,10 +192,6 @@ envlist =
196192
{py3.9,py3.11,py3.12}-openai-latest
197193
{py3.9,py3.11,py3.12}-openai-notiktoken
198194

199-
# OpenFeature
200-
{py3.8,py3.12,py3.13}-openfeature-v0.7
201-
{py3.8,py3.12,py3.13}-openfeature-latest
202-
203195
# OpenTelemetry (OTel)
204196
{py3.7,py3.9,py3.12,py3.13}-opentelemetry
205197

@@ -297,14 +289,30 @@ envlist =
297289
{py3.7,py3.12,py3.13}-typer-v{0.15}
298290
{py3.7,py3.12,py3.13}-typer-latest
299291

300-
# Unleash
301-
{py3.8,py3.12,py3.13}-unleash-v6.0.1
302-
{py3.8,py3.12,py3.13}-unleash-latest
303-
304292
# === Integrations - Auto-generated ===
305293
# These come from the populate_tox.py script. Eventually we should move all
306294
# integration tests there.
307295

296+
# ~~~ Flags ~~~
297+
{py3.6,py3.7}-launchdarkly-v6.12.2
298+
{py3.6,py3.7}-launchdarkly-v6.13.3
299+
{py3.6,py3.9,py3.10}-launchdarkly-v7.6.1
300+
{py3.7,py3.11,py3.12}-launchdarkly-v8.3.0
301+
{py3.8,py3.11,py3.12}-launchdarkly-v9.0.1
302+
{py3.8,py3.12,py3.13}-launchdarkly-v9.9.0
303+
304+
{py3.8,py3.12,py3.13}-openfeature-v0.0.9
305+
{py3.8,py3.12,py3.13}-openfeature-v0.2.0
306+
{py3.8,py3.12,py3.13}-openfeature-v0.4.2
307+
{py3.8,py3.12,py3.13}-openfeature-v0.7.4
308+
309+
{py3.6,py3.7,py3.8}-unleash-v3.5.1
310+
{py3.6,py3.8,py3.9}-unleash-v3.6.2
311+
{py3.6,py3.8,py3.9}-unleash-v4.4.1
312+
{py3.8,py3.12,py3.13}-unleash-v5.12.3
313+
{py3.8,py3.12,py3.13}-unleash-v6.0.1
314+
315+
308316

309317
[testenv]
310318
deps =
@@ -579,18 +587,6 @@ deps =
579587
openai-latest: tiktoken~=0.6.0
580588
openai-notiktoken: openai
581589

582-
# OpenFeature
583-
openfeature-v0.7: openfeature-sdk~=0.7.1
584-
openfeature-latest: openfeature-sdk
585-
586-
# LaunchDarkly
587-
launchdarkly-v9.8.0: launchdarkly-server-sdk~=9.8.0
588-
launchdarkly-latest: launchdarkly-server-sdk
589-
590-
# Unleash
591-
unleash-v6.0.1: UnleashClient~=6.0.1
592-
unleash-latest: UnleashClient
593-
594590
# OpenTelemetry (OTel)
595591
opentelemetry: opentelemetry-distro
596592

@@ -754,6 +750,26 @@ deps =
754750
# These come from the populate_tox.py script. Eventually we should move all
755751
# integration tests there.
756752

753+
# ~~~ Flags ~~~
754+
launchdarkly-v6.12.2: launchdarkly-server-sdk==6.12.2
755+
launchdarkly-v6.13.3: launchdarkly-server-sdk==6.13.3
756+
launchdarkly-v7.6.1: launchdarkly-server-sdk==7.6.1
757+
launchdarkly-v8.3.0: launchdarkly-server-sdk==8.3.0
758+
launchdarkly-v9.0.1: launchdarkly-server-sdk==9.0.1
759+
launchdarkly-v9.9.0: launchdarkly-server-sdk==9.9.0
760+
761+
openfeature-v0.0.9: openfeature-sdk==0.0.9
762+
openfeature-v0.2.0: openfeature-sdk==0.2.0
763+
openfeature-v0.4.2: openfeature-sdk==0.4.2
764+
openfeature-v0.7.4: openfeature-sdk==0.7.4
765+
766+
unleash-v3.5.1: UnleashClient==3.5.1
767+
unleash-v3.6.2: UnleashClient==3.6.2
768+
unleash-v4.4.1: UnleashClient==4.4.1
769+
unleash-v5.12.3: UnleashClient==5.12.3
770+
unleash-v6.0.1: UnleashClient==6.0.1
771+
772+
757773

758774
setenv =
759775
PYTHONDONTWRITEBYTECODE=1

0 commit comments

Comments
 (0)