Skip to content

dart run rive_native:setup concurrency issue #609

@LucasCastelo

Description

@LucasCastelo

Description

dart run rive_native:setup --verbose --clean --platform macos
In our team we're using this script at CI level to enable golden tests to run properly. The issue happens when the same runner gets multiple setups running at once.
Reading the script I notice that when downloading the required files it uses $TMPDIR to temporarily store the .zip file. When concurrent CI Jobs are running and downloading the same file they start all altering the same zip file which corrupts the file or deletes the file that another Job has downloaded.

We put a quick solution by copying and just changing to a folder a 'unique' folder per JOB since the file is ultimately deleted.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run multiple instances of the script concurrently

Expected behavior

Scripts run concurrently should not interfere with each other.

Versions

rive: 0.14.2
flutter: 3.38.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions