-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45764 from mmusich/mm_dev_fixD88_missing
fix a bunch of failing unit tests after D88 and D92 went missing
- Loading branch information
Showing
22 changed files
with
174 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
Configuration/Geometry/python/GeometryDD4hepExtended2026DefaultReco_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Configuration.Geometry.GeometryDD4hepExtended2026D98Reco_cff import * | ||
from Configuration.Geometry.GeometryDD4hepExtended2026D110Reco_cff import * |
2 changes: 1 addition & 1 deletion
2
Configuration/Geometry/python/GeometryDD4hepExtended2026Default_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Configuration.Geometry.GeometryDD4hepExtended2026D98_cff import * | ||
from Configuration.Geometry.GeometryDD4hepExtended2026D110_cff import * |
2 changes: 1 addition & 1 deletion
2
Configuration/Geometry/python/GeometryExtended2026DefaultReco_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Configuration.Geometry.GeometryExtended2026D98Reco_cff import * | ||
from Configuration.Geometry.GeometryExtended2026D110Reco_cff import * |
2 changes: 1 addition & 1 deletion
2
Configuration/Geometry/python/GeometryExtended2026Default_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Configuration.Geometry.GeometryExtended2026D98_cff import * | ||
from Configuration.Geometry.GeometryExtended2026D110_cff import * |
37 changes: 37 additions & 0 deletions
37
Configuration/Geometry/python/defaultPhase2ConditionsEra_cff.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from Configuration.PyReleaseValidation.upgradeWorkflowComponents import upgradeProperties as properties | ||
from Configuration.AlCa.autoCond import autoCond | ||
from Configuration.StandardSequences.Eras import eras | ||
|
||
DEFAULT_VERSION = "2026D110" | ||
|
||
def get_era_and_conditions(version_key): | ||
"""Retrieve the era and global tag for a given version key. | ||
Args: | ||
version_key (str): The version key to look up. | ||
Returns: | ||
tuple: A tuple containing the global tag and era object. | ||
Raises: | ||
KeyError: If the version key or global tag is not found. | ||
""" | ||
# Ensure the version key exists in the properties for 2026 | ||
if version_key not in properties[2026]: | ||
raise KeyError(f"Version key '{version_key}' not found in properties[2026].") | ||
|
||
# Retrieve the global tag key | ||
global_tag_key = properties[2026][version_key]['GT'] | ||
print(f"Global tag key from properties: {global_tag_key}") | ||
|
||
# Validate the existence of the global tag in autoCond | ||
global_tag_name = global_tag_key.replace("auto:", "") | ||
if global_tag_name not in autoCond: | ||
raise KeyError(f"Global tag key '{global_tag_key}' not found in autoCond.") | ||
|
||
# Retrieve the era key and get the corresponding era object | ||
era_key = properties[2026][version_key]['Era'] | ||
print(f"Constructed era key from properties: {era_key}") | ||
era = getattr(eras, era_key) | ||
|
||
return global_tag_key, era |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.