diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 7e0f5bbb..36aedca5 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -14,6 +14,6 @@ on: jobs: call-changelog-check-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-changelog-check.yml@v0.9.0 secrets: USER_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/create-jira-issue.yml b/.github/workflows/create-jira-issue.yml index 3a138e94..e87e1c24 100644 --- a/.github/workflows/create-jira-issue.yml +++ b/.github/workflows/create-jira-issue.yml @@ -6,7 +6,7 @@ on: jobs: call-create-jira-issue-workflow: - uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-create-jira-issue.yml@v0.9.0 secrets: JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} diff --git a/.github/workflows/labeled-pr.yml b/.github/workflows/labeled-pr.yml index dcb89f1c..045aecae 100644 --- a/.github/workflows/labeled-pr.yml +++ b/.github/workflows/labeled-pr.yml @@ -13,4 +13,4 @@ on: jobs: call-labeled-pr-check-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-labeled-pr-check.yml@v0.9.0 diff --git a/.github/workflows/release-checklist-comment.yml b/.github/workflows/release-checklist-comment.yml index 795b49f9..04248b84 100644 --- a/.github/workflows/release-checklist-comment.yml +++ b/.github/workflows/release-checklist-comment.yml @@ -10,7 +10,7 @@ on: jobs: call-release-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-release-checklist-comment.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-release-checklist-comment.yml@v0.9.0 permissions: pull-requests: write secrets: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 524cdfda..988debc7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,7 +8,7 @@ on: jobs: call-release-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-release.yml@v0.9.0 with: release_prefix: HyP3 ISCE2 secrets: diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 68ae2e85..f3556a7a 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -5,10 +5,10 @@ on: push jobs: call-secrets-analysis-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-secrets-analysis.yml@v0.9.0 call-flake8-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-flake8.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-flake8.yml@v0.9.0 with: local_package_names: hyp3_isce2 diff --git a/.github/workflows/tag-version.yml b/.github/workflows/tag-version.yml index 3ffa55c3..8fc5e484 100644 --- a/.github/workflows/tag-version.yml +++ b/.github/workflows/tag-version.yml @@ -8,7 +8,7 @@ on: jobs: call-bump-version-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-bump-version.yml@v0.9.0 with: user: tools-bot email: UAF-asf-apd@alaska.edu diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml index 4bc274a0..1187d2a8 100644 --- a/.github/workflows/test-and-build.yml +++ b/.github/workflows/test-and-build.yml @@ -13,7 +13,7 @@ on: jobs: call-pytest-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-pytest.yml@v0.9.0 with: local_package_name: hyp3_isce2 python_versions: >- @@ -21,12 +21,12 @@ jobs: call-version-info-workflow: # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-version-info.yml@v0.9.0 call-docker-ghcr-workflow: needs: call-version-info-workflow # Docs: https://github.com/ASFHyP3/actions - uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.8.3 + uses: ASFHyP3/actions/.github/workflows/reusable-docker-ghcr.yml@v0.9.0 with: version_tag: ${{ needs.call-version-info-workflow.outputs.version_tag }} release_branch: main diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a92ae4a..55e8e013 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [PEP 440](https://www.python.org/dev/peps/pep-0440/) and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.9.3] +### Changed +* Upgraded to `hyp3lib=>3,<4` from `>=2,<3` +### Fixed +* @scottyhq fixed excessively verbose logging due to ISCE2 setting the root logger to `DEBUG` in [#176](https://github.com/ASFHyP3/hyp3-isce2/issues/176) + ## [0.9.2] ### Fixed * `No annotation xml file` error in `insar_tops_burst` when processing HH pairs. Fixes [#168](https://github.com/ASFHyP3/hyp3-isce2/issues/168). diff --git a/environment.yml b/environment.yml index bd6e16ae..d09871c8 100644 --- a/environment.yml +++ b/environment.yml @@ -28,4 +28,4 @@ dependencies: - pytest-cov - pytest-mock # For running - - hyp3lib>=2,<3 + - hyp3lib>=3,<4 diff --git a/pyproject.toml b/pyproject.toml index 2e44fae5..3aa3efe3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ "asf_search>=6.4.0", "geopandas", "gdal", - "hyp3lib>=2,<3", + "hyp3lib>=3,<4", # Conda-forge only dependencies are listed below # "opencv", # "isce2>=2.6.3", diff --git a/src/hyp3_isce2/__init__.py b/src/hyp3_isce2/__init__.py index 1f987c08..9115e69b 100644 --- a/src/hyp3_isce2/__init__.py +++ b/src/hyp3_isce2/__init__.py @@ -1,4 +1,5 @@ """HyP3 plugin for ISCE2 processing""" +import logging import os from importlib.metadata import version from pathlib import Path @@ -6,13 +7,18 @@ # Ensures all ISCE2 paths and environment variables are set when using this module, see: # https://github.com/isce-framework/isce2/blob/main/__init__.py#L41-L50 import isce # noqa: F401 + +# ISCE2 sets the root logger to DEBUG resulting in excessively verbose logging, see: +# https://github.com/isce-framework/isce2/issues/258 +root_logger = logging.getLogger() +root_logger.setLevel('WARNING') + # ISCE2 also needs its applications to be on the system path, even though they say it's only "for convenience", see: # https://github.com/isce-framework/isce2#setup-your-environment ISCE_APPLICATIONS = str(Path(os.environ['ISCE_HOME']) / 'applications') if ISCE_APPLICATIONS not in (PATH := os.environ['PATH'].split(os.pathsep)): os.environ['PATH'] = os.pathsep.join([ISCE_APPLICATIONS] + PATH) - __version__ = version(__name__) __all__ = [