Skip to content

Make pelican_url module threadsafe#3006

Merged
bbockelm merged 2 commits into
PelicanPlatform:mainfrom
bbockelm:pelican_url_threadsafe
Jan 23, 2026
Merged

Make pelican_url module threadsafe#3006
bbockelm merged 2 commits into
PelicanPlatform:mainfrom
bbockelm:pelican_url_threadsafe

Conversation

@bbockelm

Copy link
Copy Markdown
Collaborator

Fixes #3005

Atomically create and set the global cache; reset it between unit
tests.

This should fix rare unit test failures where the same port is
reused across multiple tests for the discovery URL.  As a result,
the wrong director URL was being used in tests.
Almost always, disabling TLS verification where it's not needed here
indicates a cover-up of a bug.  Sure enough, there was one - in
the broker client.
@bbockelm bbockelm added bug Something isn't working test Improvements to the test suite client Issue affecting the OSDF client labels Jan 19, 2026
@bbockelm

Copy link
Copy Markdown
Collaborator Author

Ok, I've seen a few more of these in the GitHub Actions -- going ahead and pulling it in.

@bbockelm bbockelm merged commit adab6bb into PelicanPlatform:main Jan 23, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working client Issue affecting the OSDF client test Improvements to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pelican_url package leaks cache between tests

1 participant