Skip to content

Upgrade JUnit 4 to 4.13.2 to resolve CVE-2020-15250#1878

Open
AustinBenoit wants to merge 1 commit into
mainfrom
junit-upgrade
Open

Upgrade JUnit 4 to 4.13.2 to resolve CVE-2020-15250#1878
AustinBenoit wants to merge 1 commit into
mainfrom
junit-upgrade

Conversation

@AustinBenoit

Copy link
Copy Markdown
Contributor

Description

Upgraded 'androidx.test.ext:junit' from '1.1.1' to '1.1.5', which transitively pulls in the patched 'junit:junit:4.13.2'.

Note: We chose '1.1.5' over newer versions (like '1.3.0') to avoid dependency conflicts with the project's older Kotlin (1.3.72) and Gradle (7.4.2) configurations.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.

Run full set of integration test


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

Upgraded 'androidx.test.ext:junit' from '1.1.1' to '1.1.5', which
transitively pulls in the patched 'junit:junit:4.13.2'.

Note: We chose '1.1.5' over newer versions (like '1.3.0') to avoid
dependency conflicts with the project's older Kotlin (1.3.72)
and Gradle (7.4.2) configurations.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates test dependencies in the Android integration and UI testing Gradle configurations, upgrading androidx.test.ext:junit to 1.1.5 and junit:junit to 4.13.2. Feedback points out that the comment in the UI testing module incorrectly mentions Kotlin compatibility, as the module does not use Kotlin, and suggests updating the comment to only reference Gradle compatibility.

Comment on lines +44 to +45
// 1.1.5 is used instead of newer versions (e.g. 1.3.0) to maintain compatibility
// with the project's older Kotlin and Gradle versions.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The uitest_android module does not use Kotlin (it only applies the com.android.application plugin and contains Java test files). Mentioning Kotlin in this comment is inaccurate. Please update the comment to only refer to the Gradle version compatibility.

    // 1.1.5 is used instead of newer versions (e.g. 1.3.0) to maintain compatibility
    // with the project's older Gradle version.

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.

Ok but like transitively this due to the kotlin version. I think flagging that we upgrade kotlin / gradle we can move past this.

@AustinBenoit AustinBenoit added skip-release-notes Skip release notes check tests-requested: full Trigger a FULL set of integration tests (uses expanded test matrix). labels Jun 30, 2026
@github-actions github-actions Bot added tests: in-progress This PR's integration tests are in progress. and removed tests-requested: full Trigger a FULL set of integration tests (uses expanded test matrix). labels Jun 30, 2026
@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

❌  Integration test FAILED

Requested by @AustinBenoit on commit c7b137d
Last updated: Tue Jun 30 14:28 PDT 2026
View integration test log & download artifacts

Failures Configs
missing_log [TEST] [ERROR] [Android] [All 3 os] [2/4 android_device: android_latest android_target]
analytics [TEST] [FLAKINESS] [Android] [2/3 os: ubuntu windows] [1/4 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
app_check [TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/4 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
auth [TEST] [ERROR] [Android] [1/3 os: macos] [1/4 android_device: emulator_ftl_target]
[TEST] [FAILURE] [Android] [1/3 os: macos] [1/4 android_device: emulator_ftl_target]
(1 failed tests)  FirebaseAuthTest.TestSendPasswordResetEmail
[TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/4 android_device: emulator_ftl_target]
(2 failed tests)  FirebaseAuthTest.TestUpdateEmailAndPassword
  FirebaseAuthTest.TestVerifyBeforeUpdatingEmail
database [TEST] [FLAKINESS] [Android] [2/3 os: macos windows] [1/4 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
firestore [TEST] [FLAKINESS] [Android] [1/3 os: ubuntu] [1/4 android_device: emulator_ftl_target]
(1 failed tests)  QueryTest.TestCanQueryByDocumentIdUsingRefs
installations [TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/4 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
messaging [TEST] [FLAKINESS] [Android] [1/3 os: macos] [1/4 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT
storage [TEST] [FLAKINESS] [Android] [1/3 os: windows] [1/4 android_device: emulator_ftl_target]
(1 failed tests)  CRASH/TIMEOUT

Add flaky tests to go/fpl-cpp-flake-tracker

@github-actions github-actions Bot added the tests: failed This PR's integration tests failed. label Jun 30, 2026
@firebase-workflow-trigger firebase-workflow-trigger Bot removed the tests: in-progress This PR's integration tests are in progress. label Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-release-notes Skip release notes check tests: failed This PR's integration tests failed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant