Skip to content
GitHub Actions / Tested with Harmony failed Jun 21, 2024 in 0s

1 fail in 37s

1 tests  ±0   0 ✅ ±0   37s ⏱️ -6s
1 suites ±0   0 💤 ±0 
1 files   ±0   1 ❌ ±0 

Results for commit b8c6da9. ± Comparison against earlier commit d045e15.

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_concatenate[C1259177827-ASDC_DEV2] (tests.verify_collection) failed

test-results/test_report.xml [took 34s]
Raw output
AssertionError: assert 1 == 2
 +  where 1 = len(<class 'netCDF4._netCDF4.Variable'>\nvlen subset_files(subset_index)\n    long_name: List of subsetted files used to create this merge product.\nvlen data type: <class 'str'>\nunlimited dimensions: \ncurrent shape = (1,))
collection_concept_id = 'C1259177827-ASDC_DEV2'
harmony_env = <Environment.UAT: 3>
bearer_token = 'eyJ0eXAiOiJKV1QiLCJvcmlnaW4iOiJFYXJ0aGRhdGEgTG9naW4iLCJzaWciOiJlZGxqd3RwdWJrZXlfdWF0IiwiYWxnIjoiUlMyNTYifQ.eyJ0eXBlIj...LYxyzmX5kruGmecTBH0oLAkmaBiJHqsuOHSUdInwX3m82oH20B1kE8Y17ULwkilNLfZchCfHMikRkFN48hGuCctO2qPYD3NGQ-xVWI4hO2xdPhDFhffAeg'

    @pytest.mark.timeout(600)
    def test_concatenate(collection_concept_id, harmony_env, bearer_token):
    
        max_results = 2
    
        harmony_client = harmony.Client(env=harmony_env, token=bearer_token)
        collection = harmony.Collection(id=collection_concept_id)
    
        request = harmony.Request(
            collection=collection,
            concatenate=True,
            max_results=max_results,
            skip_preview=True,
            format="application/x-netcdf4",
        )
    
        request.is_valid()
    
        logging.info("Sending harmony request %s", harmony_client.request_as_url(request))
    
        job1_id = harmony_client.submit(request)
    
        logging.info(f'\n{job1_id}')
    
        logging.info(harmony_client.status(job1_id))
    
        logging.info('\nWaiting for the job to finish')
    
        results = harmony_client.result_json(job1_id)
    
        logging.info('\nDownloading results:')
    
        futures = harmony_client.download_all(job1_id)
        file_names = [f.result() for f in futures]
        logging.info('\nDone downloading.')
    
        filename = file_names[0]
    
        # Handle time dimension and variables dropping
        merge_dataset = netCDF4.Dataset(filename, 'r')
    
        headers = {
            "Authorization": f"Bearer {bearer_token}"
        }
    
        original_files = merge_dataset.variables['subset_files']
        history_json = json.loads(merge_dataset.history_json)
>       assert len(original_files) == max_results
E       AssertionError: assert 1 == 2
E        +  where 1 = len(<class 'netCDF4._netCDF4.Variable'>\nvlen subset_files(subset_index)\n    long_name: List of subsetted files used to create this merge product.\nvlen data type: <class 'str'>\nunlimited dimensions: \ncurrent shape = (1,))

tests/verify_collection.py:249: AssertionError
--------------------------------- Captured Log ---------------------------------
INFO     root:verify_collection.py:220 Sending harmony request https://harmony.uat.earthdata.nasa.gov/C1259177827-ASDC_DEV2/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?forceAsync=true&format=application%2Fx-netcdf4&maxResults=2&concatenate=true&skipPreview=true
INFO     root:verify_collection.py:224 
45ccf143-f305-4671-8068-1d1d82dd9513
INFO     root:verify_collection.py:226 {'status': 'running', 'message': 'CMR query identified 1205 granules, but the request has been limited to process only the first 2 granules because you requested 2 maxResults.', 'progress': 0, 'created_at': datetime.datetime(2024, 6, 21, 8, 30, 48, 475000, tzinfo=tzlocal()), 'updated_at': datetime.datetime(2024, 6, 21, 8, 30, 48, 475000, tzinfo=tzlocal()), 'created_at_local': '2024-06-21T08:30:48+00:00', 'updated_at_local': '2024-06-21T08:30:48+00:00', 'request': 'https://harmony.uat.earthdata.nasa.gov/C1259177827-ASDC_DEV2/ogc-api-coverages/1.0.0/collections/all/coverage/rangeset?forceAsync=true&format=application%2Fx-netcdf4&maxResults=2&concatenate=true&skipPreview=true', 'num_input_granules': 2, 'data_expiration': datetime.datetime(2024, 7, 21, 8, 30, 48, 475000, tzinfo=tzlocal()), 'data_expiration_local': '2024-07-21T08:30:48+00:00'}
INFO     root:verify_collection.py:228 
Waiting for the job to finish
INFO     root:verify_collection.py:232 
Downloading results:
INFO     root:verify_collection.py:236 
Done downloading.