Skip to content

Commit aff9055

Browse files
authored
Merge pull request #33 from GNS-Science/chore/memory_limit_workaround_version_changelog
fixes for: - memory configuration - missed changelog/bump2version (from previous PR)
2 parents 60e36a4 + a2289b4 commit aff9055

7 files changed

Lines changed: 24 additions & 5 deletions

File tree

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.3.1
2+
current_version = 0.4.0
33
commit = True
44
tag = False
55

.llm/log.jsonl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
{"timestamp":"2026-02-24T11:30:00Z","session_start":"2026-02-23T00:00:00Z","project_name":"nshm-hazard-graphql-api","project_root":"nshm-hazard-graphql-api","model":"glm-5:cloud","tool":"opencode","duration_min":90,"tokens_in":85000,"tokens_out":25000,"commits":["5057d4c"],"files":{"read":["nshm_hazard_graphql_api/schema/toshi_hazard/gridded_hazard.py","tests/conftest.py","tests/test_gridded_hazard.py","tests/test_gridded_hazard_with_nulls.py","tests/test_gridded_hazard_fix_issue_79.py","tests/test_gridded_hazard_helpers.py","tests/test_hazard_curve_migration.py"],"created":["tests/fixtures/gridded_hazard/DS/"],"modified":["nshm_hazard_graphql_api/schema/toshi_hazard/gridded_hazard.py","tests/conftest.py","tests/test_gridded_hazard.py","tests/test_gridded_hazard_with_nulls.py","tests/test_gridded_hazard_fix_issue_79.py","tests/test_gridded_hazard_helpers.py","tests/test_hazard_curve_migration.py"]},"summary":"Update gridded_hazard for THS 1.4.0: replaced deprecated get_one_gridded_hazard with get_gridded_hazard, updated model attributes (aggr, accel_levels), refactored tests from unittest to pytest style with parquet fixtures","user_notes":"new THS library version"}
22
{"timestamp":"2026-02-25T21:04:56Z","session_start":"2026-02-25T20:22:11Z","project_name":"nshm-hazard-graphql-api","project_root":"nshm-hazard-graphql-api","model":"claude-sonnet-4-6","tool":"opencode","duration_min":43,"tokens_in":0,"tokens_out":0,"commits":["732d6d5","67fb25a","bda10e9"],"files":{"read":["package.json","serverless.yml","pyproject.toml",".env",".env.tests","DEVELOPMENT.md","setup.cfg"],"created":["CLAUDE.md",".yarnrc.yml"],"modified":["DEVELOPMENT.md","serverless.yml",".env.tests","setup.cfg"]},"summary":"Fixed Yarn Berry PnP issue for serverless-wsgi local dev; corrected THS env var names (DATASET_AGGR_ENABLED->THS_DATASET_AGGR_ENABLED); added THS_DATASET_GRIDDED_URI; updated DEVELOPMENT.md with full config reference; removed redundant tox build env","user_notes":"fix env variable, and docs, and remove redundant tox step (build). Tested with graphql locally."}
3+
{"timestamp":"2026-03-02T00:15:00Z","session_start":"2026-03-02T00:00:00Z","project_name":"nshm-hazard-graphql-api","project_root":"nshm-hazard-graphql-api","model":"claude-sonnet-4","tool":"claude-code","duration_min":15,"tokens_in":8500,"tokens_out":1800,"commits":[],"files":{"read":["CHANGELOG.md",".llm/.session"],"created":[],"modified":["CHANGELOG.md"]},"summary":"Updated CHANGELOG.md with version 0.4.0 entry for THS 1.4.2 upgrade and configuration changes","user_notes":"complete missing changelog, memory config"}

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Changelog
22

3+
## [0.4.0] - 2026-03-02
4+
5+
### Changed
6+
- Update to toshi-hazard-store 1.4.2 with new gridded API (replaces deprecated get_one_gridded_hazard)
7+
- Rename DATASET_AGGR_* env vars to THS_DATASET_AGGR_* for consistency
8+
- Add THS_DATASET_GRIDDED_URI configuration
9+
- Refactor tests from unittest to pytest with parquet fixtures
10+
- Remove mock-based testing in favor of fixture data
11+
12+
### Added
13+
- .yarnrc.yml with node-modules linker (fixes serverless-wsgi local dev)
14+
- CLAUDE.md for AI assistant context
15+
- LLM session logging to .llm/log.jsonl
16+
17+
### Removed
18+
- tox build environment (not needed for serverless deployment)
19+
- test_gridded_hazard_moto.py (no longer needed)
20+
321
## [0.3.1] - 2025-11-25
422

523
### Changed

nshm_hazard_graphql_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
__author__ = """GNS Science New Zealand"""
44
__email__ = 'nshm@gns.cri.nz'
5-
__version__ = '0.3.1'
5+
__version__ = '0.4.0'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nshm-hazard-graphql-api",
3-
"version": "0.3.1",
3+
"version": "0.4.0",
44
"description": "A graphql API for NSHM hazard.",
55
"scripts": {
66
"sls_requirements_1": "serverless requirements clean",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "nshm-hazard-graphql-api"
3-
version = "0.3.1"
3+
version = "0.4.0"
44
homepage = "https://github.com/gns-science/nshm-hazard-graphql-api"
55
description = "A Grapql API for NZHSM Hazard.."
66
authors = [

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ functions:
175175
- '/lambda-entrypoint.sh'
176176

177177
description: The graphql API of ${self:service}
178-
memorySize: 4096 # optional, in MB, default is 1024
178+
memorySize: 3008 # was previously 4096, but not currently supported (why not)
179179
timeout: 20 # optional, in seconds, default is 6
180180
events:
181181
- http:

0 commit comments

Comments
 (0)