• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OSGeo / gdal / 20192861895
72%

Build:
DEFAULT BRANCH: master
Ran 13 Dec 2025 04:38PM UTC
Jobs 1
Files 2017
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Dec 2025 01:39PM UTC coverage: 71.406% (-0.003%) from 71.409%
20192861895

push

github

web-flow
/vsigs/: Add Google Cloud Run environment detection for GCE authentication (#13544)

When running GDAL in Google Cloud Run, the /vsigs/ virtual file system fails to automatically detect that it's running in a Google Cloud environment. This causes GDAL to skip the GCE metadata service for service account authentication, resulting in authentication failures when accessing Google Cloud Storage.

The issue occurs because Cloud Run containers don't have the DMI files (/sys/class/dmi/id/product_name) that GDAL checks to detect GCE instances on Linux. Users are forced to manually set CPL_MACHINE_IS_GCE=YES as a workaround in their Cloud Run deployments (e.g., Titiler).
Solution

Add detection for Google Cloud Run environments by checking for Cloud Run-specific environment variables:

    CLOUD_RUN_TIMEOUT_SECONDS (Cloud Run services)
    CLOUD_RUN_JOB (Cloud Run jobs)
    CLOUD_RUN_WORKER_POOL (Cloud Run worker pools)

8 of 8 new or added lines in 1 file covered. (100.0%)

105 existing lines in 38 files now uncovered.

593653 of 831377 relevant lines covered (71.41%)

295314.03 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.78
0.11% alg/gdalgrid.cpp
1
81.17
-0.13% alg/gdalpansharpen.cpp
1
87.69
-0.08% alg/gdalwarpoperation.cpp
1
91.42
0.03% frmts/gtiff/gtiffdataset_read.cpp
1
97.83
-2.17% frmts/gtiff/libgeotiff/geo_tiffp.c
1
65.5
-0.09% frmts/gtiff/libtiff/tif_jpeg.c
1
63.01
-0.41% frmts/gtiff/libtiff/tif_lzma.c
1
80.83
-0.18% frmts/gtiff/libtiff/tif_predict.c
1
93.08
-0.63% frmts/rmf/rmflzw.cpp
1
84.18
-0.63% frmts/wms/gdalhttp.cpp
1
82.49
0.03% gcore/gdalrasterband.cpp
1
87.88
0.03% gcore/overview.cpp
1
91.94
0.04% gcore/rasterio.cpp
1
86.36
-0.08% ogr/ogrlinestring.cpp
1
87.81
0.77% ogr/ogrsf_frmts/mitab/mitab_mapindexblock.cpp
1
70.82
-0.1% port/cpl_compressor.cpp
1
89.83
-0.09% port/cpl_string.cpp
1
53.68
-0.74% port/cpl_vsi_error.cpp
1
89.47
-0.1% port/cpl_vsil.cpp
1
87.0
0.12% port/cpl_vsil_curl_streaming.cpp
1
85.9
-0.22% third_party/libertiff/libertiff.hpp
2
7.61
-0.01% build-coverage/swig/java/org/gdal/gdal/gdal_wrap.cpp
2
53.53
-0.08% frmts/gtiff/libtiff/tif_dir.c
2
41.4
0.68% frmts/gtiff/libtiff/tif_dirinfo.c
2
66.32
-0.15% frmts/gtiff/libtiff/tif_read.c
2
62.59
-0.49% frmts/gtiff/libtiff/tif_webp.c
2
79.15
-0.4% port/cpl_multiproc.cpp
2
49.16
-1.12% third_party/LercLib/Lerc.cpp
3
56.41
0.0% frmts/gtiff/libtiff/tif_write.c
3
81.23
-0.53% frmts/nitf/nitfrasterband.cpp
3
69.81
-0.75% port/cpl_vsisimple.cpp
3
71.21
-0.19% third_party/LercLib/Lerc2.h
4
62.86
-0.8% frmts/gtiff/libtiff/tif_open.c
5
76.41
-0.78% frmts/gtiff/tif_jxl.c
7
54.35
-0.44% frmts/gtiff/libtiff/tif_dirwrite.c
7
69.58
-1.53% port/cpl_error.cpp
11
33.96
-0.07% frmts/gtiff/libtiff/tif_dirread.c
24
73.09
-2.69% ogr/ogrsf_frmts/hana/ogrhanadatasource.cpp
Jobs
ID Job ID Ran Files Coverage
1 20192861895.1 13 Dec 2025 04:38PM UTC 2017
71.41
GitHub Action Run
Source Files on build 20192861895
  • Tree
  • List 2017
  • Changed 56
  • Source Changed 2
  • Coverage Changed 55
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20192861895
  • a993cbcf on github
  • Prev Build on master (#20182908765)
  • Next Build on master (#20196830548)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc