Skip to content

Commit f373c1b

Browse files
committed
really run those tests
1 parent 2e7a063 commit f373c1b

File tree

2 files changed

+79
-61
lines changed

2 files changed

+79
-61
lines changed

.github/workflows/ci.yml

Lines changed: 76 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
20+
python-version: ["3.8"]
2121

2222
services:
2323
redis:
@@ -43,8 +43,8 @@ jobs:
4343
- name: Install poetry
4444
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
4545

46-
- uses: ./.github/actions/build
47-
- uses: ./.github/actions/build-docs
46+
# - uses: ./.github/actions/build
47+
# - uses: ./.github/actions/build-docs
4848

4949
- name: Run tests
5050
run: make test
@@ -57,6 +57,21 @@ jobs:
5757
- run: make test
5858
- run: make test
5959
- run: make test
60+
- run: make test
61+
- run: make test
62+
- run: make test
63+
- run: make test
64+
- run: make test
65+
- run: make test
66+
- run: make test
67+
- run: make test
68+
- run: make test
69+
- run: make test
70+
- run: make test
71+
- run: make test
72+
- run: make test
73+
- run: make test
74+
- run: make test
6075

6176
- name: Verify typehints
6277
run: make lint
@@ -76,61 +91,61 @@ jobs:
7691
test_service_port: 9000
7792
token: ${{ secrets.GITHUB_TOKEN }}
7893

79-
windows:
80-
runs-on: windows-latest
81-
82-
defaults:
83-
run:
84-
shell: powershell
85-
86-
strategy:
87-
fail-fast: false
88-
matrix:
89-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
90-
91-
steps:
92-
- uses: actions/checkout@v4
93-
- name: Set up Python ${{ matrix.python-version }}
94-
uses: actions/setup-python@v4
95-
with:
96-
python-version: ${{ matrix.python-version }}
97-
98-
- name: Setup DynamoDB
99-
run: |
100-
$ProgressPreference = "SilentlyContinue"
101-
iwr -outf dynamo.zip https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.zip
102-
mkdir dynamo
103-
Expand-Archive -Path dynamo.zip -DestinationPath dynamo
104-
cd dynamo
105-
cmd /c "START /b java -Djava.library.path=./DynamoDBLocal_lib -jar ./DynamoDBLocal.jar"
106-
107-
- name: Setup Consul
108-
run: |
109-
$ProgressPreference = "SilentlyContinue"
110-
iwr -outf consul.zip https://releases.hashicorp.com/consul/1.4.2/consul_1.4.2_windows_amd64.zip
111-
mkdir consul
112-
Expand-Archive -Path consul.zip -DestinationPath consul
113-
cd consul
114-
sc.exe create "Consul" binPath="$(Get-Location)/consul.exe agent -dev"
115-
sc.exe start "Consul"
116-
117-
- name: Setup Redis
118-
run: |
119-
$ProgressPreference = "SilentlyContinue"
120-
iwr -outf redis.zip https://github.com/MicrosoftArchive/redis/releases/download/win-3.0.504/Redis-x64-3.0.504.zip
121-
mkdir redis
122-
Expand-Archive -Path redis.zip -DestinationPath redis
123-
cd redis
124-
./redis-server --service-install
125-
./redis-server --service-start
126-
Start-Sleep -s 5
127-
./redis-cli ping
128-
129-
- name: Install poetry
130-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
131-
132-
- name: Install requirements
133-
run: poetry install --all-extras
134-
135-
- name: Run tests
136-
run: make test
94+
# windows:
95+
# runs-on: windows-latest
96+
#
97+
# defaults:
98+
# run:
99+
# shell: powershell
100+
#
101+
# strategy:
102+
# fail-fast: false
103+
# matrix:
104+
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
105+
#
106+
# steps:
107+
# - uses: actions/checkout@v4
108+
# - name: Set up Python ${{ matrix.python-version }}
109+
# uses: actions/setup-python@v4
110+
# with:
111+
# python-version: ${{ matrix.python-version }}
112+
#
113+
# - name: Setup DynamoDB
114+
# run: |
115+
# $ProgressPreference = "SilentlyContinue"
116+
# iwr -outf dynamo.zip https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.zip
117+
# mkdir dynamo
118+
# Expand-Archive -Path dynamo.zip -DestinationPath dynamo
119+
# cd dynamo
120+
# cmd /c "START /b java -Djava.library.path=./DynamoDBLocal_lib -jar ./DynamoDBLocal.jar"
121+
#
122+
# - name: Setup Consul
123+
# run: |
124+
# $ProgressPreference = "SilentlyContinue"
125+
# iwr -outf consul.zip https://releases.hashicorp.com/consul/1.4.2/consul_1.4.2_windows_amd64.zip
126+
# mkdir consul
127+
# Expand-Archive -Path consul.zip -DestinationPath consul
128+
# cd consul
129+
# sc.exe create "Consul" binPath="$(Get-Location)/consul.exe agent -dev"
130+
# sc.exe start "Consul"
131+
#
132+
# - name: Setup Redis
133+
# run: |
134+
# $ProgressPreference = "SilentlyContinue"
135+
# iwr -outf redis.zip https://github.com/MicrosoftArchive/redis/releases/download/win-3.0.504/Redis-x64-3.0.504.zip
136+
# mkdir redis
137+
# Expand-Archive -Path redis.zip -DestinationPath redis
138+
# cd redis
139+
# ./redis-server --service-install
140+
# ./redis-server --service-start
141+
# Start-Sleep -s 5
142+
# ./redis-cli ping
143+
#
144+
# - name: Install poetry
145+
# uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
146+
#
147+
# - name: Install requirements
148+
# run: poetry install --all-extras
149+
#
150+
# - name: Run tests
151+
# run: make test

ldclient/impl/integrations/files/file_data_source.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def _load_file(self, path, all_data):
115115
with open(path, 'r') as f:
116116
content = f.read()
117117
parsed = self._parse_content(content)
118+
logger.warning('Parsed content: %s' % parsed)
118119
for key, flag in parsed.get('flags', {}).items():
119120
_sanitize_json_item(flag)
120121
self._add_item(all_data, FEATURES, flag)
@@ -220,4 +221,6 @@ def _check_file_times(self):
220221
ret[path] = os.path.getmtime(path)
221222
except:
222223
ret[path] = None
224+
225+
logger.warning('File %s last modified at %s' % (path, ret[path]))
223226
return ret

0 commit comments

Comments
 (0)