Skip to content

TMP folders name convention  #633

@suparat4

Description

@suparat4

Hi ,

In our test infrastructure , we are running the tests in parallel using the pytest-xdist Python package. Currently, we have 4 workers on a Windows agent and 2 on Linux. When tests run in parallel, the fmusim process might start multiple times simultaneously.

fmusim creates a folder in the C:\Users\USERNAME\AppData\Local\Temp directory on Windows (and a similar location on Linux) and extracts the vECU.fmu to this folder. The folder name is defined by fmusim and includes just some number ( Ex: 123, 124 ,125 etc.) After the simulation completes successfully, fmusim deletes the folder.

Unfortunately, the folder naming convention used by fmusim leads to collisions during parallel execution. The folder name becomes a shared resource for multiple fmusim processes started simultaneously.

It is possible to have some more random naming convention for this TMP folder ? One proposal can be to use UUID on creating the name of tmp folder ( maybe cut to only a specific number of characters, like 6)

Version used : 0.0.36
Examples of TMP folder names while running tests in paralel mode , having 10 workers:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions