<#3252 gcsfs must be lower than 2025.5.0> Pull req...
# flyte-github
c
#3252 gcsfs must be lower than 2025.5.0 Pull request opened by dansola ## Why are the changes needed? Bug in gcsfs: fsspec/gcsfs#687 Causes GCP workflows to non-deterministically fail with
Copy code
.../site-packages/gcsfs/creden │
│ tials.py:219 in apply                                                        │
│                                                                              │
│ ❱ 219 │   │   self.maybe_refresh()                                           │
│                                                                              │
│ .../site-packages/gcsfs/creden │
│ tials.py:196 in maybe_refresh                                                │
│                                                                              │
│ ❱ 196 │   │   if self._credentials_valid(refresh_buffer):                    │
│                                                                              │
│ .../site-packages/gcsfs/creden │
│ tials.py:181 in _credentials_valid                                           │
│                                                                              │
│ ❱ 181 │   │   │   │   │   │   self.credentials.expiry - datetime.now(timezon │
╰──────────────────────────────────────────────────────────────────────────────╯
TypeError: can't subtract offset-naive and offset-aware datetimes
## What changes were proposed in this pull request? Force gcsfs to be below
2025.5.0
which is where the bug is. ## How was this patch tested? N/A ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link https://bito.ai#summarystart| ### Summary by Bito This pull request fixes a bug in the gcsfs library that caused GCP workflows to fail intermittently by restricting the gcsfs version to below 2025.5.0. This change ensures application stability and functionality by preventing the use of problematic versions. flyteorg/flytekit