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

Feat/checksize #73

Merged
merged 2 commits into from
Oct 27, 2023
Merged

Feat/checksize #73

merged 2 commits into from
Oct 27, 2023

Conversation

jneo8
Copy link
Contributor

@jneo8 jneo8 commented Oct 24, 2023

  • Only fetch tools which in required list
  • Checking file size before running strategies
  • Error handling for strategy install

@jneo8 jneo8 requested review from a team, Pjack, aieri, agileshaw and rgildein October 24, 2023 08:04
Show missing resource block status if resource size is zero
Copy link

@Pjack Pjack left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@dashmage dashmage left a comment

Choose a reason for hiding this comment

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

small doc rewording suggestion

src/hw_tools.py Outdated Show resolved Hide resolved
@jneo8 jneo8 merged commit 92e6f07 into canonical:master Oct 27, 2023
4 checks passed
@jneo8 jneo8 mentioned this pull request Oct 27, 2023
Comment on lines +29 to +31
def __init__(self, tool: HWTool, path: Path):
"""Init."""
self.message = f"Tool: {tool} path: {path} size is zero"
Copy link
Contributor

Choose a reason for hiding this comment

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

This will not work properly.
example:

>>> class TestException(Exception):
...  def __init__(self, arg1, arg2):
...   self.message = f"test message with: {arg1}, {arg2}"
... 
>>> raise TestException("a", "b")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TestException: ('a', 'b')

We should use super().__init__(f"message").

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.

5 participants