Skip to content

Conversation

Copy link

Copilot AI commented Dec 3, 2025

Fixes AB#3444129 Merges sjain/working/release/23.1.1 into dev after syncing the release branch with latest dev changes.

Changes

  • Version bump to 23.1.1 in versioning/version.properties and common4j/versioning/version.properties
  • Changelog updates with 23.1.1 patch entries for SharedPreferencesInMemoryCache improvements

Conflict Resolutions

  • CommonFlight.java - Retained new DISABLE_UNNECESSARY_CRYPTO_PURPOSES_FROM_DEVICE_POP_MANAGER flight from dev
  • BrokerOAuth2TokenCache.java, AttributeName.java - Whitespace normalization
  • Version files - Kept 23.1.1 release version

This pull request was created as a result of the following prompt from Copilot chat.

  1. Merge the dev branch into sjain/working/release/23.1.1.
  2. Resolve any conflicts if present.
  3. Create a pull request to merge sjain/working/release/23.1.1 into dev.
    No summary of changes is required unless requested later.
Original prompt
  1. Merge the dev branch into sjain/working/release/23.1.1.
  2. Resolve any conflicts if present.
  3. Create a pull request to merge sjain/working/release/23.1.1 into dev.
    No summary of changes is required unless requested later.

This pull request was created as a result of the following prompt from Copilot chat.

  1. Merge the dev branch into sjain/working/release/23.1.1.
  2. Resolve any conflicts if present.
  3. Create a pull request to merge sjain/working/release/23.1.1 into dev.
    No summary of changes is required unless requested later.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

