Fixes the failure of nativeTest under GraalVM Native Image due to changes in the winget package#37724
Merged
RaigorJiang merged 2 commits intoapache:masterfrom Jan 13, 2026
Merged
Conversation
6ec2238 to
c1efc34
Compare
…nges in the winget package
c1efc34 to
8fbafed
Compare
There was a problem hiding this comment.
Pull request overview
This pull request fixes the failure of nativeTest under GraalVM Native Image caused by changes in the winget package. The PR is a prerequisite for resolving #37718 (removal of Derby support).
Changes:
- Updated PowerShell installation method for WingetPathUpdater from winget package to direct script installation
- Updated GraalVM Reachability Metadata for native image compilation to reflect current runtime requirements
- Reorganized and expanded metadata entries for better reflection analysis support
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| test/native/src/test/resources/test-native/ps1/config-rdctl.ps1 | Changed from winget install to direct script installation via irm to work around winget package availability issues |
| infra/reachability-metadata/.../reachability-metadata.json | Reorganized and added new reflection metadata entries for Java classes and types needed by GraalVM Native Image |
| infra/reachability-metadata/.../generated-reachability-metadata.json | Updated auto-generated reflection metadata with new type conditions and method/field registrations |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
RaigorJiang
approved these changes
Jan 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes https://github.com/apache/shardingsphere/actions/runs/20920792704/job/60105524341 .
Changes proposed in this pull request:
jazzdelightsme.WingetPathUpdateris no longer available on winget jazzdelightsme/WingetPathUpdater#9 . This is a prerequisite for resolving Remove support for DerbyNetworkServer and EmbeddedDerby #37718 .jazzdelightsme.WingetPathUpdaterin CI because PowerShell 7.6.0, mentioned in Installing a package doesn't add it it to path microsoft/winget-cli#549 and Update PATH envrionment variable for package manager executable on Windows PowerShell/PowerShell#25847 , is not yet available in Github Actions. See https://github.com/actions/runner-images/blob/main/images/windows/Windows2025-Readme.md .Before committing this PR, I'm sure that I have checked the following options:
./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.