-
Notifications
You must be signed in to change notification settings - Fork 141
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
Integration tests avoid tmp dir #1359
Integration tests avoid tmp dir #1359
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1359 +/- ##
=======================================
Coverage 19.09% 19.09%
=======================================
Files 166 166
Lines 11062 11062
=======================================
Hits 2112 2112
Misses 8950 8950
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK on the current changes. However, I am not entirely sure about the implementation of removing the template provider directory in the Drop
trait. If this is done, all the tests might take significantly longer since they would need to download the binary every time or might fail due to download errors. #1342 (review).
can you elaborate? where are we removing the TP directory? there's no |
I was mentioning about Esraa's suggestion... |
ah ok sorry I missed the link on the end of the comment yeah I didn't go in that direction... instead, I marked the new directory on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Do you think this is something worth mentioning in the readme? we are writing to a user disk and we might end up taking a good chunk of space.
570ee84
to
ed8d2a2
Compare
ed8d2a2
to
2e92611
Compare
2e92611
to
7030a61
Compare
using /tmp is leading to undeterministic behavior on Github CI
to avoid committing the `template-provider` directory created during execution of Integration Tests
7030a61
to
f9354c3
Compare
closes #1278, alternative to #1342
unfortunately #1293 didn't fix #1278
this PR changes the directory where TP is downloaded into, replacing
/tmp
(which was giving permission errors in an undeterministic way) to a newtemplate-provider
directory crated at the Integration Test execution (which shouldn't ever have permission issues)this new directory is listed on a new
.gitignore
so that we don't commit binary executables to the SRI repo, which would be bad practice