feat(esm_catalog): PR-A1c — HPC storage extension#1511
Open
siligam wants to merge 2 commits into
Open
Conversation
Adds src/esm_catalog/hpc.py: add_hpc_extension(item, path, machine_config) sets hpc:facility, hpc:system, hpc:storage_tier (item properties) and hpc:storage_type (data asset) from a caller-supplied machine_config dict, plus hpc:last_access from path.stat().st_atime. No path-pattern matching or filesystem probing — the caller already knows which machine it's running on and passes that machine's config section down, per the PR-A1a foundation plan. hpc:state and hpc:recall_time_estimate (subprocess-based dmattr/lfs HSM queries) are dropped per plan. CollectionContext gets a new optional machine_config field; make_item wires add_hpc_extension in unconditionally (no-op without machine_config beyond last_access, for graceful degradation). Adds configs/stac-extensions/hpc/v1.0.0/schema.json (custom extension, no external schema exists) and tests/test_esm_catalog/test_hpc.py.
2 tasks
siligam
added a commit
that referenced
this pull request
Jul 15, 2026
This was referenced Jul 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of the esm_catalog decomposition, per the PR-A1a foundation plan. Follows #1504 (A1b core), branches from
release.Adds
src/esm_catalog/hpc.py:add_hpc_extension(item, path, machine_config)setshpc:facility,hpc:system,hpc:storage_tier(item properties) andhpc:storage_type(data asset) from a caller-suppliedmachine_configdict, plushpc:last_accessfrompath.stat().st_atime.No path-pattern matching or filesystem probing — per the plan, the caller already knows which machine it's running on and passes that machine's config section down directly.
hpc:state/hpc:recall_time_estimate(subprocess-baseddmattr/lfsHSM queries) are dropped per plan.CollectionContextgets a new optionalmachine_configfield;make_itemwiresadd_hpc_extensionin unconditionally (no-op beyondhpc:last_accesswhenmachine_configisNone, for graceful degradation).Also adds
configs/stac-extensions/hpc/v1.0.0/schema.json(custom extension — no external community schema exists for this one) andtests/test_esm_catalog/test_hpc.py.Test plan
pytest tests/test_esm_catalog— 50 passedtest_hpc.pycovers: no-op without config/stat, last_access-only degradation, facility/system/tier population, hot/warm/cold tier mapping, missing asset safety, idempotent URL append,make_itemwiring, and schema validation viajsonschema