Skip to content

Time difference check too short in test-provenance.R #509

@bruc

Description

@bruc

The time difference check in test-provenance.R is too short for a loaded system. Currently, the time difference check is "less than 0.1", and on a loaded server, that time difference has been observed to be exceeded. I've instrumented this test script and found that time differences can be over 0.25 seconds.

I recommend changing the time difference check to 1 second in the two places where it occurs. In addition, I also recommend that the Sys.sleep() call be changed to 2 seconds instead of 0.2 seconds for the same reason.

I discovered this problem by repeatedly running R CMD check on all the packages in our R environment, and the above problem occurred after 117 tries when our server workload was high.

Thank you.

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