Skip to content

Fixes the failure of nativeTest under GraalVM Native Image due to changes in the winget package#37724

Merged
RaigorJiang merged 2 commits intoapache:masterfrom
linghengqian:fix-native-test
Jan 13, 2026
Merged

Fixes the failure of nativeTest under GraalVM Native Image due to changes in the winget package#37724
RaigorJiang merged 2 commits intoapache:masterfrom
linghengqian:fix-native-test

Conversation

@linghengqian
Copy link
Member

@linghengqian linghengqian commented Jan 13, 2026

Fixes https://github.com/apache/shardingsphere/actions/runs/20920792704/job/60105524341 .

Changes proposed in this pull request:

No package found matching input criteria.

PowerShell Tools

  • PowerShell 7.4.13
  • Update the GraalVM Reachability Metadata associated with this subset of integration tests.

Before committing this PR, I'm sure that I have checked the following options:

  • My code follows the code of conduct of this project.
  • I have self-reviewed the commit code.
  • I have (or in comment I request) added corresponding labels for the pull request.
  • I have passed maven check locally : ./mvnw clean install -B -T1C -Dmaven.javadoc.skip -Dmaven.jacoco.skip -e.
  • I have made corresponding changes to the documentation.
  • I have added corresponding unit tests for my changes.
  • I have updated the Release Notes of the current development version. For more details, see Update Release Note

Copy link

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 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.

@linghengqian linghengqian marked this pull request as ready for review January 13, 2026 05:50
@linghengqian linghengqian added this to the 5.5.3 milestone Jan 13, 2026
@RaigorJiang RaigorJiang merged commit 404e98b into apache:master Jan 13, 2026
154 checks passed
@linghengqian linghengqian deleted the fix-native-test branch January 13, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants