Skip to content

Refactor HIF#156

Open
ddevin96 wants to merge 15 commits intomainfrom
feat/hif-reformed
Open

Refactor HIF#156
ddevin96 wants to merge 15 commits intomainfrom
feat/hif-reformed

Conversation

@ddevin96
Copy link
Copy Markdown
Collaborator

All Submissions

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Description

Move hif to its own file

Checklist

  • Does your submission pass all tests? (use make test)
  • Have you written tests to cover all your changes? If not, provide a reason.
  • Have you lint your code locally before submission? (use make lint)
  • Have you type checked your code locally before submission? (use make typecheck)
  • Have you added an explanation of what your changes are and why you'd like us to include them?

Closes #44

@github-actions github-actions Bot added data docs Improvements or additions to documentation tests utils feature labels Apr 23, 2026
Copy link
Copy Markdown
Contributor

@tizianocitro tizianocitro left a comment

Choose a reason for hiding this comment

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

I have a few comments that I think are important to consider.
I didn't check tests for now.

Comment thread hyperbench/data/hif.py Outdated
Comment thread hyperbench/data/hif.py
Comment thread hyperbench/data/hif.py Outdated
Comment thread hyperbench/data/hif.py Outdated
Comment thread hyperbench/data/hif.py
Comment thread hyperbench/data/dataset.py Outdated
Comment thread hyperbench/data/dataset.py
Comment thread hyperbench/data/hif.py
Comment thread hyperbench/data/dataset.py Outdated
Comment thread hyperbench/utils/hif_utils.py Outdated
@tizianocitro tizianocitro changed the title Feat/hif reformed Refactor HIF Apr 24, 2026
Comment thread hyperbench/data/dataset.py Outdated
Comment thread hyperbench/data/dataset.py Outdated
Comment thread hyperbench/data/dataset.py Outdated
Comment thread hyperbench/data/hif.py
Comment thread hyperbench/data/hif.py Outdated
Comment thread hyperbench/data/supported_datasets.py
Comment thread hyperbench/tests/data/hif_test.py Outdated

from unittest.mock import patch, MagicMock

from hyperbench.data.hif import HIFLoader, HIFProcessor
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Import from hyperbench.data.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Check all imports in all files.

Comment thread hyperbench/tests/data/hif_test.py Outdated
from unittest.mock import patch, MagicMock

from hyperbench.data.hif import HIFLoader, HIFProcessor
import hyperbench.data.hif as hif_module
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Check this as I feel we should not use it this way in tests.

with (
patch("hyperbench.data.hif.os.path.exists", return_value=False),
patch(
"hyperbench.data.hif.requests.get",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Check all network-related tests work when no internet and do not make network calls.

Comment thread hyperbench/data/hif.py Outdated
@ddevin96 ddevin96 force-pushed the feat/hif-reformed branch from b28beb5 to 4807184 Compare April 24, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data docs Improvements or additions to documentation feature tests utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move HIFConverter to its own file

2 participants