Skip to content

bumped f4enix version and fixed compatibility#484

Open
dodu94 wants to merge 3 commits intodevelopingfrom
bump-f4enix-version-to-0.19.0
Open

bumped f4enix version and fixed compatibility#484
dodu94 wants to merge 3 commits intodevelopingfrom
bump-f4enix-version-to-0.19.0

Conversation

@dodu94
Copy link
Member

@dodu94 dodu94 commented Mar 3, 2026

Bump F4Enix version to 0.19.0

Summary by CodeRabbit

  • Chores

    • Bumped a core dependency to a newer compatible version.
    • Adjusted CI/test installation logic to better handle recent Python releases and related tooling.
  • Refactor

    • Updated internal import paths; no changes to public APIs or user-facing behavior.

@dodu94 dodu94 requested a review from alexvalentine94 March 3, 2026 16:58
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 3, 2026

Walkthrough

Bumps f4enix to >=0.19.0, updates Nuclide import to f4enix.core.irradiation, and adjusts GitHub Actions pytest workflow to handle legacy OpenMC installs for Python 3.11 and change Codecov upload to Python 3.12.

Changes

Cohort / File(s) Summary
Dependency
pyproject.toml
Bump f4enix requirement from >=0.18.0 to >=0.19.0.
Source import update
src/jade/run/input.py
Change Nuclide import path from f4enix.input.irradiation to f4enix.core.irradiation.
CI workflow
.github/workflows/pytest.yml
Add legacy OpenMC install step for Python 3.11 on Linux; broaden/exclude main OpenMC install for 3.10 and 3.11; set Codecov upload to run on Python 3.12 (ubuntu-latest).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • fix new f4enix behaviour #477: Modifies f4enix Nuclide usage and imports in src/jade/run/input.py, closely related to the import and compatibility changes here.

Poem

🐰 I hopped through toml and CI light,

shifted Nuclide's path to the right.
A tiny bump, a workflow song,
My whiskers nudge the tests along. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: bumping the f4enix dependency version and updating import paths for compatibility with the new version.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bump-f4enix-version-to-0.19.0

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@pyproject.toml`:
- Line 25: The dependency constraint for f4enix in pyproject.toml is
unsatisfiable (f4enix >= 0.19.0); update the f4enix requirement to a released
version such as "f4enix >= 0.18.1" or a bounded range like "f4enix >= 0.18.1, <
0.20.0" in the dependencies list, or if 0.19.0 is intentionally required,
document/justify that it’s a pre-release and point to where it can be obtained;
update the f4enix entry accordingly so installations succeed.

ℹ️ Review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2e2b46b and a24b9fd.

📒 Files selected for processing (2)
  • pyproject.toml
  • src/jade/run/input.py

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/pytest.yml (1)

65-67: Clarify the 3.11 legacy step label/comment for CI readability.

Two steps share the same name (Install openmc (legacy)), which makes job logs harder to scan, and the comment says “python 11” instead of “python 3.11”.

Proposed tweak
-      # Cap version also for python 11
-      - name: Install openmc (legacy)
+      # Cap version also for python 3.11
+      - name: Install openmc (legacy, py3.11)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/pytest.yml around lines 65 - 67, The CI step label and
comment are ambiguous: change the comment text from "python 11" to "python 3.11"
and give the step name "Install openmc (legacy)" a unique, descriptive name
(e.g., "Install openmc (legacy, py3.11)") so logs are easier to scan; update the
step name referenced in the workflow and any matching conditionals
(matrix.python-version == '3.11') accordingly.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/pytest.yml:
- Around line 65-67: The CI step label and comment are ambiguous: change the
comment text from "python 11" to "python 3.11" and give the step name "Install
openmc (legacy)" a unique, descriptive name (e.g., "Install openmc (legacy,
py3.11)") so logs are easier to scan; update the step name referenced in the
workflow and any matching conditionals (matrix.python-version == '3.11')
accordingly.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: db218a02-11f4-4b16-ac22-c8e206ea9fea

📥 Commits

Reviewing files that changed from the base of the PR and between a24b9fd and 1a03abc.

📒 Files selected for processing (1)
  • .github/workflows/pytest.yml

@codecov
Copy link

codecov bot commented Mar 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/jade/run/input.py 88.01% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/pytest.yml (1)

65-67: Disambiguate the legacy step name and fix the version typo.

Line 65 says “python 11”, and Line 66 reuses the same step name as the 3.10 legacy step. This makes CI logs harder to read during failures. Please rename this step to include 3.11 and correct the comment text.

Suggested tweak
-      # Cap version also for python 11
-      - name: Install openmc (legacy)
+      # Cap version also for python 3.11
+      - name: Install openmc (legacy, py3.11)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/pytest.yml around lines 65 - 67, Update the comment and
the step name to correctly reference Python 3.11: change the comment "Cap
version also for python 11" to "Cap version also for python 3.11" and
disambiguate the step by renaming the step labeled "Install openmc (legacy)" for
the 3.11 case to something like "Install openmc (legacy, 3.11)" so it no longer
duplicates the 3.10 step name; ensure the if condition remains using
matrix.python-version == '3.11' to match the corrected text.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/pytest.yml:
- Around line 65-67: Update the comment and the step name to correctly reference
Python 3.11: change the comment "Cap version also for python 11" to "Cap version
also for python 3.11" and disambiguate the step by renaming the step labeled
"Install openmc (legacy)" for the 3.11 case to something like "Install openmc
(legacy, 3.11)" so it no longer duplicates the 3.10 step name; ensure the if
condition remains using matrix.python-version == '3.11' to match the corrected
text.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: d4ec61b5-7ca9-412f-bde3-5b4a0a2a90c9

📥 Commits

Reviewing files that changed from the base of the PR and between 1a03abc and b466b29.

📒 Files selected for processing (1)
  • .github/workflows/pytest.yml

@dodu94
Copy link
Member Author

dodu94 commented Mar 4, 2026

Had to fix a version for openMC and python 3.11 since in dev branch support for python 3.11 has been dropped, ready for review now @alexvalentine94

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