Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experiment Run ID should be more unique #496

Open
erichaagdev opened this issue Sep 5, 2023 · 0 comments
Open

Experiment Run ID should be more unique #496

erichaagdev opened this issue Sep 5, 2023 · 0 comments

Comments

@erichaagdev
Copy link
Member

erichaagdev commented Sep 5, 2023

Recently we had a collision on "experiment run id" for three automated experiment runs. We should reconsider how we determine this value. Currently it's computed as the hex representation of the current timestamp seconds.

https://github.com/gradle/gradle-enterprise-build-validation-scripts/blob/fc1a6d6fc6e87c22ceb3d4f2c4fa50d8ea9a2fa9/components/scripts/lib/init.sh#L17-L19

At first it seems seems unlikely that two or more experiments will compute the same run id, but given that we now have 39 (at the time of this writing) projects running automated experiments, each running 2-3 experiments, and them all starting at the exact same time Sunday @ 9:00 UTC, it's bound to happen often.

Example: https://ge.solutions-team.gradle.com/scans?search.names=Experiment%20run%20id&search.timeZoneId=America/Chicago&search.values=64f44be9&selection.buildScanB=ygdfpgm4geobu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant