Skip to content

Improvements to patch testing#326

Merged
cconlon merged 1 commit intowolfSSL:masterfrom
padelsbach:all-patched-target-updates
Feb 9, 2026
Merged

Improvements to patch testing#326
cconlon merged 1 commit intowolfSSL:masterfrom
padelsbach:all-patched-target-updates

Conversation

@padelsbach
Copy link
Copy Markdown
Contributor

@padelsbach padelsbach commented Feb 5, 2026

  • In jni-patched-ci.yml, check that all PR patches have been applied, not just the highest numbered
  • Add helper script to get the fork/branch and status of a given PR
  • Update makefile to use flag ENABLE_PATCHES=1 to apply patches rather the dedicated target
  • Exclude additional files in Android build to resolve CI failures

@padelsbach padelsbach force-pushed the all-patched-target-updates branch 6 times, most recently from 245a5cd to 9cf3514 Compare February 6, 2026 06:29
Comment thread IDE/Android/app/src/main/cpp/CMakeLists.txt
@padelsbach padelsbach marked this pull request as ready for review February 6, 2026 16:18
@padelsbach padelsbach requested a review from cconlon February 6, 2026 16:19
@cconlon cconlon requested a review from Copilot February 6, 2026 16:46
Copy link
Copy Markdown

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 improves the patch testing infrastructure for wolfSSL JNI by enhancing how PR patches are discovered, validated, and applied during CI builds. The changes ensure that all PR patches (not just the highest numbered one) are properly checked, and introduces a cleaner flag-based approach for applying patches during builds.

Changes:

  • Added a helper script to query GitHub API for PR fork/branch information and status
  • Modified the CI workflow to check all PR patches (not just the highest numbered) and validate their states
  • Replaced the dedicated all-patched Makefile target with a flag-based approach using ENABLE_PATCHES=1
  • Updated CMakeLists.txt to exclude additional wolfSSL source files that are included inline

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
scripts/find-pr-fork-branch.sh New helper script that queries GitHub API to get PR fork/branch and status information
Makefile Replaces all-patched target with conditional logic using ENABLE_PATCHES=1 flag to apply patch defines
IDE/Android/app/src/main/cpp/CMakeLists.txt Adds additional wolfSSL source files to exclusion list (files that are included inline by others)
.github/workflows/jni-patched-ci.yml Enhanced to check all PR patches instead of just the highest numbered one, with logic to handle multiple PRs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/find-pr-fork-branch.sh Outdated
Comment thread scripts/find-pr-fork-branch.sh Outdated
Comment thread Makefile
Comment thread scripts/find-pr-info.sh
Comment thread scripts/find-pr-info.sh
Comment thread .github/workflows/jni-patched-ci.yml Outdated
@cconlon
Copy link
Copy Markdown
Member

cconlon commented Feb 6, 2026

@padelsbach please give the Copilot items above a look and see which of those you want to fix/implement, thanks.

@cconlon cconlon assigned padelsbach and unassigned cconlon Feb 6, 2026
@padelsbach padelsbach force-pushed the all-patched-target-updates branch from 9cf3514 to a8fa221 Compare February 6, 2026 20:03
@padelsbach padelsbach removed their assignment Feb 6, 2026
@padelsbach padelsbach mentioned this pull request Feb 6, 2026
@padelsbach padelsbach marked this pull request as draft February 6, 2026 21:38
@padelsbach padelsbach force-pushed the all-patched-target-updates branch from a8fa221 to dfba100 Compare February 6, 2026 23:27
@padelsbach padelsbach marked this pull request as ready for review February 7, 2026 00:43
@padelsbach padelsbach requested a review from rlm2002 February 8, 2026 00:01
@cconlon cconlon merged commit 6867aba into wolfSSL:master Feb 9, 2026
96 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.

3 participants