Skip to content

Fix: Support read only file systems#1654

Merged
penguine-ip merged 1 commit intoconfident-ai:mainfrom
codeforamerica:fix/support-read-only-file-systems
Jun 12, 2025
Merged

Fix: Support read only file systems#1654
penguine-ip merged 1 commit intoconfident-ai:mainfrom
codeforamerica:fix/support-read-only-file-systems

Conversation

@lkacenja
Copy link
Copy Markdown
Contributor

@lkacenja lkacenja commented Jun 4, 2025

When we import telemetry.py, we do some file system preparation. Some folks run their evaluation code in environments that don't allow write access to the file system like Lambda's or their Google Cloud or Azure equivalents. This causes evaluations to fail when DeepEval is imported. DeepEval provides an environmental variable to opt out of telemetry. It would be great if this flag was checked, before fiddling with the file system.

This PR wraps the file system in a check for the environmental variable, "DEEPEVAL_TELEMETRY_OPT_OUT".

We tested this branch in our AWS Lambdas and locally and it seemed to work in our use cases.

closes #1577

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 4, 2025

@lkacenja is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

@penguine-ip
Copy link
Copy Markdown
Contributor

Hey @lkacenja thanks for the PR, taking a look right now

@penguine-ip
Copy link
Copy Markdown
Contributor

hey @lkacenja do you think you can introduce another env variable likw "DEEPEVAL_FILE_SYSTEM" and make it default to READ_AND_WRITE but also READ_ONLY?

@penguine-ip penguine-ip merged commit 1de99d8 into confident-ai:main Jun 12, 2025
1 of 4 checks passed
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 this pull request may close these issues.

Error: [Errno 30] Read-only file system: '.deepeval'

2 participants