Skip to content

sync core library, prepare typespec-java 0.41.0 and autorest.java 4.1.63#3298

Merged
XiaofeiCao merged 15 commits intomainfrom
mgmt_use_separate_entry_for_example
Mar 6, 2026
Merged

sync core library, prepare typespec-java 0.41.0 and autorest.java 4.1.63#3298
XiaofeiCao merged 15 commits intomainfrom
mgmt_use_separate_entry_for_example

Conversation

@XiaofeiCao
Copy link
Contributor

No description provided.

@weidongxu-microsoft
Copy link
Member

when I am running on local it seems OK

image image

@weidongxu-microsoft
Copy link
Member

weidongxu-microsoft commented Mar 5, 2026

maybe similar to this microsoft/typespec#6662

and to this day we has code in tsp-client like this 2>&1
https://github.com/Azure/azure-sdk-for-java/blob/main/eng/scripts/Compare-CurrentToCodegeneration.ps1#L172


though 3.7.2 is fine too, we are not likely to bump version anyway.

@XiaofeiCao
Copy link
Contributor Author

XiaofeiCao commented Mar 5, 2026

maybe similar to this microsoft/typespec#6662

and to this day we has code in tsp-client like this 2>&1 https://github.com/Azure/azure-sdk-for-java/blob/main/eng/scripts/Compare-CurrentToCodegeneration.ps1#L172

though 3.7.2 is fine too, we are not likely to bump version anyway.

Yeah, exit code is 0 for 3.8.0. Pipeline failure likely be caused by stderr. We could merge stderr into stdout as you mentioned. Curious why failOnStderr: false doesn't work...

Anyway, I'll stick to pinning autorest version.

github-merge-queue bot pushed a commit to microsoft/typespec that referenced this pull request Mar 6, 2026
- emitter part for
Azure/azure-sdk-for-java#47621
- autorest PR: Azure/autorest.java#3298
- sdk repo PR: Azure/azure-sdk-for-java#48226
- sync SDK PR looks good:
Azure/azure-sdk-for-java#48179

## Summary

Replace `AzureResourceManager` with SDK-specific `XXManager` as the
entry point in Fluent Premium samples.

Previously, premium samples were generated with `AzureResourceManager`
as the entry type and then moved to
`sdk/resourcemanager/azure-resourcemanager/samples` by the downstream
`generate.py` script. This change makes premium samples use the
corresponding `XXManager` (e.g., `ComputeManager`, `StorageManager`)
directly, so samples can stay in their own SDK location.

### Before vs After

```java
// Before: premium sample used AzureResourceManager
void sampleMethod(com.azure.resourcemanager.AzureResourceManager azure) {
    azure.storageAccounts().manager().serviceClient().getStorageAccounts().list();
}

// After: premium sample uses SDK-specific manager
void sampleMethod(com.azure.resourcemanager.storage.StorageManager manager) {
    manager.serviceClient().getStorageAccounts().list();
}
```

Will update `generate.py` when this got shipped.
@weidongxu-microsoft
Copy link
Member

if you plan release, take microsoft/typespec#9926 with it

@XiaofeiCao XiaofeiCao changed the title sync core library https://github.com/microsoft/typespec/pull/9845 sync core library, prepare typespec-java 0.41.0 and autorest.java 4.1.63 Mar 6, 2026
@XiaofeiCao XiaofeiCao marked this pull request as ready for review March 6, 2026 07:20
@XiaofeiCao XiaofeiCao merged commit e54fa8f into main Mar 6, 2026
5 checks passed
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