test(artist-dir): fix flaky uq_image_record_sha256 collision #115
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
test_artist_directory_service._seed_imagebuilt sha256 fromabs(hash(suffix)) % 10000— PYTHONHASHSEED-randomized hash() over only 10k buckets, so two suffixes in one test could birthday-collide and violateuq_image_record_sha256. Flaky per process seed: passed on dev (run 1179), failed integration on main (run 1182) with identical code. Now useshashlib.sha256(suffix).hexdigest().This greens up main after #114 (whose ml-worker image already built fine — only the integration lane flaked).
CI green on dev (run 1184,
002279e).🤖 Generated with Claude Code