Skip to content

PNE-9649: Bump gemd to 3.1.0 and stop serializing allowed_names - #1078

Merged
wjohnald merged 2 commits into
mainfrom
bump-gemd-3.1.0
Nov 24, 2026
Merged

wjohnald merged 2 commits into
mainfrom
bump-gemd-3.1.0

Conversation

@wjohnald

Copy link
Copy Markdown
Contributor

Citrine Python PR

Description

This PR pins gemd 3.1.0 and stops serializing allowed_names on ProcessTemplate.

gemd 3.1.0 deprecates ProcessTemplate.allowed_names. It discards the value and leaves the key out of the JSON. Citrine Python declares allowed_names as a serialized field, so against gemd 3.1.0 a Citrine ProcessTemplate dumps "allowed_names": [] and does not equal its gemd counterpart. On main, that mismatch breaks six unit tests against gemd 3.1.0. This PR removes the field declaration, so the two dumps match.

ProcessTemplate keeps its allowed_names constructor argument. Callers who pass it get the deprecation warning from gemd, and gemd discards the value. The Citrine Platform ignores the field. PNE-9649 tracks its removal, and #1076 removes the argument.

The dependency floor moves to gemd>=3.1,<4, because gemd 3.0 writes the key, and its templates would not equal Citrine ones.

The unit suite passes at 100% coverage against the gemd v3.1.0 source, and flake8 passes. I did not run the suite against gemd 3.0.

PR Type:

  • Breaking change (fix or feature that would cause existing functionality to change)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Maintenance (non-breaking change to assist developers)

Adherence to team decisions

  • I have added tests for 100% coverage
  • I have written Numpy-style docstrings for every method and class.
  • I have communicated the downstream consequences of the PR to others.
  • I have bumped the version in __version__.py

🤖 Generated with Claude Code

gemd 3.1.0 discards ProcessTemplate.allowed_names and leaves it out of
the JSON. Drop the field declaration so a Citrine ProcessTemplate dumps
the same JSON as its gemd counterpart.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@wjohnald
wjohnald marked this pull request as ready for review November 24, 2026 13:10
@wjohnald
wjohnald requested a review from a team as a code owner November 24, 2026 13:10
Comment thread src/citrine/__version__.py Outdated
@@ -1 +1 @@
__version__ = "5.4.0"
__version__ = "5.4.1"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking, but on the version: I think this one should be 5.5.0 rather than 5.4.1. CONTRIBUTING.md asks for semver, and semver says a minor bump is required when public API is marked deprecated. This PR does that: the allowed_names argument on ProcessTemplate still works, but its value is now discarded with a deprecation warning. It also raises the gemd floor to >=3.1, which changes what installs alongside citrine.

We've bumped minor for both before: "Require gemd>=3,<4" went 5.0.4 → 5.1.0, and "Deprecate experimental result data sources" (#1052) went 4.0.3 → 4.1.0.

I get the case for a patch, since this also fixes the template mismatch for anyone already on gemd 3.1, but a minor release covers that fix too. It's your call either way.

pacdaemon
pacdaemon previously approved these changes Nov 24, 2026

@pacdaemon pacdaemon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for addressing the nit!

@wjohnald
wjohnald merged commit 8c6dd72 into main Nov 24, 2026
38 checks passed
@wjohnald
wjohnald deleted the bump-gemd-3.1.0 branch November 24, 2026 17:29
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