Skip to content

Commit df6e646

Browse files
committed
Stabilize CI runtime dependencies
1 parent 0d62b1f commit df6e646

4 files changed

Lines changed: 14 additions & 24 deletions

File tree

.github/workflows/testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set Up Python
1515
uses: actions/setup-python@v6
1616
with:
17-
python-version: '3.x'
17+
python-version: '3.12'
1818

1919
# Unlike the code-check workflow, this job requires the dev dependencies to be
2020
# installed to make sure we have the necessary, tools, stub files, etc.
@@ -25,7 +25,7 @@ jobs:
2525
uses: actions/cache@v5
2626
with:
2727
path: ./.venv
28-
key: venv-${{ hashFiles('poetry.lock') }}
28+
key: ${{ runner.os }}-py3.12-venv-${{ hashFiles('poetry.lock') }}
2929

3030
- name: Install Dependencies
3131
run: poetry install
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AUTH_RE_ENABLE_NON_HASH_KEY_SUPPORT=true
2+
INCLUDE_ERROR_STACK_TRACES=true
3+
USE_OBJECT_STORAGE_BLOBS=false

docker-compose.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
- ORACLE_PASSWORD=badSYSpassword
1010
- CWMS_PASSWORD=simplecwmspasswD1
1111
- OFFICE_ID=HQ
12-
- OFFICE_EROC=s0
12+
- OFFICE_EROC=q0
1313
ports: ["1526:1521"]
1414
healthcheck:
1515
test: ["CMD", "tnsping", "FREEPDB1"]
@@ -27,7 +27,7 @@ services:
2727
- SYS_PASSWORD=badSYSpassword
2828
# set to HQ/q0 for any national system work
2929
- OFFICE_ID=HQ
30-
- OFFICE_EROC=s0
30+
- OFFICE_EROC=q0
3131
- INSTALLONCE=1
3232
- QUIET=1
3333
command: >
@@ -52,15 +52,17 @@ services:
5252
condition: service_completed_successfully
5353
traefik:
5454
condition: service_healthy
55-
image: ${CWMS_DATA_API_IMAGE:-ghcr.io/usace/cwms-data-api:latest}
55+
image: ${CWMS_DATA_API_IMAGE:-ghcr.io/usace/cwms-data-api:develop-2026.05.30}
5656
restart: unless-stopped
5757
volumes:
5858
- ./compose_files/pki/certs:/conf/
59+
- ./compose_files/togglz/features.properties:/conf/features.properties:ro
5960
- ./compose_files/tomcat/logging.properties:/usr/local/tomcat/conf/logging.properties:ro
6061
environment:
62+
- JAVA_OPTS=-Dproperties.file=/conf/features.properties
6163
- CDA_JDBC_DRIVER=oracle.jdbc.driver.OracleDriver
6264
- CDA_JDBC_URL=jdbc:oracle:thin:@db/FREEPDB1
63-
- CDA_JDBC_USERNAME=s0webtest
65+
- CDA_JDBC_USERNAME=q0webtest
6466
- CDA_JDBC_PASSWORD=simplecwmspasswD1
6567
- CDA_POOL_INIT_SIZE=5
6668
- CDA_POOL_MAX_ACTIVE=10
@@ -140,4 +142,3 @@ services:
140142
- "traefik.enable=true"
141143
- "traefik.http.routers.traefik.rule=PathPrefix(`/traefik`)"
142144
- "traefik.http.routers.traefik.service=api@internal"
143-

tests/cda/timeseries/timeseries_groups_test.py

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -155,24 +155,10 @@ def test_update_timeseries_groups():
155155

156156
def test_delete_timeseries_group():
157157

158-
# update with no timeseries in the group first
159-
df = pd.DataFrame(columns=["timeseries-id", "office-id", "alias"])
160-
161-
json_dict = tg.timeseries_group_df_to_json(
162-
data=df,
158+
# delete the group
159+
tg.delete_timeseries_group(
163160
group_id=TEST_GROUP_ID,
164-
group_office_id=TEST_OFFICE,
165-
category_office_id=TEST_OFFICE,
166161
category_id=TEST_CATEGORY_ID,
167-
)
168-
tg.update_timeseries_groups(
169-
group_id=TEST_GROUP_ID,
170162
office_id=TEST_OFFICE,
171-
replace_assigned_ts=True,
172-
data=json_dict,
173-
)
174-
175-
# delete the group
176-
tg.delete_timeseries_group(
177-
group_id=TEST_GROUP_ID, category_id=TEST_CATEGORY_ID, office_id=TEST_OFFICE
163+
cascade_delete=True,
178164
)

0 commit comments

Comments
 (0)