Skip to content

Upstream components

Component Bundled commit
SoFT 4de0a50844a6
SoFTg 5c1082a2b42f

WaLSAlib bundles selected sources from SoFT and SoFTg. Each component is pinned to a Git commit and distributed as ordinary source files, so package installation requires no Git checkout.

Source layout

  • vendor/SoFT and vendor/SoFTg contain the upstream source snapshots, licenses, and dependency declarations.
  • vendor/upstream-lock.json records repository URLs, branches, commit IDs, selected paths, and SHA-256 hashes.
  • src/WaLSAlib/_vendor contains the generated runtime packages.
  • WaLSAlib.SoFT and WaLSAlib.SoFTg provide the public interfaces.

Package-relative imports isolate the bundled components from global module names such as soft, utils, dataset, and model. See THIRD_PARTY_NOTICES.md for licenses and runtime adaptations.

Updating sources

python tools/sync_upstreams.py --check   # verify snapshots and generated sources
python tools/sync_upstreams.py --update  # retrieve upstream sources and update pins
python tools/sync_upstreams.py           # regenerate runtime sources offline

The update command reads selected Git blobs into temporary repositories. Changes to licenses or import layouts require maintainer review. For new upstream files or dependencies, update the lock, adapters, dependency declarations, package lists, and source manifest.

The upstream-sync.yml workflow runs weekly or by manual dispatch. It reports all upstream file changes before validating candidate sources and distributions. Validated routine updates open or update a pull request from upstream-sync; blocked changes produce a review issue without advancing source pins. Merging requires maintainer review. This branch is reserved for generated updates.

The workflow requires Actions PR creation to be enabled in repository settings and must be present on the default branch. GitHub may require approval for CI runs initiated by the workflow token. Configure branch protection and required checks to match the project's review policy.

Validation

The release suite covers public imports, feature detection and size filtering, FITS sequence tracking through multiprocessing, granule segmentation, numerical parity with pinned sources, a UNet++ forward/backward pass, command-line entry points, and distribution contents.

Evaluate algorithm updates against reference observations and instrument-specific metrics before acceptance. Model performance depends on training data, checkpoints, preprocessing, and observing conditions.

Additional components

Each component requires source provenance, license and dependency information, public interfaces, documentation, and tests. Imported components also need pinned source files and reproducible package adaptations. Add distribution entries to the package/module lists, source manifest, and artifact checks.

Complete upstream change reports

The weekly and manually dispatched synchronization compares the entire tracked file tree of every component in vendor/upstream-lock.json, from its pinned commit to the current configured branch head. Monitoring is independent of the selected bundle: files outside that bundle are included in the report. The file list describes the net difference between the two snapshots. Structural events are also inspected across intervening commits, including files added and subsequently removed; the comparison link supplies implementation details.

Each run produces report.json and report.md, including:

  • Before/after commit IDs, comparison links, commit counts, and complete tracked-file inventories with object IDs and file modes.
  • Added, modified, deleted, renamed, and type-changed paths, marked as bundled or outside the selected bundle.
  • Dependency, license, packaging, and workflow declarations; Python public signatures and import changes where static inspection is possible.
  • Change-size thresholds, divergent histories, missing bundled files, inspection errors, and validation status.

Text change statistics cover recognized source and declaration formats. Other paths are inventoried and reported without computing line statistics. Partial Git fetching reduces transfers, although rename detection can require additional blobs. Python interface inspection is static; dynamically generated interfaces and scientific behavior still require maintainer review. No upstream module is imported during inspection.

Reports appear in the Actions run summary and the upstream-review artifact, retained for 90 days. Reports longer than the GitHub summary/PR limit are abbreviated there; the artifact contains the complete report and inventories. Reports are retained even when adapters, source retrieval, packaging, or tests fail. A validated routine update includes the report in its proposed PR.

Structural changes, declarations, changed Python interfaces/imports, incomplete inspection, and large changes stop pin advancement by default. A failed or blocked update opens or updates the Upstream changes require review issue with a workflow link. Follow-up inspections comment on the issue so subscribers can receive notifications. Subscribe to that issue and enable repository/Actions failure notifications. Scheduled Actions can be delayed or disabled by GitHub; periodically confirm successful runs in the Actions tab.

Reviewing a blocked update

Download the upstream-review artifact and inspect its report and upstream comparison. Decide whether new files belong in the distribution; update selected paths, adapters, dependencies, licenses, manifests, and tests as necessary. New files are never included merely because they appeared upstream.

After reviewing the listed changes, prepare the candidate locally:

python tools/sync_upstreams.py --update --report-dir /tmp/walsalib-upstream-review --accept-reviewed-changes
python tools/sync_upstreams.py --check
python -m pytest tests/release

--accept-reviewed-changes acknowledges the report's review gates; it does not repair missing files, adjust dependencies, create runtime adapters, or bypass scientific/package tests. Recheck the new report before accepting changes because upstream may have advanced since the earlier run. Run distribution validation from the contributing guide and submit the reviewed source changes for maintainer approval. Close the review issue once resolved.

Configuring additional repositories

The report iterates every component in the lock file and does not depend on SoFT/SoFTg names. Each component supplies repository, ref, commit, files, and sha256. Bundling a new component additionally requires its own runtime mapping, public interface, license review, package lists, and tests; an unknown component is not silently assigned another component's runtime namespace.

Optional per-component review_policy settings customize review thresholds and repository-specific declarations:

{
  "large_change_files": 20,
  "large_change_lines": 500,
  "watch_paths": ["**/Project.toml", "configuration/**"]
}

Place this object under the component's review_policy key. Thresholds apply at or above the specified value. All changed paths remain visible regardless of classification; extend watch_paths for nonstandard dependency or configuration files that should always require explicit review.