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

Tests don't remove temporary files (if created) #702

Closed
proshin-roman opened this issue Feb 21, 2018 · 24 comments
Closed

Tests don't remove temporary files (if created) #702

proshin-roman opened this issue Feb 21, 2018 · 24 comments
Labels

Comments

@proshin-roman
Copy link
Contributor

Currently, no tests in the project care about removing temporary files. As an example, see this class:

new FileOutputStream(temp.toFile()),

It means all temporary files stay forever in the OS temp directory until OS removes them itself.

How it should be done:

  • tests should either call method deleteOnExit for each temp file or should delete temp file manually
@0crat
Copy link
Collaborator

0crat commented Feb 21, 2018

@yegor256/z please, pay attention to this issue

@yegor256
Copy link
Owner

@proshin-roman definitely a bug, thanks for reporting

@0crat 0crat added the scope label Feb 21, 2018
@0crat
Copy link
Collaborator

0crat commented Feb 21, 2018

Job #702 is now in scope, role is DEV

@0crat
Copy link
Collaborator

0crat commented Feb 21, 2018

Bug was reported, see §29: +15 points just awarded to @proshin-roman/z, total is +15

@msarhan
Copy link

msarhan commented Feb 22, 2018

Using JUnit's TemporaryFolder Rule instead of Files.createTempFile() will solve the issue.

@proshin-roman
Copy link
Contributor Author

@msarhan good idea! I've already applied it in two my pull requests: #698 and #676

@0crat
Copy link
Collaborator

0crat commented Mar 6, 2018

The job #702 assigned to @flslkxtc/z, here is why. The budget is 30 minutes, see §4. Please, read §8 and §9. If the task is not clear, read this and this.

@smyachenkov
Copy link
Contributor

@0crat waiting

@0crat
Copy link
Collaborator

0crat commented Mar 14, 2018

@0crat waiting (here)

@flslkxtc The impediment for #702 was registered successfully by @flslkxtc/z

@llorllale
Copy link
Contributor

@0crat resign @flslkxtc

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2018

@0crat resign @flslkxtc (here)

@llorllale The user @flslkxtc/z resigned from #702, please stop working. Reason for job resignation: Order was cancelled

@llorllale
Copy link
Contributor

@flslkxtc you were resigned because you're currently on vacation

@0crat
Copy link
Collaborator

0crat commented Apr 20, 2018

The job #702 assigned to @krzyk/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this

@krzyk
Copy link
Contributor

krzyk commented Apr 22, 2018

@proshin-roman please see PR #779

@proshin-roman
Copy link
Contributor Author

@krzyk The pull request looks ok for me but you have to wait until it's reviewed by the assigned reviewer.

@0crat
Copy link
Collaborator

0crat commented Apr 25, 2018

@krzyk/z this job was assigned to you 5days ago. It will be taken away from you soon, unless you close it, see §8. Read this and this, please.

@krzyk
Copy link
Contributor

krzyk commented Apr 25, 2018

@0crat waiting for review

@0crat
Copy link
Collaborator

0crat commented Apr 25, 2018

@0crat waiting for review (here)

@krzyk The impediment for #702 was registered successfully by @krzyk/z

krzyk added a commit to krzyk/cactoos that referenced this issue Apr 26, 2018
krzyk added a commit to krzyk/cactoos that referenced this issue Apr 26, 2018
@krzyk
Copy link
Contributor

krzyk commented Apr 28, 2018

@proshin-roman please close this issue, fix has been merged to master

@0crat
Copy link
Collaborator

0crat commented Apr 30, 2018

@elenavolokhova/z please review this job completed by @krzyk/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed

@0crat 0crat removed the scope label Apr 30, 2018
@0crat
Copy link
Collaborator

0crat commented Apr 30, 2018

The job #702 is now out of scope

@elenavolokhova
Copy link

@0crat quality good

@0crat
Copy link
Collaborator

0crat commented Apr 30, 2018

Order was finished, quality is "good": +35 point(s) just awarded to @krzyk/z

@0crat
Copy link
Collaborator

0crat commented Apr 30, 2018

Quality review completed: +8 point(s) just awarded to @elenavolokhova/z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants