Skip to content

Conversation

@rlazo
Copy link
Collaborator

@rlazo rlazo commented Apr 11, 2025

The validateAttribute method is static and can be called multiple times, which makes re-compiling the key regex validation every time a waste of resources.

Originally reported as #6862

The `validateAttribute` method is static and can be called multiple
times, which makes re-compiling the key regex validation every time a
waste of resources.

Originally reported as #6862
@rlazo rlazo requested a review from mrober April 11, 2025 14:16
@github-actions
Copy link
Contributor

github-actions bot commented Apr 11, 2025

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@google-oss-bot
Copy link
Contributor

1 Warning
⚠️ Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by 🚫 Danger

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 11, 2025

Coverage Report 1

Affected Products

  • firebase-perf

    Overall coverage changed from 70.62% (70c8e89) to 70.64% (0d68ce7) by +0.01%.

    FilenameBase (70c8e89)Merge (0d68ce7)Diff
    PerfMetricValidator.java93.55%93.85%+0.30%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/LCmaPdGndU.html

@github-actions
Copy link
Contributor

github-actions bot commented Apr 11, 2025

Test Results

  110 files   -  76    110 suites   - 76   2m 4s ⏱️ - 2m 33s
  970 tests  - 265    970 ✅  - 249  0 💤  - 16  0 ❌ ±0 
1 948 runs   - 546  1 948 ✅  - 514  0 💤  - 32  0 ❌ ±0 

Results for commit 7fad6f7. ± Comparison against base commit 70c8e89.

This pull request removes 1235 and adds 970 tests. Note that renamed tests count towards both.
com.google.firebase.firestore.AggregateQuerySnapshotTest ‑ createWithCountShouldReturnInstanceWithTheGivenQueryAndCount
com.google.firebase.firestore.AggregateQueryTest ‑ testSourceMustNotBeNull
com.google.firebase.firestore.BlobTest ‑ testComparison
com.google.firebase.firestore.BlobTest ‑ testEquals
com.google.firebase.firestore.BlobTest ‑ testMutableBytes
com.google.firebase.firestore.CollectionReferenceTest ‑ testEquals
com.google.firebase.firestore.DocumentChangeTest ‑ randomTests
com.google.firebase.firestore.DocumentChangeTest ‑ testAdditions
com.google.firebase.firestore.DocumentChangeTest ‑ testChangesWithSortOrderChange
com.google.firebase.firestore.DocumentChangeTest ‑ testDeletions
…
com.google.firebase.perf.FirebasePerfRegistrarTest ‑ testGetComponents
com.google.firebase.perf.FirebasePerformanceTest ‑ firebasePerformanceInitialization_providesRcProvider_remoteConfigManagerIsSet
com.google.firebase.perf.FirebasePerformanceTest ‑ initFirebasePerformance_injectsMetadataIntoConfigResolver
com.google.firebase.perf.FirebasePerformanceTest ‑ initializeFirebasePerformance_emptyMetadataAndCache_metadataAndContextInjected
com.google.firebase.perf.FirebasePerformanceTest ‑ setDataCollectionDefaultEnabled_whenForceDisabledThenCleared_respectsGlobalFlag
com.google.firebase.perf.FirebasePerformanceTest ‑ setDataCollectionDefaultEnabled_whenForceDisabledThenCleared_respectsManifestTrue
com.google.firebase.perf.FirebasePerformanceTest ‑ setDataCollectionDefaultEnabled_whenForceEnabledThenCleared_respectsGlobalFlag
com.google.firebase.perf.FirebasePerformanceTest ‑ setDataCollectionDefaultEnabled_whenForceEnabledThenCleared_respectsManifestFalse
com.google.firebase.perf.FirebasePerformanceTest ‑ testAddingMoreThanMaxLocalAttributes
com.google.firebase.perf.FirebasePerformanceTest ‑ testBothManifestsAgree
…

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Apr 11, 2025

Size Report 1

