Skip to content

refactor: simplify the system interface#153

Merged
tonyandrewmeyer merged 9 commits intocanonical:mainfrom
tonyandrewmeyer:refactor-tidy-up-system-interface
Feb 18, 2026
Merged

refactor: simplify the system interface#153
tonyandrewmeyer merged 9 commits intocanonical:mainfrom
tonyandrewmeyer:refactor-tidy-up-system-interface

Conversation

@tonyandrewmeyer
Copy link
Contributor

@tonyandrewmeyer tonyandrewmeyer commented Feb 13, 2026

This PR minimises the system interface, replacing duplicative methods with helpers.

  • All the Run* methods are simplified into a single Run method
  • ReadHomeDirFile is replaced with the existing ReadFile, and WriteHomeDirFile is replaced with a new WriteFile (for consistency)

Helpers are added for:

  • WriteHomeDirFile and ReadHomeDirFile
  • RunMany
  • RunExclusive
  • RunWithRetries

@tonyandrewmeyer tonyandrewmeyer marked this pull request as ready for review February 15, 2026 20:43
Copy link
Collaborator

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Thanks, this is much nicer. Just one small suggestion on moving the non-interface stuff to a new file, but approving optimistically.

@benhoyt
Copy link
Collaborator

benhoyt commented Feb 16, 2026

Oh, and I also didn't look at the test failures / pending tests.

@tonyandrewmeyer
Copy link
Contributor Author

Oh, and I also didn't look at the test failures / pending tests.

They're unrelated to this PR. The pending ones are because the repo is misconfigured - I'm sorting that with @james-garner-canonical. The failures are the MicroK8s issue discussed st daily yesterday.

@tonyandrewmeyer tonyandrewmeyer merged commit 1ac1573 into canonical:main Feb 18, 2026
29 of 30 checks passed
@tonyandrewmeyer tonyandrewmeyer deleted the refactor-tidy-up-system-interface branch March 19, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants