Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPS C2626885265-LARC (g3bssp) #3314

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Triggering Autotest Workflow Re-Run

9021244
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

OPS C2626885265-LARC (g3bssp) #3314

Triggering Autotest Workflow Re-Run
9021244
Select commit
Loading
Failed to load commit list.
GitHub Actions / Tested with Harmony failed Oct 12, 2024 in 0s

2 fail in 40s

2 tests  ±0   0 ✅ ±0   40s ⏱️ +18s
1 suites ±0   0 💤 ±0 
1 files   ±0   2 ❌ ±0 

Results for commit 9021244. ± Comparison against earlier commit 83be3ab.

Annotations

Check warning on line 0 in tests.verify_collection

See this annotation in the file changed.

@github-actions github-actions / Tested with Harmony

test_spatial_subset[C2626885265-LARC] (tests.verify_collection) failed

test-results/test_report.xml [took 20s]
Raw output
KeyError: 'BoundingRectangles'
granule_umm_json = {'meta': {'collection-concept-id': 'C2626885265-LARC', 'concept-id': 'G3247964839-LARC', 'concept-type': 'granule', 'f... 'ProducerGranuleId'}], 'ProductionDateTime': '2024-09-24T15:11:32.815Z'}, 'GranuleUR': 'SC:g3bssp.053:70359200', ...}}

    def get_bounding_box(granule_umm_json):
        # Find Bounding box for granule
        try:
    
            longitude_list = []
            latitude_list = []
            polygons = granule_umm_json['umm']['SpatialExtent']['HorizontalSpatialDomain']['Geometry'].get(
                'GPolygons')
            lines = granule_umm_json['umm']['SpatialExtent']['HorizontalSpatialDomain']['Geometry'].get('Lines')
            if polygons:
                for polygon in polygons:
                    points = polygon['Boundary']['Points']
                    for point in points:
                        longitude_list.append(point.get('Longitude'))
                        latitude_list.append(point.get('Latitude'))
                    break
            elif lines:
                points = lines[0].get('Points')
                for point in points:
                    longitude_list.append(point.get('Longitude'))
                    latitude_list.append(point.get('Latitude'))
    
            if not longitude_list or not latitude_list:  # Check if either list is empty
>               raise ValueError("Empty longitude or latitude list")
E               ValueError: Empty longitude or latitude list

verify_collection.py:229: ValueError

During handling of the above exception, another exception occurred:

collection_concept_id = 'C2626885265-LARC', env = 'ops'
granule_json = {'meta': {'collection-concept-id': 'C2626885265-LARC', 'concept-id': 'G3247964839-LARC', 'concept-type': 'granule', 'f... 'ProducerGranuleId'}], 'ProductionDateTime': '2024-09-24T15:11:32.815Z'}, 'GranuleUR': 'SC:g3bssp.053:70359200', ...}}
collection_variables = [{'associations': {'collections': [{'concept-id': 'C2626885265-LARC'}]}, 'meta': {'association-details': {'collections...ption': 'Extracted from _FillValue metadata attribute', 'Type': 'SCIENCE_FILLVALUE', 'Value': 2147483647}], ...}}, ...]
harmony_env = <Environment.PROD: 4>
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_spatial_subset_C2626885260')
bearer_token = 'eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfb3BzIiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIj...R1KXFK85A-Jrj1vwX-otFfx5kSK_yP_tFGLp8FM0GFHwJfVhrYPmElc-Wiz0Sj5hYc8_SzRn7gkiyr3YYH0usYrNz-2I8T4kYSl_Y3aaRnI6qBCWa1i2vw'
skip_spatial = set()

    @pytest.mark.timeout(600)
    def test_spatial_subset(collection_concept_id, env, granule_json, collection_variables,
                            harmony_env, tmp_path: pathlib.Path, bearer_token, skip_spatial):
        test_spatial_subset.__doc__ = f"Verify spatial subset for {collection_concept_id} in {env}"
    
        if collection_concept_id in skip_spatial:
            pytest.skip(f"Known collection to skip for spatial testing {collection_concept_id}")
    
        logging.info("Using granule %s for test", granule_json['meta']['concept-id'])
    
        # Compute a box that is smaller than the granule extent bounding box
>       north, south, east, west = get_bounding_box(granule_json)

verify_collection.py:399: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

granule_umm_json = {'meta': {'collection-concept-id': 'C2626885265-LARC', 'concept-id': 'G3247964839-LARC', 'concept-type': 'granule', 'f... 'ProducerGranuleId'}], 'ProductionDateTime': '2024-09-24T15:11:32.815Z'}, 'GranuleUR': 'SC:g3bssp.053:70359200', ...}}

    def get_bounding_box(granule_umm_json):
        # Find Bounding box for granule
        try:
    
            longitude_list = []
            latitude_list = []
            polygons = granule_umm_json['umm']['SpatialExtent']['HorizontalSpatialDomain']['Geometry'].get(
                'GPolygons')
            lines = granule_umm_json['umm']['SpatialExtent']['HorizontalSpatialDomain']['Geometry'].get('Lines')
            if polygons:
                for polygon in polygons:
                    points = polygon['Boundary']['Points']
                    for point in points:
                        longitude_list.append(point.get('Longitude'))
                        latitude_list.append(point.get('Latitude'))
                    break
            elif lines:
                points = lines[0].get('Points')
                for point in points:
                    longitude_list.append(point.get('Longitude'))
                    latitude_list.append(point.get('Latitude'))
    
            if not longitude_list or not latitude_list:  # Check if either list is empty
                raise ValueError("Empty longitude or latitude list")
    
            north = max(latitude_list)
            south = min(latitude_list)
            west = min(longitude_list)
            east = max(longitude_list)
    
        except (KeyError, ValueError):
    
>           bounding_box = granule_umm_json['umm']['SpatialExtent']['HorizontalSpatialDomain']['Geometry'][
                'BoundingRectangles'][0]
E           KeyError: 'BoundingRectangles'

verify_collection.py:238: KeyError
--------------------------------- Captured Log ---------------------------------
INFO     root:verify_collection.py:396 Using granule G3247964839-LARC for test

Check warning on line 0 in tests.verify_collection

See this annotation in the file changed.

@github-actions github-actions / Tested with Harmony

test_temporal_subset[C2626885265-LARC] (tests.verify_collection) failed

test-results/test_report.xml [took 17s]
Raw output
KeyError: 'RangeDateTime'
collection_concept_id = 'C2626885265-LARC', env = 'ops'
granule_json = {'meta': {'collection-concept-id': 'C2626885265-LARC', 'concept-id': 'G3247964839-LARC', 'concept-type': 'granule', 'f... 'ProducerGranuleId'}], 'ProductionDateTime': '2024-09-24T15:11:32.815Z'}, 'GranuleUR': 'SC:g3bssp.053:70359200', ...}}
collection_variables = [{'associations': {'collections': [{'concept-id': 'C2626885265-LARC'}]}, 'meta': {'association-details': {'collections...ption': 'Extracted from _FillValue metadata attribute', 'Type': 'SCIENCE_FILLVALUE', 'Value': 2147483647}], ...}}, ...]
harmony_env = <Environment.PROD: 4>
tmp_path = PosixPath('/tmp/pytest-of-runner/pytest-0/test_temporal_subset_C262688520')
bearer_token = 'eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfb3BzIiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIj...R1KXFK85A-Jrj1vwX-otFfx5kSK_yP_tFGLp8FM0GFHwJfVhrYPmElc-Wiz0Sj5hYc8_SzRn7gkiyr3YYH0usYrNz-2I8T4kYSl_Y3aaRnI6qBCWa1i2vw'
skip_temporal = {'C2036882456-POCLOUD', 'C2205121315-POCLOUD'}

    @pytest.mark.timeout(600)
    def test_temporal_subset(collection_concept_id, env, granule_json, collection_variables,
                            harmony_env, tmp_path: pathlib.Path, bearer_token, skip_temporal):
        test_spatial_subset.__doc__ = f"Verify temporal subset for {collection_concept_id} in {env}"
    
        if collection_concept_id in skip_temporal:
            pytest.skip(f"Known collection to skip for temporal testing {collection_concept_id}")
    
        logging.info("Using granule %s for test", granule_json['meta']['concept-id'])
    
>       start_time = granule_json['umm']["TemporalExtent"]["RangeDateTime"]["BeginningDateTime"]
E       KeyError: 'RangeDateTime'

verify_collection.py:557: KeyError
--------------------------------- Captured Log ---------------------------------
INFO     root:verify_collection.py:555 Using granule G3247964839-LARC for test