Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-aranda committed Jan 9, 2025
2 parents 7cb9bec + d270797 commit 62167dd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
4 changes: 4 additions & 0 deletions doc/version-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Version History
.. No new work should be required in order to complete this section.
.. Below is an example of a version history format.
v0.30.0
-------
* Allow scripts to be run with specific log levels.

v0.29.0
-------
* ESS index updates.
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/ts/IntegrationTests/base_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ async def run(self) -> None:
isStandard=script[1],
path=script[0],
config=config,
logLevel=10,
logLevel=self.log_level if hasattr(self, "log_level") else 10,
location=queue_placement,
)
try:
Expand Down
10 changes: 0 additions & 10 deletions python/lsst/ts/IntegrationTests/configs/image_taking_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
"script_mode": "BIAS_DARK_FLAT",
"do_defects": True,
"certify_calib_begin_date": "replace_me",
"config_options_bias": "-c biasIsr:doDefect=False",
"config_options_dark": "-c darkIsr:doDefect=False",
"config_options_flat": "-c flatIsr:doDefect=False",
"config_options_defects": "-c defectIsr:doDefect=False",
"config_options_ptc": "-c ptcIsr:doCrosstalk=False",
},
explicit_start=True,
canonical=True,
Expand Down Expand Up @@ -127,11 +122,6 @@
"do_defects": True,
"do_ptc": True,
"certify_calib_begin_date": "replace_me",
"config_options_bias": "-c biasIsr:doDefect=False",
"config_options_dark": "-c darkIsr:doDefect=False",
"config_options_flat": "-c flatIsr:doDefect=False",
"config_options_defects": "-c defectIsr:doDefect=False",
"config_options_ptc": "-c ptcIsr:doCrosstalk=False",
},
explicit_start=True,
canonical=True,
Expand Down
3 changes: 2 additions & 1 deletion python/lsst/ts/IntegrationTests/love_stress_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ class LoveStressTest(BaseScript):
("make_love_stress_tests.py", BaseScript.is_external),
]

def __init__(self, test_env: str, k8s: bool = False) -> None:
def __init__(self, test_env: str, k8s: bool = False, log_level: int = 20) -> None:
super().__init__()
# Set the LOVE location based on test environment
self.test_env = test_env
self.k8s = k8s
self.log_level = log_level
self.env_configs = yaml.safe_load(registry["love_stress"])
if test_env.lower() == "summit":
# Running on Summit
Expand Down
4 changes: 4 additions & 0 deletions tests/test_love_stress.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ async def test_love_stress(self) -> None:
self.assertEqual(script_class.script_states, [8])
# Assert location is correct.
self.assertEqual(script_config["location"], "http://love01.ls.lsst.org")
# Assert script is run in INFO mode.
self.assertEqual(script_class.log_level, 20)

async def test_love_stress_on_k8s(self) -> None:
"""Execute the LoveStress integration test script on the kubernetes
Expand All @@ -91,6 +93,8 @@ async def test_love_stress_on_k8s(self) -> None:
self.assertEqual(script_class.script_states, [8])
# Assert location is correct.
self.assertEqual(script_config["location"], "https://base-lsp.lsst.codes/love")
# Assert script is run in INFO mode.
self.assertEqual(script_class.log_level, 20)

async def asyncTearDown(self) -> None:
await self.controller.close()
Expand Down

0 comments on commit 62167dd

Please sign in to comment.