Affected Products

  • firebase-perf

    TypeBase (70c8e89)Merge (0d68ce7)Diff
    aar316 kB316 kB+191 B (+0.1%)
    apk (aggressive)1.63 MB1.63 MB+76 B (+0.0%)
    apk (release)10.1 MB10.1 MB+88 B (+0.0%)

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/UFaeI9xNxp.html

@rlazo rlazo merged commit cad26b9 into main Apr 11, 2025
34 of 35 checks passed
@rlazo rlazo deleted the rl.perf.regex branch April 11, 2025 14:51
@google-oss-bot
Copy link
Contributor

Startup Time Report 1

Note: Layout is sometimes suboptimal due to limited formatting support on GitHub. Please check this report on GCS.

Notes

Startup Times

  • fire-perf

    DeviceStatisticsDistributions
    oriole-32
    Percentile70c8e890d68ce7DiffSignificant (?)
    p10251 ±15 μs256 ±20 μs+5.85 μs (+2.3%)NO
    p25262 ±14 μs267 ±18 μs+4.20 μs (+1.6%)NO
    p50284 ±14 μs282 ±17 μs-2.09 μs (-0.7%)NO
    p75328 ±23 μs303 ±17 μs-24.7 μs (-7.5%)NO
    p90384 ±37 μs362 ±37 μs-22.0 μs (-5.7%)NO

    20 test runs in comparison
    CommitTest Runs
    70c8e89
    • 2025-04-10_19:43:20.185599_ofvb
    • 2025-04-10_19:43:20.185631_CbkX
    • 2025-04-10_19:43:20.185644_xSdJ
    • 2025-04-10_19:43:20.185652_ahSU
    • 2025-04-10_19:43:20.185660_MelI
    • 2025-04-10_19:43:20.185668_rsTl
    • 2025-04-10_19:43:20.185675_pBds
    • 2025-04-10_19:43:20.185681_WXCN
    • 2025-04-10_19:43:20.185688_WkbI
    • 2025-04-10_19:43:20.185694_Yvhm
    0d68ce7
    • 2025-04-11_14:58:56.373518_WqxY
    • 2025-04-11_14:58:56.373549_Xugt
    • 2025-04-11_14:58:56.373556_eoiF
    • 2025-04-11_14:58:56.373560_kIgj
    • 2025-04-11_14:58:56.373570_PBfW
    • 2025-04-11_14:58:56.373575_OIfj
    • 2025-04-11_14:58:56.373578_OliJ
    • 2025-04-11_14:58:56.373582_IeZZ
    • 2025-04-11_14:58:56.373586_GQqf
    • 2025-04-11_14:58:56.373590_VxTZ
    redfin-30
    Percentile70c8e890d68ce7DiffSignificant (?)
    p10754 ±63 μs729 ±54 μs-25.5 μs (-3.4%)NO
    p25794 ±62 μs769 ±46 μs-25.6 μs (-3.2%)NO
    p50896 ±69 μs825 ±49 μs-70.2 μs (-7.8%)NO
    p75988 ±86 μs897 ±55 μs-91.0 μs (-9.2%)NO
    p901.08 ±0.1 ms994 ±58 μs-82.6 μs (-7.7%)NO

    20 test runs in comparison
    CommitTest Runs
    70c8e89
    • 2025-04-10_19:43:20.185599_ofvb
    • 2025-04-10_19:43:20.185631_CbkX
    • 2025-04-10_19:43:20.185644_xSdJ
    • 2025-04-10_19:43:20.185652_ahSU
    • 2025-04-10_19:43:20.185660_MelI
    • 2025-04-10_19:43:20.185668_rsTl
    • 2025-04-10_19:43:20.185675_pBds
    • 2025-04-10_19:43:20.185681_WXCN
    • 2025-04-10_19:43:20.185688_WkbI
    • 2025-04-10_19:43:20.185694_Yvhm
    0d68ce7
    • 2025-04-11_14:58:56.373518_WqxY
    • 2025-04-11_14:58:56.373549_Xugt
    • 2025-04-11_14:58:56.373556_eoiF
    • 2025-04-11_14:58:56.373560_kIgj
    • 2025-04-11_14:58:56.373570_PBfW
    • 2025-04-11_14:58:56.373575_OIfj
    • 2025-04-11_14:58:56.373578_OliJ
    • 2025-04-11_14:58:56.373582_IeZZ
    • 2025-04-11_14:58:56.373586_GQqf
    • 2025-04-11_14:58:56.373590_VxTZ
  • fire-sessions

    DeviceStatisticsDistributions
    oriole-32
    Percentile70c8e890d68ce7DiffSignificant (?)
    p102.14 ±0.7 ms2.46 ±0.6 ms+315 μs (+14.7%)NO
    p252.32 ±0.7 ms2.64 ±0.7 ms+328 μs (+14.2%)NO
    p502.59 ±0.8 ms2.96 ±0.7 ms+370 μs (+14.3%)NO
    p753.00 ±0.8 ms3.47 ±0.7 ms+474 μs (+15.8%)NO
    p903.52 ±0.9 ms4.08 ±0.7 ms+560 μs (+15.9%)NO

    20 test runs in comparison
    CommitTest Runs
    70c8e89
    • 2025-04-10_19:43:20.185599_ofvb
    • 2025-04-10_19:43:20.185631_CbkX
    • 2025-04-10_19:43:20.185644_xSdJ
    • 2025-04-10_19:43:20.185652_ahSU
    • 2025-04-10_19:43:20.185660_MelI
    • 2025-04-10_19:43:20.185668_rsTl
    • 2025-04-10_19:43:20.185675_pBds
    • 2025-04-10_19:43:20.185681_WXCN
    • 2025-04-10_19:43:20.185688_WkbI
    • 2025-04-10_19:43:20.185694_Yvhm
    0d68ce7
    • 2025-04-11_14:58:56.373518_WqxY
    • 2025-04-11_14:58:56.373549_Xugt
    • 2025-04-11_14:58:56.373556_eoiF
    • 2025-04-11_14:58:56.373560_kIgj
    • 2025-04-11_14:58:56.373570_PBfW
    • 2025-04-11_14:58:56.373575_OIfj
    • 2025-04-11_14:58:56.373578_OliJ
    • 2025-04-11_14:58:56.373582_IeZZ
    • 2025-04-11_14:58:56.373586_GQqf
    • 2025-04-11_14:58:56.373590_VxTZ
    redfin-30
    Percentile70c8e890d68ce7DiffSignificant (?)
    p104.19 ±0.6 ms4.49 ±1 ms+298 μs (+7.1%)NO
    p254.48 ±0.7 ms4.82 ±1 ms+339 μs (+7.6%)NO
    p504.86 ±0.8 ms5.46 ±2 ms+592 μs (+12.2%)NO
    p755.37 ±1 ms6.33 ±3 ms+959 μs (+17.9%)NO
    p906.21 ±2 ms7.34 ±4 ms+1.14 ms (+18.3%)NO

    20 test runs in comparison
    CommitTest Runs
    70c8e89
    • 2025-04-10_19:43:20.185599_ofvb
    • 2025-04-10_19:43:20.185631_CbkX
    • 2025-04-10_19:43:20.185644_xSdJ
    • 2025-04-10_19:43:20.185652_ahSU
    • 2025-04-10_19:43:20.185660_MelI
    • 2025-04-10_19:43:20.185668_rsTl
    • 2025-04-10_19:43:20.185675_pBds
    • 2025-04-10_19:43:20.185681_WXCN
    • 2025-04-10_19:43:20.185688_WkbI
    • 2025-04-10_19:43:20.185694_Yvhm
    0d68ce7
    • 2025-04-11_14:58:56.373518_WqxY
    • 2025-04-11_14:58:56.373549_Xugt
    • 2025-04-11_14:58:56.373556_eoiF
    • 2025-04-11_14:58:56.373560_kIgj
    • 2025-04-11_14:58:56.373570_PBfW
    • 2025-04-11_14:58:56.373575_OIfj
    • 2025-04-11_14:58:56.373578_OliJ
    • 2025-04-11_14:58:56.373582_IeZZ
    • 2025-04-11_14:58:56.373586_GQqf
    • 2025-04-11_14:58:56.373590_VxTZ
  • timeToInitialDisplay

    DeviceStatisticsDistributions
    oriole-32
    Percentile70c8e890d68ce7DiffSignificant (?)
    p10197 ±5 ms200 ±4 ms+2.45 ms (+1.2%)NO
    p25204 ±5 ms206 ±4 ms+2.29 ms (+1.1%)NO
    p50210 ±5 ms213 ±4 ms+2.83 ms (+1.3%)NO
    p75218 ±5 ms222 ±4 ms+3.77 ms (+1.7%)NO
    p90225 ±6 ms232 ±6 ms+6.15 ms (+2.7%)NO

    20 test runs in comparison
    CommitTest Runs
    70c8e89
    • 2025-04-10_19:43:20.185599_ofvb
    • 2025-04-10_19:43:20.185631_CbkX
    • 2025-04-10_19:43:20.185644_xSdJ
    • 2025-04-10_19:43:20.185652_ahSU
    • 2025-04-10_19:43:20.185660_MelI
    • 2025-04-10_19:43:20.185668_rsTl
    • 2025-04-10_19:43:20.185675_pBds
    • 2025-04-10_19:43:20.185681_WXCN
    • 2025-04-10_19:43:20.185688_WkbI
    • 2025-04-10_19:43:20.185694_Yvhm
    0d68ce7
    • 2025-04-11_14:58:56.373518_WqxY
    • 2025-04-11_14:58:56.373549_Xugt
    • 2025-04-11_14:58:56.373556_eoiF
    • 2025-04-11_14:58:56.373560_kIgj
    • 2025-04-11_14:58:56.373570_PBfW
    • 2025-04-11_14:58:56.373575_OIfj
    • 2025-04-11_14:58:56.373578_OliJ
    • 2025-04-11_14:58:56.373582_IeZZ
    • 2025-04-11_14:58:56.373586_GQqf
    • 2025-04-11_14:58:56.373590_VxTZ
    redfin-30
    Percentile70c8e890d68ce7DiffSignificant (?)
    p10224 ±2 ms254 ±13 ms+30.5 ms (+13.6%)NO
    p25230 ±2 ms261 ±13 ms+31.0 ms (+13.5%)NO
    p50237 ±2 ms268 ±14 ms+31.3 ms (+13.2%)NO
    p75245 ±2 ms277 ±14 ms+32.6 ms (+13.3%)NO
    p90253 ±3 ms292 ±12 ms+38.9 ms (+15.3%)MAYBE

    20 test runs in comparison
    CommitTest Runs
    70c8e89
    • 2025-04-10_19:43:20.185599_ofvb
    • 2025-04-10_19:43:20.185631_CbkX
    • 2025-04-10_19:43:20.185644_xSdJ
    • 2025-04-10_19:43:20.185652_ahSU
    • 2025-04-10_19:43:20.185660_MelI
    • 2025-04-10_19:43:20.185668_rsTl
    • 2025-04-10_19:43:20.185675_pBds
    • 2025-04-10_19:43:20.185681_WXCN
    • 2025-04-10_19:43:20.185688_WkbI
    • 2025-04-10_19:43:20.185694_Yvhm
    0d68ce7
    • 2025-04-11_14:58:56.373518_WqxY
    • 2025-04-11_14:58:56.373549_Xugt
    • 2025-04-11_14:58:56.373556_eoiF
    • 2025-04-11_14:58:56.373560_kIgj
    • 2025-04-11_14:58:56.373570_PBfW
    • 2025-04-11_14:58:56.373575_OIfj
    • 2025-04-11_14:58:56.373578_OliJ
    • 2025-04-11_14:58:56.373582_IeZZ
    • 2025-04-11_14:58:56.373586_GQqf
    • 2025-04-11_14:58:56.373590_VxTZ

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/PHWG2Awdb5/index.html

@firebase firebase locked and limited conversation to collaborators May 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants