Skip to content

Add more autorestart printing#413

Merged
rerpha merged 3 commits intomasterfrom
extra_printing
Feb 27, 2025
Merged

Add more autorestart printing#413
rerpha merged 3 commits intomasterfrom
extra_printing

Conversation

@FreddieAkeroyd
Copy link
Member

Description of work

Additional printing to help trace autorestart test failure

Code Review

  • Is the code of an acceptable quality?
  • Has the author taken into account the multi-threaded nature of the code?
  • Have the changes been recorded appropriately in a PR for release notes?
  • Has the manual system tests spreadsheet been updated?

Functional Tests

  • Do changes function as described? Add comments below that describe the tests performed.

Final steps

  • Reviewer has updated the submodule in the main EPICS repo? See Reviewing work for the subModules of EPICS in the Git workflow page for details.
  • Reviewer has merged the associated PR for the release notes

@FreddieAkeroyd FreddieAkeroyd moved this to Flash Review in Tasks Feb 26, 2025
curr = self._proc.get_autorestart(ioc)
if curr != enable:
# If different to requested then change it
print_and_log(f"Auto-restart for IOC {ioc} is not {enable}")
Copy link
Contributor

@rerpha rerpha Feb 26, 2025

Choose a reason for hiding this comment

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

i think this sounds like an error. is

Suggested change
print_and_log(f"Auto-restart for IOC {ioc} is not {enable}")
print_and_log(f"Auto-restart for IOC {ioc} not set to {enable}, toggling")

better?

Copy link
Member Author

Choose a reason for hiding this comment

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

The function it calls contains print_and_log(f"Toggling auto-restart for IOC {ioc}") so i didn't feel toggling needed mentioning here too. Happy to change is not True to not set to True

@rerpha rerpha merged commit ebf9b4c into master Feb 27, 2025
3 checks passed
@rerpha rerpha deleted the extra_printing branch February 27, 2025 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants