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

[CT-166] [Bug] accepted_values test causing OSError: File name too long #4684

Closed
1 task done
treeforest456 opened this issue Feb 4, 2022 · 3 comments
Closed
1 task done
Labels
bug Something isn't working dbt tests Issues related to built-in dbt testing functionality good_first_issue Straightforward + self-contained changes, good for new contributors! stale Issues that have gone stale

Comments

@treeforest456
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

We have 12 accepted values defined in the accepted_values test list. When running this, it gives this OSError

OSError: [Errno 36] File name too long: '/home/********/project/project-name/target/test.folder.source_accepted_values_very_long_accepted_values_strings.123456789.html'

Expected Behavior

Maybe a better way to generate test file names? Or maybe document somewhere that there could be a limit of number of accepted values defined in the list?

Steps To Reproduce

No response

Relevant log output

No response

Environment

- OS: macOS Big Sur, version 11.5.2
- Python: 3.9.5
- dbt: 1.0.0

What database are you using dbt with?

snowflake

Additional Context

No response

@treeforest456 treeforest456 added bug Something isn't working triage labels Feb 4, 2022
@github-actions github-actions bot changed the title [Bug] accepted_values test causing OSError: File name too long [CT-166] [Bug] accepted_values test causing OSError: File name too long Feb 4, 2022
@jtcohen6 jtcohen6 added Team:Language dbt tests Issues related to built-in dbt testing functionality labels Feb 5, 2022
@nathaniel-may nathaniel-may self-assigned this Feb 7, 2022
@nathaniel-may
Copy link
Contributor

Hi, @treeforest456! Thanks for the report, and I'm sorry to hear you're having issues running tests. We have run into issues with the way we internally uniquely identify test nodes before and it seems the file path that is too long for your file system is caused in part by the unique identifier being too large.

I left a comment on a previous issue to propose a long-term fix, and I wanted to point you to a proposed short-term fix in this ticket which is identified as a good first issue for a community PR, and I believe would solve your issue as well.

Unfortunately, I cannot think of any workarounds for your particular issue that do not involve a code change to dbt.

Since this ticket specifically calls out the inability to write test results because of the filepath length, I do not believe this issue is a duplicate and will leave it open until resolved.

@nathaniel-may nathaniel-may added good_first_issue Straightforward + self-contained changes, good for new contributors! and removed triage labels Feb 7, 2022
@nathaniel-may nathaniel-may removed their assignment Feb 7, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2022

This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days.

@github-actions github-actions bot added the stale Issues that have gone stale label Aug 7, 2022
@github-actions
Copy link
Contributor

Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest; add a comment to notify the maintainers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dbt tests Issues related to built-in dbt testing functionality good_first_issue Straightforward + self-contained changes, good for new contributors! stale Issues that have gone stale
Projects
None yet
Development

No branches or pull requests

3 participants