Skip to content

grass.script: Fix collision of random names in test #2105

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

Merged
merged 1 commit into from
Jan 18, 2022

Conversation

wenzeslaus
Copy link
Member

The test is written in a way that it may fail (with low probability). This is because the function does not make
any promisses about that.

However, a copy-pasted size of the name left only 2 characters for the random part which increased the collision probability
significantly. This change increases the total size the name to increase the size of the random suffix.

Failing CI for a recent commit on main seems to be the first occurence of this since the test was introduced in #653 14 months ago.

The test is written in a way that it may fail (with low probability). This is because the function does not make
any promisses about that.

However, a copy-pasted size of the name left only 2 characters for the random part which increased the collision probability
significantly. This change increases the total size the name to increase the size of the random suffix.

Failing CI for a recent commit on main seems to be the first occurence of this since the test was introduced in OSGeo#653 14 months ago.
@wenzeslaus wenzeslaus merged commit 18a1956 into OSGeo:main Jan 18, 2022
@wenzeslaus wenzeslaus deleted the fix-test-for-random-name branch January 18, 2022 22:09
@wenzeslaus wenzeslaus added this to the 8.2.0 milestone Jan 18, 2022
@wenzeslaus wenzeslaus added the bug Something isn't working label Jan 18, 2022
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
The test is written in a way that it may fail (with low probability). This is because the function does not make
any promises about that.

However, a copy-pasted size of the name left only 2 characters for the random part which increased the collision probability significantly. This change increases the total size the name to increase the size of the random suffix.

Failing CI for a recent commit on main seems to be the first occurrence of this since the test was introduced in OSGeo#653 14 months ago.
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
The test is written in a way that it may fail (with low probability). This is because the function does not make
any promises about that.

However, a copy-pasted size of the name left only 2 characters for the random part which increased the collision probability significantly. This change increases the total size the name to increase the size of the random suffix.

Failing CI for a recent commit on main seems to be the first occurrence of this since the test was introduced in OSGeo#653 14 months ago.
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
The test is written in a way that it may fail (with low probability). This is because the function does not make
any promises about that.

However, a copy-pasted size of the name left only 2 characters for the random part which increased the collision probability significantly. This change increases the total size the name to increase the size of the random suffix.

Failing CI for a recent commit on main seems to be the first occurrence of this since the test was introduced in OSGeo#653 14 months ago.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant