Skip to content

fix: backport JAR-bundling + release-workflow fixes to 2.0 (#284, #289, #290, #292) - #294

Merged
rahlk merged 1 commit into
release/2.0from
chore/backport-release-fixes-to-2.0
Jul 22, 2026
Merged

fix: backport JAR-bundling + release-workflow fixes to 2.0 (#284, #289, #290, #292)#294
rahlk merged 1 commit into
release/2.0from
chore/backport-release-fixes-to-2.0

Conversation

@rahlk

Copy link
Copy Markdown
Collaborator

Backports the JAR-bundling and release-workflow fixes from main to the 2.0 line. 2.0.0-rc.1
shipped jarless (188 KB wheel, no codeanalyzer-java JAR — same class of bug as 1.2.0–1.4.3), so
CLDK.java(...) after a plain pip install failed with codeanalyzer jar not found.

What's ported

FixOrigin
[tool.hatch.build] artifacts force-includes the JAR (hatchling drops it via the root *.jar ignore, ignoring the nested negation)#284 / #285
Pipe-safe release guard — fails a jarless build before publishing#284 / #287
Release notes sourced from CHANGELOG.md + fail-on-blank; label-based scraper and release_config.json removed#289
Remove obsolete native-binary test + unused import sys#290
Fix stale conftest docstring for the retired native binary#292

How it was ported

release/2.0's release.yml was byte-identical to pre-fix main, so main's finished workflow was
applied wholesale; the pyproject/test/conftest edits were re-applied (their blocks were identical to
main's). CHANGELOG gets an [Unreleased] entry (the JAR fix is user-facing here).

Verification

Built on this branch (with .git, the CI condition):

uv build
# cldk-2.0.0rc1-py3-none-any.whl = 32,428,510 B -> cldk/analysis/java/codeanalyzer/jar/codeanalyzer-2.4.1.jar
# cldk-2.0.0rc1.tar.gz = 32,435,956 B -> (JAR present)

tests/analysis/java/test_jcodeanalyzer.py42 passed. No 2.0 release cut here — this only updates the branch.

, #290, #292)
Ports the fixes shipped on main to the 2.0 line (2.0.0-rc.1 shipped jarless):
- Force-include the codeanalyzer-java JAR via [tool.hatch.build] artifacts (#284)
- Pipe-safe release guard that fails a jarless build before publishing (#284)
- Source release notes from CHANGELOG.md and fail on blank; drop the label-based
changelog scraper and orphaned release_config.json (#289)
- Remove the obsolete native-binary test and its unused import (#290)
- Fix the stale conftest docstring for the retired native binary (#292)
Verified: build on this branch (with .git) yields a 32MB wheel+sdist containing the
JAR; tests/analysis/java/test_jcodeanalyzer.py -> 42 passed.
@rahlk
rahlk merged commit ec618bc into release/2.0Jul 22, 2026
@rahlk
rahlk deleted the chore/backport-release-fixes-to-2.0 branch July 22, 2026 21:53
Sign up for freeto 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

@rahlk