Skip to content

refactor: move stateless utilities to DIRACCommon#8289

Merged
fstagni merged 2 commits intoDIRACGrid:integrationfrom
chrisburr:feature/move-more-to-dirac-common
Sep 2, 2025
Merged

refactor: move stateless utilities to DIRACCommon#8289
fstagni merged 2 commits intoDIRACGrid:integrationfrom
chrisburr:feature/move-more-to-dirac-common

Conversation

@chrisburr
Copy link
Member

@chrisburr chrisburr commented Sep 1, 2025

Move ClassAd, ParametricJob, and stateless JobDBUtils functions to DIRACCommon to reduce circular dependencies with diracx. Add backward compatibility re-exports in DIRAC modules.

BEGINRELEASENOTES

*Core
CHANGE: Move ClassAdLight to DIRACCommon

*Workload Management
CHANGE: Move JobDBUtilsto DIRACCommon
CHANGE: Move ParametricJob to DIRACCommon

ENDRELEASENOTES

chrisburr and others added 2 commits September 1, 2025 14:38
Move ClassAd, ParametricJob, and stateless JobDBUtils functions to DIRACCommon
to reduce circular dependencies with diracx. Add backward compatibility
re-exports in DIRAC modules.

Changes:
- DIRACCommon/Utils/ClassAd/ClassAdLight.py: Complete ClassAd implementation
- DIRACCommon/Utils/ParametricJob.py: Parametric job utilities
- DIRACCommon/Utils/JobDBUtils.py: Stateless JDL compression/decompression
- Added comprehensive tests for all moved functionality
- Updated DIRAC modules to re-export from DIRACCommon for compatibility

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Reorganize DIRACCommon modules to match the original DIRAC structure:
- Core/Utilities/ClassAd/ClassAdLight.py (utilities belong in Core)
- WorkloadManagementSystem/DB/JobDBUtils.py (preserves original location)
- WorkloadManagementSystem/Utilities/ParametricJob.py (preserves original location)

Update all imports across DIRAC, diracx, and DIRACCommon to use the new
structured paths. Reorganize tests to match the new directory structure.

This maintains the logical organization while enabling proper code migration.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@chrisburr chrisburr force-pushed the feature/move-more-to-dirac-common branch from 184bc8d to 8e4479a Compare September 1, 2025 14:52
@chrisburr chrisburr marked this pull request as ready for review September 1, 2025 15:01
@fstagni fstagni merged commit 0a4f397 into DIRACGrid:integration Sep 2, 2025
26 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants