Skip to content

Conversation

@ktsmadhav
Copy link
Contributor

fix(logging): Use file-safe timestamp format to prevent OSError on Windows

The default string representation of the Python datetime object (e.g., 2025-10-17T15:34:10.127678) includes the colon (:) character in the time component.

The colon is an illegal character for standard filenames on the Windows filesystem, which resulted in an OSError: [Errno 22] Invalid argument whenever genkit attempted to save trace/log files on that platform.

This commit updates the file naming logic to use a cross-platform safe timestamp format (e.g., YYYY-MM-DD_HH-MM-SS-ffffff) that omits the illegal colon character, ensuring successful file persistence across all major operating @systems

Windows does not support colon in filename so flow runner failing, fixed it by using hyphen and underscore
@google-cla
Copy link

google-cla bot commented Oct 17, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@ktsmadhav ktsmadhav marked this pull request as ready for review October 17, 2025 11:36
@pavelgj pavelgj changed the title [PY] fix(logging): Use file-safe timestamp format to prevent OSError on Windows fix(py): Use file-safe timestamp format for runtime file to prevent OSError on Windows Oct 17, 2025
@pavelgj pavelgj enabled auto-merge (squash) October 17, 2025 13:49
@pavelgj pavelgj merged commit 2d9a00c into firebase:main Oct 17, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants