Skip to content

Promote deploy-test into main#75

Merged
chrisbc merged 46 commits intomainfrom
deploy-test
Oct 7, 2025
Merged

Promote deploy-test into main#75
chrisbc merged 46 commits intomainfrom
deploy-test

Conversation

@chrisbc
Copy link
Copy Markdown
Member

@chrisbc chrisbc commented Oct 7, 2025

This will merge and deploy latest API changes to production

Main changes:

DrCuriosity and others added 30 commits July 4, 2024 17:20
* Update cached functions to use migrated functions from latest Solvis pre-release.

- filter_set_logic_operations:
    - Graphene type derived from Solvis enum
    - _solvis_join() helper to convert filter_set_options to native Solvis enum

- composite_rupture_sections: fixed an easy deprecation warning

- cached:
    - get_rupture_ids_for_location_radius calls solvis version with a deprecation warning
    - get_rupture_ids_for_fault_names calls solvis version with a deprecation warning
    - update calls to both of the above to use their respective solvis versions

* Black+isort on tests too, for tidiness

* Updates for pre-release versions of solvis, solvis-store.

Update nzshm-model to 0.6
Update nzshm-common to 0.7
Update solvis to pre-release branch (0.12.0.alpha.1)
Update solvis-store to pre-release branch

For nzshm-model 0.6: get_rupture_ids_for_location_radius_stored now getting
rupture_set_id values from branch inversion sources

* filter_set_logic_operations: More verbose import for Solvis typing

This makes it clearer in the code that we're not using the native
Python typing module.

(Also filtering out `if TYPE_CHECKING:` blocks from coverage tests,
while I'm here.)

* Documenting deprecation warning fix in composite_rupture_sections.py.
* test_rupture_sorting_function: clearing LRU cache between tests (#55)
* update packages to use solvis@latest; fix API changes;
* remove python 3.9 from tox setup; set serverless runtime python 3.10
* drop python3.9 support; updated dependencies; changelog
* disable use of solvi-store
* skip tests that expect solvis-store
* detox;

---------

Co-authored-by: Chris Chamberlain <chrisbc@artisan.co.nz>
* deployment tweaks WIP
* reinstate tests (caching still active);detox;
* first implementation of BinaryLargeObject;
* added S3 blob attribute to store
* remove unneeded modules
* refactor compositie_solution
* WIP on refactoring; data_store; fixtures; composite solution based tests are broken;
* fixed broken test setup; detoxed
* defeat caching for all tests; much slower tests for now;
* make sure tests do not hit server!
* configure services for data layer;
* cli and tests for new modelBinaryLargeObject for CompositeSolution objects
* fix tests for new get_composite_solution;
* add deployment exclusions; configure s3 region_name; update readme and chamgelog;
* Bump version: 0.8.6 → 0.9.0
* removed solvis_store caching option; clean up tests;
* remove unused data_store modules;
* warmer config for dev;
* GHA action versions; python version as string;
* convert tests to tiny fixture;
* refactor indexing on new dynamodb table
* smaller test fixture
* fix method call
* clean up comments; bump release date;
* remove python3.9 support; remove backoff dependency;
* fix get call in cli
* update changelog
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 7, 2025

Codecov Report

❌ Patch coverage is 94.79495% with 33 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.80%. Comparing base (31dc029) to head (0394c05).
⚠️ Report is 84 commits behind head on main.

Files with missing lines Patch % Lines
solvis_graphql_api/data_store/model.py 83.33% 14 Missing and 5 partials ⚠️
solvis_graphql_api/composite_solution/cached.py 82.97% 8 Missing ⚠️
...i/composite_solution/composite_rupture_sections.py 88.88% 4 Missing ⚠️
solvis_graphql_api/data_store/config.py 85.71% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main      #75      +/-   ##
===========================================
- Coverage   100.00%   95.80%   -4.20%     
===========================================
  Files            2       20      +18     
  Lines           32     1143    +1111     
  Branches         0       54      +54     
===========================================
+ Hits            32     1095    +1063     
- Misses           0       34      +34     
- Partials         0       14      +14     
Flag Coverage Δ
unittests 95.80% <94.79%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chrisbc chrisbc marked this pull request as ready for review October 7, 2025 01:20
@chrisbc chrisbc merged commit d3d723c into main Oct 7, 2025
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants