Skip to content

Prepare rcdk for rcdklibs 2.14.1 - #158

Draft
zachcp wants to merge 4 commits into
CDK-R:masterfrom
zachcp:rcdklibs-2.14.1-release
Draft

zachcp wants to merge 4 commits into
CDK-R:masterfrom
zachcp:rcdklibs-2.14.1-release

Conversation

@zachcp

@zachcp zachcp commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Prepare rcdk for GitHub-only rcdklibs 2.14.1, pinned at
bf933d76929ab9a5835881a1a099e27eccfe849a.

  • Require rcdklibs >= 2.14.1.
  • Rebuild the shipped helper JAR against the actual 2.14.1 CDK JAR.
  • Retain upstream CDK's Java 8 baseline using --release 8.
  • Require an explicit build classpath instead of silently using CDK 2.2.
  • Update CI to build under JDK 17 and check under Java 8 and 17.
  • Update unit-test expectations and fix deprecated-function documentation.
  • Add reproducible release-check tooling and a reverse-dependency analysis.
  • Preserve explicit-hydrogen hashing for standard, extended, graph, and
    hybridization fingerprints after CDK changed its default.

Validation

Local macOS ARM64, R 4.5.2, JDK 27:

  • Ant clean compilation against pinned rcdklibs: passed.
  • All helper classes target Java 8 (class-file major 52).
  • Missing-classpath build correctly rejected.
  • R CMD check --no-manual: zero errors, warnings, notes.
  • Paired reverse-dependency checks completed for all 12 direct reverse
    Depends/Imports/Suggests/LinkingTo packages across CRAN and Bioconductor 3.22.
  • Baseline: CRAN rcdk 3.8.2 / rcdklibs 2.9.
  • Candidate: rcdk 3.9.0 / GitHub rcdklibs 2.14.1.
  • The initial full run had ten packages with no new problems, including both
    Bioconductor packages (DeepPINCS and RMassBank). No installation failures or
    timeouts. It found FastRet and RxnSim failures.
  • After the hydrogen-hashing fix, unpatched RxnSim 1.0.4 passes
    R CMD check --no-manual --no-build-vignettes with zero errors, warnings,
    and notes. rcdk's R CMD check --no-manual, including the new regression
    tests, also passes with zero errors, warnings, and notes.
  • The full 12-package matrix has not been repeated after the hydrogen fix.
  • R/YAML parsing and git diff --check: passed.

Outstanding release blockers

  • FastRet 1.5.2: cached versus freshly computed descriptors differ
    in MW and ATSm1 through ATSm5; one newly failing test. Zach will coordinate
    with the FastRet authors on a compatible release/update.
  • Resolve RxnSim 1.0.4's missing similarity in rcdk by retaining hydrogen hashing.
  • Investigate downstream patches and test against both stacks.
  • Validate Java 8/17 runtime matrix in CI; local checks used JDK 27.
  • Choose final rcdk version/date.
  • Wait for rcdklibs 2.14.1 on CRAN before submission.

Downstream patch progress

Compatibility patch proposals are being prepared in tools/downstream/:

  • RxnSim (resolved in rcdk): [H+] had an empty CDK extended fingerprint. Comparing two empty
    sets produces NaN with Tanimoto and breaks reaction matching. The proposed
    patch explicitly defines empty/empty Tanimoto/Jaccard similarity as 1, leaving
    other metrics unchanged. Regression tests and package checks passed against
    both CRAN rcdk 3.8.2 / rcdklibs 2.9 and the 2.14.1 candidate. That downstream
    workaround is now superseded: explicitly enabling hydrogen hashing in rcdk
    allows the unmodified RxnSim package to pass.
  • FastRet: replace a comparison between historical cached descriptors and
    current CDK calculations with a comparison of the uncached path and a direct
    current calculation. Preserve production behavior, historical cache values,
    numerical tolerances, and cache round-trip/parallel tests. All 15 focused
    assertions pass on both stacks.

All four patched-package checks (two packages × two dependency stacks) have
now completed with zero R CMD check errors, warnings, or notes, using
--no-manual --no-build-vignettes and _R_CHECK_FORCE_SUGGESTS_=false.
FastRet's internal testthat summary on each stack is 146 passes, zero failures,
one warning, six skips (five CRAN-disabled tests and one optional caret test).
The original unpatched reverse-dependency results remain two newly broken
packages; these successful patch checks do not imply downstream acceptance.

These are local patch proposals, not yet accepted or submitted downstream.
FastRet's test-only patch is not the complete production cache policy:
tools/downstream/FastRet-cache-design.md records the versioned-cache and
model-provenance considerations for coordination with its authors.
The cached geomShape NA versus fresh NaN difference occurs on both backends;
it is not a newly introduced missing-value change. Descriptor counts and order
are identical in the diagnosed fixture; the changes are in mass calculations.

See tools/revdeps-2.14.1.md for package-by-package results, scope, and limitations.
This is a draft, not release clearance; no merge is requested yet.

This branch has not been deployed

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

1 participant