Skip to content

fix: restore native runtime compatibility and gate dependency merges - #715

Merged
Codename-11 merged 2 commits into
devfrom
fix/onnx-dependency-merge-gate
Oct 15, 2026
Merged

Codename-11 merged 2 commits into
devfrom
fix/onnx-dependency-merge-gate

Conversation

@Codename-11

@Codename-11 Codename-11 commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

#706 updated ONNX Runtime without updating sherpa-onnx's native dependency. Both APK flavors then failed the packaged JNI compatibility check. Restore the compatible 1.27.0 runtime and prevent dependency updates from merging before the aggregate CI gate passes.

Changes

  • Preserve the original author of the ONNX compatibility fix from fix(android): request include_compacted on session message loads #709, with a source-commit trailer.
  • Require enforced target-branch protection for Required checks from GitHub Actions, including current-base validation, before enabling Dependabot auto-merge.
  • Load the policy from the trusted target branch, limit eligibility to explicit patch/minor updates, pin the requested head SHA, and use merge commits.
  • Run five gate-policy regressions in required CI and document the dependency/native compatibility contract.

Verification

  • node --test .github/scripts/check-dependabot-merge.test.cjs: 5 passed, including absent protection, wrong check, stale-base allowance, and wrong check producer.
  • node .github/scripts/classify-ci-paths.test.cjs: passed.
  • git diff --check: passed.
  • The active dev ruleset was read back and accepted by the same policy validator. It requires the GitHub Actions aggregate check with strict current-base validation and no bypass actors.
  • Hosted required CI passed on 4ee237c56999873404ed6c0cdf47ac8fe64800a0: https://github.com/Codename-11/hermes-relay/actions/runs/38747586356. Both APK flavors passed native compatibility; Android lint/tests and the selected desktop, plugin, dashboard, docs, and contract checks passed. No phone installation or release.

Screenshots

No UI change.

Compatibility / risk

Restores the existing Sherpa ABI baseline. The merge workflow fails closed if protection is removed or changed to an insufficient gate. Major upgrades remain manual. No production deployment or migration.

Lineage / contributor credit

Checklist

  • Targets dev
  • Focused scope and source attribution preserved
  • Local policy regression tests passed
  • Changelog and contributor documentation updated
  • Public writing hygiene checked
  • Hosted CI passes on the final head

ophirhan and others added 2 commits October 15, 2026 09:57
Dependabot #706 raised onnxruntime-android to 1.31.0 while sherpa-onnx
v1.13.4 still links OrtGetApiBase@VERS_1.27.0. CI native-compat then
fails after a green assemble. Restore 1.27.0 to match packaging comments
and unblock include_compacted display loads.

(cherry picked from commit 86b5a27)
@Codename-11
Codename-11 merged commit ebebc31 into dev Oct 15, 2026
19 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