Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor run with log #225

Merged
merged 6 commits into from
Mar 21, 2024
Merged

Refactor run with log #225

merged 6 commits into from
Mar 21, 2024

Conversation

plars
Copy link
Collaborator

@plars plars commented Mar 18, 2024

Description

I've been looking at some ways to refactor some of the hairy pieces currently in the agent code, improve modularity, testability, etc. I think this improves this also gives us a better foundation to build on with the rest of it.

Tests

Added some unit tests, and also tested this with a real device connector and several full runs of provision+test+reserve in the staging instance.

@plars plars requested a review from a team March 18, 2024 02:58
Copy link

@omar-selo omar-selo left a comment

Choose a reason for hiding this comment

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

Overall a great refactor, the code is now much easier to understand and modular. This is my first time going through agent code so bear with me as I had lots of questions.

agent/testflinger_agent/runner.py Outdated Show resolved Hide resolved
agent/testflinger_agent/runner.py Outdated Show resolved Hide resolved
agent/testflinger_agent/runner.py Outdated Show resolved Hide resolved
agent/testflinger_agent/runner.py Show resolved Hide resolved
agent/testflinger_agent/runner.py Outdated Show resolved Hide resolved
agent/testflinger_agent/runner.py Show resolved Hide resolved
agent/testflinger_agent/runner.py Outdated Show resolved Hide resolved
agent/testflinger_agent/runner.py Show resolved Hide resolved
Copy link

@omar-selo omar-selo left a comment

Choose a reason for hiding this comment

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

Looks great, and thanks for resolving my comments

@plars plars merged commit b0fc18d into main Mar 21, 2024
2 checks passed
@plars plars deleted the refactor-run-with-log branch March 21, 2024 13:10
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