Skip to content
GitHub Actions / Tested with Harmony failed Mar 3, 2025 in 0s

2 errors in 3s

2 tests   0 ✅  3s ⏱️
1 suites  0 💤
1 files    0 ❌  2 🔥

Results for commit 855bf3a.

Annotations

Check failure on line 0 in tests.verify_collection

See this annotation in the file changed.

@github-actions github-actions / Tested with Harmony

test_spatial_subset[C2927885129-POCLOUD] (tests.verify_collection) with error

test-results/test_report.xml [took 0s]
Raw output
failed on setup with "Failed: No granules found for OPS collection C2927885129-POCLOUD. CMR search used was https://cmr.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C2927885129-POCLOUD&sort_key=-start_date&page_size=1"
collection_concept_id = 'C2927885129-POCLOUD'
cmr_mode = 'https://cmr.earthdata.nasa.gov/search/'
bearer_token = 'eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfb3BzIiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIj...NVVKFYPVfHyjSN89lHeGrsiqbnmnLiwCwJTisRjrsC3_l2KufgrgEu5ms0yEcq1Awi3iKCCooIiCJR_93oD_8tIkvUtfHRphaybBjBf9XsWhmo8DXD2y5w'
request_session = <requests.sessions.Session object at 0x7f2a14ff6fb0>

    @pytest.fixture(scope="function")
    def granule_json(collection_concept_id: str, cmr_mode: str, bearer_token: str, request_session) -> dict:
        '''
        This fixture defines the strategy used for picking a granule from a collection for testing
    
        Parameters
        ----------
        collection_concept_id
        cmr_mode
        bearer_token
    
        Returns
        -------
        umm_json for selected granule
        '''
        cmr_url = f"{cmr_mode}granules.umm_json?collection_concept_id={collection_concept_id}&sort_key=-start_date&page_size=1"
    
        response_json = request_session.get(cmr_url, headers={'Authorization': f'Bearer {bearer_token}'}).json()
    
        if 'items' in response_json and len(response_json['items']) > 0:
            return response_json['items'][0]
        elif cmr_mode == cmr.CMR_UAT:
            pytest.fail(f"No granules found for UAT collection {collection_concept_id}. CMR search used was {cmr_url}")
        elif cmr_mode == cmr.CMR_OPS:
>           pytest.fail(f"No granules found for OPS collection {collection_concept_id}. CMR search used was {cmr_url}")
E           Failed: No granules found for OPS collection C2927885129-POCLOUD. CMR search used was https://cmr.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C2927885129-POCLOUD&sort_key=-start_date&page_size=1

verify_collection.py:127: Failed
--------------------------------- Captured Log ---------------------------------

Check failure on line 0 in tests.verify_collection

See this annotation in the file changed.

@github-actions github-actions / Tested with Harmony

test_temporal_subset[C2927885129-POCLOUD] (tests.verify_collection) with error

test-results/test_report.xml [took 0s]
Raw output
failed on setup with "Failed: No granules found for OPS collection C2927885129-POCLOUD. CMR search used was https://cmr.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C2927885129-POCLOUD&sort_key=-start_date&page_size=1"
collection_concept_id = 'C2927885129-POCLOUD'
cmr_mode = 'https://cmr.earthdata.nasa.gov/search/'
bearer_token = 'eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfb3BzIiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIj...NVVKFYPVfHyjSN89lHeGrsiqbnmnLiwCwJTisRjrsC3_l2KufgrgEu5ms0yEcq1Awi3iKCCooIiCJR_93oD_8tIkvUtfHRphaybBjBf9XsWhmo8DXD2y5w'
request_session = <requests.sessions.Session object at 0x7f2a14ff6fb0>

    @pytest.fixture(scope="function")
    def granule_json(collection_concept_id: str, cmr_mode: str, bearer_token: str, request_session) -> dict:
        '''
        This fixture defines the strategy used for picking a granule from a collection for testing
    
        Parameters
        ----------
        collection_concept_id
        cmr_mode
        bearer_token
    
        Returns
        -------
        umm_json for selected granule
        '''
        cmr_url = f"{cmr_mode}granules.umm_json?collection_concept_id={collection_concept_id}&sort_key=-start_date&page_size=1"
    
        response_json = request_session.get(cmr_url, headers={'Authorization': f'Bearer {bearer_token}'}).json()
    
        if 'items' in response_json and len(response_json['items']) > 0:
            return response_json['items'][0]
        elif cmr_mode == cmr.CMR_UAT:
            pytest.fail(f"No granules found for UAT collection {collection_concept_id}. CMR search used was {cmr_url}")
        elif cmr_mode == cmr.CMR_OPS:
>           pytest.fail(f"No granules found for OPS collection {collection_concept_id}. CMR search used was {cmr_url}")
E           Failed: No granules found for OPS collection C2927885129-POCLOUD. CMR search used was https://cmr.earthdata.nasa.gov/search/granules.umm_json?collection_concept_id=C2927885129-POCLOUD&sort_key=-start_date&page_size=1

verify_collection.py:127: Failed
--------------------------------- Captured Log ---------------------------------