Skip to content

Upgrade underlying common JDK SDK to get thread-safe MD5#195

Merged
aarsilv merged 1 commit into
mainfrom
aaron/ffl-169/bump-common-for-thread-safe-md5
Jun 6, 2025
Merged

Upgrade underlying common JDK SDK to get thread-safe MD5#195
aarsilv merged 1 commit into
mainfrom
aaron/ffl-169/bump-common-for-thread-safe-md5

Conversation

@aarsilv

@aarsilv aarsilv commented Jun 6, 2025

Copy link
Copy Markdown
Contributor

Eppo Internal:
🎟️ Ticket: FFL-169 - [Legacy Eppo][Android SDK] Use updated Common SDK for thread-safe MD5
👯 Related PR: [sdk-common-jdk #128 - Thread-safe MD5](Thread-safe md5)
🗨️ Slack: "...multiple threads add to the digest between resets ..."

Motivation and Context

Pulling in changes that will make hashing thread-safe

Description

Bumping version of sdk-common-jdk used to one that has the fix

How has this been documented?

Internal change only--no documentation required

How has this been tested?

  • Existing automated tests
  • Manually using the Example App

Comment thread build.gradle
Comment on lines +3 to +4
id 'com.android.application' version '8.10.1' apply false
id 'com.android.library' version '8.10.1' apply false

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping this version as well at suggestion of Android Studio

Comment thread eppo/build.gradle

dependencies {
api 'cloud.eppo:sdk-common-jvm:3.10.0'
api 'cloud.eppo:sdk-common-jvm:3.11.2'

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔧 This is the core change/fix

assertNotNull(parsedTimestamp);
assertTrue(parsedTimestamp.after(testStart));
assertTrue(parsedTimestamp.before(assertionDate));
assertTrue(parsedTimestamp.before(assertionDate) || parsedTimestamp.equals(assertionDate));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the test is executed really fast, the parsed and assertion timestamps will be equal, so changing this to an inclusive <= check so the test is not flakey.

@aarsilv aarsilv marked this pull request as ready for review June 6, 2025 20:06
@aarsilv aarsilv merged commit 3209265 into main Jun 6, 2025
3 checks passed
@aarsilv aarsilv deleted the aaron/ffl-169/bump-common-for-thread-safe-md5 branch June 6, 2025 21:11
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

Successfully merging this pull request may close these issues.

2 participants