Skip to content

CI: unit tests before publish - #26

Merged
alexisjacquesson-blip merged 1 commit into
developfrom
feature/add_unitTest_CI
Nov 9, 2026
Merged

alexisjacquesson-blip merged 1 commit into
developfrom
feature/add_unitTest_CI

Conversation

@alexisjacquesson-blip

Copy link
Copy Markdown
Collaborator

CI:

  • pypi.yml: run grs/tests/unit/ before build/publish.
  • main.yml: Job Summary (tests + coverage) and HTML coverage report upload on every run; free disk space before podman-build

…g core dependencies; fix production bugs left by a bad merge; bump to 3.0.0

CI:
- pypi.yml: run grs/tests/unit/ before build/publish.
- main.yml: Job Summary (tests + coverage) and HTML coverage report upload on every run;
  free disk space before podman-build (torch/omnicloudmask pushed it over the runner's
  default headroom); robust version extraction for the Docker tag (grs.__version__, same
  method as pypi.yml) instead of a grep on pyproject.toml that matched two lines.
- mirror-to-gitlab/action.yml: batch git cat-file calls instead of one process per blob
  occurrence (the dominant cost of the GitLab sync job), and fix the resulting path mapping
  to keep every path of a blob shared by several files (e.g. duplicate SMAC coefficient
  files), which a first pass had dropped.

Dependencies (requirements.txt): platformdirs, dask, cdsapi, zarr, h5netcdf, h5py,
omnicloudmask were used by the code (sometimes unconditionally) but missing.

Production bugs (already on develop, not introduced here) found while getting the full
test suite to pass:
- grs_process.py: restored module-level helpers dropped by a past merge
  (_correct_gas_absorption, _interp_like, _with_workers, _cams_from_archive,
  _aerosol_settings, NETCDF_ENGINE, _OUTPUT_EXTENSIONS); removed a dead pre-Kernel-refactor
  block in execute() that referenced undefined names and silently clobbered gas_trans/dem.
- mask.py: restored Masking's missing machinery (_register, _wl_index, _require,
  _flags_lazy, _run, _nodata_step, _pixel_size, _ocm_factor, _get_omnicloudmask,
  _water_step, _OCM_VERSION); fixed cirrus_mask (undefined icirrus), _surfwater_step
  (never returned its _Step), duplicate_landsat_flags (bitmasks collided with the
  OmniCloudMask bits, broken body) and process() (never built its steps list).
- run.py: restored limit_malloc_arenas and set_ofile; fixed the docopt Usage: pattern
  missing --aot_resolution.
- tests/unit/conftest.py: restored the SAFE constant; fixed luts_available() crashing
  (TypeError) instead of skipping when GRSDATA is unset.
- tests/integration_tests/conftest.py: added (never existed) with l1c_path, cams_path
  and the l2a_zarr fixture the existing end-to-end test needed.

pyproject.toml / grs/__init__.py: version is now truly dynamic (sourced from
grs.__version__, the single source of truth) instead of duplicated as a stale literal;
bumped to 3.0.0.
@alexisjacquesson-blip
alexisjacquesson-blip merged commit b7b45cc into develop Nov 9, 2026
13 checks passed
@alexisjacquesson-blip
alexisjacquesson-blip deleted the feature/add_unitTest_CI branch November 9, 2026 10:54
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.

1 participant