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

test_rasterio_vrt_network is failing in continuous integration tests #3083

Closed
shoyer opened this issue Jul 5, 2019 · 3 comments · Fixed by #3162
Closed

test_rasterio_vrt_network is failing in continuous integration tests #3083

shoyer opened this issue Jul 5, 2019 · 3 comments · Fixed by #3162

Comments

@shoyer
Copy link
Member

shoyer commented Jul 5, 2019

    @network
    def test_rasterio_vrt_network(self):
        import rasterio
    
        url = 'https://storage.googleapis.com/\
        gcp-public-data-landsat/LC08/01/047/027/\
        LC08_L1TP_047027_20130421_20170310_01_T1/\
        LC08_L1TP_047027_20130421_20170310_01_T1_B4.TIF'
        env = rasterio.Env(GDAL_DISABLE_READDIR_ON_OPEN='EMPTY_DIR',
                           CPL_VSIL_CURL_USE_HEAD=False,
                           CPL_VSIL_CURL_ALLOWED_EXTENSIONS='TIF')
        with env:
>           with rasterio.open(url) as src:

xarray/tests/test_backends.py:3734: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
/usr/share/miniconda/envs/test_env/lib/python3.6/site-packages/rasterio/env.py:430: in wrapper
    return f(*args, **kwds)
/usr/share/miniconda/envs/test_env/lib/python3.6/site-packages/rasterio/__init__.py:216: in open
    s = DatasetReader(path, driver=driver, sharing=sharing, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   rasterio.errors.RasterioIOError: HTTP response code: 400 - Failed writing header

https://dev.azure.com/xarray/xarray/_build/results?buildId=150&view=ms.vss-test-web.build-test-results-tab&runId=2358&resultId=101228&paneView=debug

I'm not sure what's going on here -- the tiff file is still available at the given URL.

@scottyhq any idea?

@shoyer shoyer changed the title test_rasterio_vrt_network is failing in CI tests test_rasterio_vrt_network is failing in continuous integration tests Jul 5, 2019
@scottyhq
Copy link
Contributor

scottyhq commented Jul 8, 2019

Strange, the same test works on my laptop current packages. Some ideas below:

@shoyer
Copy link
Member Author

shoyer commented Jul 8, 2019

I'd be up for any of these -- any interest in putting together a PR? Ideally we'd have a TIF that is smaller than 50 MB -- that seems like an unnecessary large amount of data to download for tests.

@scottyhq
Copy link
Contributor

scottyhq commented Jul 8, 2019

sounds good. i'll try to get to it this week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants