JuliaLang/julia

Replace uses of tempname in CI by mktemp

Open

#43,597 opened on Dec 29, 2021

View on GitHub
 (10 comments) (0 reactions) (0 assignees)Julia (5,773 forks)batch import
cigood first issuehelp wanted

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

Description

As of #38879 our temp path generation depends on the global RNG. That's probably not a bad idea in general, except that various parts of the test suite seed the global RNG, so this will cause reliable collisions in the test suite, so we'll get in trouble with tests stomping on each other. We should audit all uses of tempname in the test suite and replace them with mktemp unless they test the tempname function specifically.

Contributor guide