wzhipan and others added 5 commits November 13, 2025 10:51
…427295 (#2812)

The Final Monthly Release pipeline failed, so I manually merged the
working release branch into the release branch to proceed with the
release.


[AB#3427295](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3427295)

---------

Co-authored-by: Azure DevOps Pipeline <[email protected]>
…B#3444129 (#2822)

Fixes
[AB#3444129](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3444129)

Cherry-picks two commits from dev to enable in-memory caching for
accounts and credentials in the broker.

## Commits
- **f904c60** - Use in-memory cache for accounts and credentials
([AB#3417272](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3417272),
#2802)
- **228db78** - Share SharedPreferencesInMemoryCache across cache
instances
([AB#3428107](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3428107),
#2813)

## Changes

**Core Implementation** (`BrokerOAuth2TokenCache.java`)
- Added static `ConcurrentHashMap` to share in-memory cache instances
across `BrokerOAuth2TokenCache` instances
- Reduces disk I/O and serialization overhead by reusing cache layers
for the same underlying storage

**Feature Flag** (`CommonFlight.java`)
- Added `USE_IN_MEMORY_CACHE_FOR_ACCOUNTS_AND_CREDENTIALS` (default:
false)

**Telemetry** (`AttributeName.java`)
- Added `in_memory_cache_used_for_accounts_and_credentials` attribute

**Tests**
- New `BrokerOAuth2TokenCacheWithInMemoryCacheTest.java` (1240 lines)
- Extended `BrokerOAuth2TokenCacheTest.java` with cache sharing tests

## Conflicts Resolved

`changelog.txt` had conflicts due to version markers in the release
branch. Resolved by adding entries under vNext:
```
- [MINOR] Share SharedPreferencesInMemoryCache across instances of BrokerOAuth2TokenCache (#2813)
- [MINOR] Use SharedPreferencesInMemoryCache implementation in Broker (#2802)
```

> [!WARNING]
>
> <details>
> <summary>Firewall rules blocked me from connecting to one or more
addresses (expand for details)</summary>
>
> #### I tried to connect to the following addresses, but was blocked by
firewall rules:
>
> - `dl.google.com`
> - Triggering command: `/usr/lib/jvm/temurin-17-jdk-amd64/bin/java
/usr/lib/jvm/temurin-17-jdk-amd64/bin/java
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED
--add-opens=java.base/java.nio.charset=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED
-XX:MaxMetaspaceSize=1024m -XX:&#43;HeapDumpOnOutOfMemoryError -Xmx3072m
-Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant`
(dns block)
> - `www.puppycrawl.com`
> - Triggering command:
`/opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/tools/linux64/java/bin/java
/opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/tools/linux64/java/bin/java
-jar
/opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/xml/tools/xml-extractor.jar
--fileList=/home/REDACTED/work/microsoft-authentication-library-common-for-android/.codeql-scratch/dbs/java/working/files-to-index2294403091429273239.list
--sourceArchiveDir=/home/REDACTED/work/microsoft-authentication-library-common-for-android/.codeql-scratch/dbs/java/src
--outputDir=/home/REDACTED/work/microsoft-authentication-library-common-for-android/.codeql-scratch/dbs/java/trap/java`
(dns block)
>
> If you need me to access, download, or install something from one of
these locations, you can either:
>
> - Configure [Actions setup
steps](https://gh.io/copilot/actions-setup-steps) to set up my
environment, which run before the firewall is enabled
> - Add the appropriate URLs or hosts to the custom allowlist in this
repository's [Copilot coding agent
settings](https://github.com/AzureAD/microsoft-authentication-library-common-for-android/settings/copilot/coding_agent)
(admins only)
>
> </details>

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>

> Cherry-pick the following commits from the dev branch to the
working/release/23.1.1 branch:
> 
> - f904c60
> - 228db78
> 
> Include all files and changes from the specified commits. Ensure that
any conflicts are noted in the pull request description. Provide a
detailed summary of what was cherry-picked in the PR body.


</details>

*This pull request was created as a result of the following prompt from
Copilot chat.*
> Cherry-pick the following commits from the dev branch to the
working/release/23.1.1 branch:
> 
> - f904c60
> - 228db78
> 
> Include all files and changes from the specified commits. Ensure that
any conflicts are noted in the pull request description. Provide a
detailed summary of what was cherry-picked in the PR body.

<!-- START COPILOT CODING AGENT TIPS -->
---

💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: siddhijain <[email protected]>
Co-authored-by: Siddhi <[email protected]>
@github-actions
Copy link

github-actions bot commented Dec 3, 2025

❌ Work item link check failed. Description does not contain AB#{ID}.

Click here to Learn more.

Copilot AI changed the title [WIP] Merge working release 23.1.1 into dev branch Merge release 23.1.1 into dev Dec 3, 2025
Copilot AI requested a review from siddhijain December 3, 2025 19:35
Copilot finished work on behalf of siddhijain December 3, 2025 19:35
@siddhijain
Copy link
Contributor

@copilot Few changes - we do not want to merge the changes in build.gradle. Could you remove that file from the PR?

Copy link
Author

Copilot AI commented Dec 3, 2025

@copilot Few changes - we do not want to merge the changes in build.gradle. Could you remove that file from the PR?

Removed build.gradle from the PR in commit 0e33190. The common4jVersion is now back to "1.0.+" as in dev.

Copilot finished work on behalf of siddhijain December 3, 2025 19:40
@siddhijain siddhijain marked this pull request as ready for review December 3, 2025 19:46
@siddhijain siddhijain requested review from a team as code owners December 3, 2025 19:46
Copilot AI review requested due to automatic review settings December 3, 2025 19:46
Copilot finished reviewing on behalf of siddhijain December 3, 2025 19:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR merges the release branch sjain/working/release/23.1.1 back into dev after preparing the 23.1.1 patch release. The release includes improvements to SharedPreferencesInMemoryCache for better memory efficiency in broker scenarios.

  • Version bumped from 23.1.0 to 23.1.1 across both Common and Common4j modules
  • Changelog updated to document 23.1.1 patch changes that were previously under vNext
  • Whitespace and formatting normalized during conflict resolution

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
versioning/version.properties Bumps Common library version to 23.1.1
common4j/versioning/version.properties Bumps Common4j library version to 23.1.1
changelog.txt Adds Version 23.1.1 section with SharedPreferencesInMemoryCache PATCH changes
common4j/src/main/com/microsoft/identity/common/java/opentelemetry/AttributeName.java Normalizes whitespace formatting (removes trailing spaces)
common4j/src/main/com/microsoft/identity/common/java/cache/BrokerOAuth2TokenCache.java Adds proper spacing after comma in method call

@siddhijain siddhijain changed the title Merge release 23.1.1 into dev Fixes AB#3444129 Merge release 23.1.1 into dev Dec 4, 2025
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

✅ Work item link check complete. Description contains link AB#3444129 to an Azure Boards work item.

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.

5 participants