Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

http-client-java, e2e test, use clientcore #5437

Open
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

weidongxu-microsoft
Copy link
Contributor

@weidongxu-microsoft weidongxu-microsoft commented Dec 25, 2024

fix Azure/autorest.java#3000
fix Azure/autorest.java#3002
fix Azure/autorest.java#2986

Cases that generated code cannot compile is currently skipped.
Cases that not able to pass is disabled.

Current result https://specdashboard.z5.web.core.windows.net/
image

@microsoft-github-policy-service microsoft-github-policy-service bot added the emitter:client:java Issue for the Java client emitter: @typespec/http-client-java label Dec 25, 2024
@azure-sdk
Copy link
Collaborator

No changes needing a change description found.

@weidongxu-microsoft weidongxu-microsoft force-pushed the http-client-java_e2e-standard branch from f84cc08 to ff96a9d Compare December 25, 2024 02:38
@azure-sdk
Copy link
Collaborator

azure-sdk commented Dec 25, 2024

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs 🛝 VSCode Extension

@weidongxu-microsoft weidongxu-microsoft force-pushed the http-client-java_e2e-standard branch from bdc469c to cdcec31 Compare January 8, 2025 05:13
@weidongxu-microsoft weidongxu-microsoft force-pushed the http-client-java_e2e-standard branch from ee6429d to 38a23eb Compare January 8, 2025 06:27
@weidongxu-microsoft weidongxu-microsoft changed the title [WIP] http-client-java, e2e test, use clientcore http-client-java, e2e test, use clientcore Jan 8, 2025
Comment on lines 91 to 104
# ServiceVersion not in core
Remove-Item ./specs/versioning -Recurse -Force
Remove-Item ./specs/server/path -Recurse -Force
Remove-Item ./specs/server/versions -Recurse -Force
# TokenCredential not in core
Remove-Item ./specs/authentication/oauth2 -Recurse -Force
Remove-Item ./specs/authentication/union -Recurse -Force
# Base64Url not in core
Remove-Item ./specs/encode/bytes -Recurse -Force
# DateTimeRfc1123 is private in beta.1, should now be public in main
Remove-Item ./specs/encode/datetime -Recurse -Force
Remove-Item ./specs/special-headers -Recurse -Force
# JacksonAdapter not in core
Remove-Item ./specs/encode/duration -Recurse -Force
Copy link
Contributor Author

@weidongxu-microsoft weidongxu-microsoft Jan 9, 2025

Choose a reason for hiding this comment

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

At present, lots of tests is skipped, due to class/feature not available in clientcore (compile failure).

Some tests are also disabled (runtime failure).

We will later make a summary on these, and discuss what need to be fixed in clientcore, what need to be handled differently in emitter.


After clientcore beta.2 we likely can enable more test (I think I can see DateTimeRfc1123 be public in current code)

@@ -52,7 +64,7 @@ try {
if (!(Test-Path $coverageReportDir)) {
New-Item -ItemType Directory -Path $coverageReportDir

$sourceFile = Join-Path $packageRoot 'generator/http-client-generator-test/tsp-spector-coverage-java-standard.json'
$sourceFile = Join-Path $packageRoot 'generator/http-client-generator-clientcore-test/tsp-spector-coverage-java-standard.json'
Copy link
Contributor Author

@weidongxu-microsoft weidongxu-microsoft Jan 9, 2025

Choose a reason for hiding this comment

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

Now we can finally take the report of unbranded e2e.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emitter:client:java Issue for the Java client emitter: @typespec/http-client-java
Projects
None yet
3 participants