Project

General

Profile

Actions

action #178207

closed

coordination #127031: [saga][epic] openQA for SUSE customers

coordination #165393: [epic] Improved code coverage in openQA

t: Many leftover t/poolXXXX directories in openQA size:S

Added by tinita about 1 month ago. Updated 8 days ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Feature requests
Target version:
Start date:
2025-03-03
Due date:
% Done:

0%

Estimated time:

Description

Observation

When I run t/24-worker-overall.t I see a new directory t/pool5J9L in my git worktree.
If I run this test many times, new directories are created over and over.

I also had a look at other tests and found t/24-worker-engine.t and t/24-worker-jobs.t which are creating a tempdir under the git worktree.

my $pool_directory = tempdir('poolXXXX');

We should avoid doing this and use a directory under /tmp instead.
Yes, .gitignore has pool????/, but that doesn't mean I want 1000 of those directories lying around.

Acceptance Criteria

AC1: t/24-worker-* tests are creating their tempdirs under /tmp and not the git worktree.
AC2: The cleanup of the dirs in t/24-worker-overall.t is working.

Suggestions

There are two issues going on here:

  • t/24-worker-overall.t creates a tempdir 3 times, but one of them is not cleaned up. I believe this is because the worker is still holding the pool dir lock when the cleanup is called. This should be fixed in any case, even if me move this under /tmp.
  • for t/24-worker-engine.t and t/24-worker-jobs.t I see no leftover directories because they get cleaned up correctly. However, it could still happen that the test dies and it doesn't get cleaned up for some reason. We should be consistent and do not add or modify any files in git during tests.

Related issues 2 (1 open1 closed)

Copied from openQA Project (public) - action #178180: Test t/14-grutasks.t fails for me in master branch but apparently not in circleCIResolvedtinita2025-03-03

Actions
Copied to openQA Project (public) - action #179708: Ensure clean git status in openQA testsNewtinita2025-03-03

Actions
Actions #1

Updated by tinita about 1 month ago

  • Copied from action #178180: Test t/14-grutasks.t fails for me in master branch but apparently not in circleCI added
Actions #2

Updated by okurz about 1 month ago

  • Target version set to future
  • Parent task set to #165393
Actions #3

Updated by okurz 27 days ago

  • Target version changed from future to Ready
Actions #4

Updated by okurz 23 days ago

  • Priority changed from Normal to Low
Actions #5

Updated by okurz 21 days ago

  • Subject changed from t: Many leftover t/poolXXXX directories in openQA to t: Many leftover t/poolXXXX directories in openQA size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #6

Updated by gpuliti 15 days ago

  • Status changed from Workable to In Progress
  • Assignee set to gpuliti
Actions #7

Updated by gpuliti 15 days ago

  • Status changed from In Progress to Feedback
Actions #8

Updated by gpuliti 14 days ago

  • Status changed from Feedback to In Progress
Actions #9

Updated by gpuliti 13 days ago

  • Status changed from In Progress to Feedback
Actions #10

Updated by gpuliti 10 days ago

  • Status changed from Feedback to In Progress
Actions #11

Updated by okurz 10 days ago

  • Copied to action #179708: Ensure clean git status in openQA tests added
Actions #12

Updated by gpuliti 10 days ago

  • Status changed from In Progress to Resolved
Actions #13

Updated by tinita 10 days ago

Why is it resolved? AC1 mentions t/24-worker-*

Actions #14

Updated by okurz 10 days ago

  • Status changed from Resolved to Feedback

to be clarified

Actions #15

Updated by gpuliti 9 days ago

  • Status changed from Feedback to In Progress
Actions #16

Updated by gpuliti 9 days ago

  • Status changed from In Progress to Feedback
Actions #18

Updated by gpuliti 8 days ago

  • Status changed from Feedback to Resolved

AC1 pr merged, ticket resolve!

Actions

Also available in: Atom PDF