Skip to content

[9.0] migrate getDIRACPlatform to DIRACCommon#8295

Merged
fstagni merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:common-getDIRACPlatform
Sep 5, 2025
Merged

[9.0] migrate getDIRACPlatform to DIRACCommon#8295
fstagni merged 1 commit intoDIRACGrid:integrationfrom
chrisburr:common-getDIRACPlatform

Conversation

@chrisburr
Copy link
Member

Migrate getDIRACPlatform function from DIRAC to DIRACCommon to enable shared usage:

  • Move getDIRACPlatform and _platformSortKey to DIRACCommon/ConfigurationSystem/Client/Helpers/Resources.py
  • Create stateless DIRACCommon implementation that accepts configuration data as parameters
  • Update DIRAC module to import from DIRACCommon for backward compatibility
  • DIRAC wrapper handles gConfig access and passes data to DIRACCommon function
  • Move and update tests for both DIRACCommon and DIRAC modules
  • Update DIRACCommon README with comprehensive migration documentation

BEGINRELEASENOTES

*Configuration
CHANGE: Move getDIRACPlatform to DIRACCommon

ENDRELEASENOTES

@chrisburr chrisburr changed the title [9.0 migrate getDIRACPlatform to DIRACCommon [9.0] migrate getDIRACPlatform to DIRACCommon Sep 4, 2025
@chrisburr chrisburr force-pushed the common-getDIRACPlatform branch from 4b3ccb7 to 0ed3dc9 Compare September 4, 2025 21:42
Migrate getDIRACPlatform function from DIRAC to DIRACCommon to enable shared usage:

- Move getDIRACPlatform and _platformSortKey to DIRACCommon/ConfigurationSystem/Client/Helpers/Resources.py
- Create stateless DIRACCommon implementation that accepts configuration data as parameters
- Update DIRAC module to import from DIRACCommon for backward compatibility
- DIRAC wrapper handles gConfig access and passes data to DIRACCommon function
- Move and update tests for both DIRACCommon and DIRAC modules
- Update DIRACCommon README with comprehensive migration documentation
@chrisburr chrisburr force-pushed the common-getDIRACPlatform branch from 0ed3dc9 to bd09645 Compare September 5, 2025 04:33
Comment on lines +247 to +248
1. **DIRACCommon tests pass** - `pixi run python -m pytest dirac-common/tests/`
2. **DIRAC tests pass** - `pixi run python -m pytest src/DIRAC/`
Copy link
Contributor

@fstagni fstagni Sep 5, 2025

Choose a reason for hiding this comment

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

We never suggested using pixi for DIRAC (which does not have a pixi,toml), so I would just remove pixi run from these instructions from next PR.

@fstagni fstagni merged commit 4b9de24 into DIRACGrid:integration Sep 5, 2025
26 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Sep 5, 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