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

Add support cpu.cores hardware requirement for mrack #2728

Merged
merged 6 commits into from
Apr 25, 2024

Conversation

skycastlelily
Copy link
Collaborator

@skycastlelily skycastlelily commented Mar 4, 2024

Pull Request Checklist

  • implement the feature
  • extend the test coverage
  • mention the version
  • include a release note

@happz happz added area | hardware Implementation of hardware requirements plugin | mrack The beaker provision plugin labels Mar 4, 2024
@happz happz added this to the 1.33 milestone Mar 4, 2024
@skycastlelily skycastlelily changed the title Add support hardware requirement for mrack Add support cpu.cores hardware requirement for mrack Mar 5, 2024
@happz
Copy link
Collaborator

happz commented Apr 4, 2024

@skycastlelily hello, please, rebase & add a simple unit test similar to https://github.com/teemtee/tmt/blob/main/tests/unit/provision/mrack/test_hw.py#L277? This PR is fairly simple, it should be easy to get it reviewed and merged quickly.

@skycastlelily
Copy link
Collaborator Author

skycastlelily commented Apr 8, 2024 via email

@happz
Copy link
Collaborator

happz commented Apr 10, 2024

Sorry for not mentioning it in the previous post, but a short release note, similar to https://github.com/teemtee/tmt/blob/main/docs/releases.rst?plain=1#L44, would be nice. No more comments from my side.

Maybe merge it into a single note for this PR and #2733?

Oh, and one more thing: please, update specs/hardware/cpu.fmf, in a way similar to https://github.com/teemtee/tmt/pull/2733/files#diff-844c430661f020411c529315cabf0d4099728fc3226a2b448ceacfc6637fe550, and mention beaker gained support of new requirement.

@skycastlelily
Copy link
Collaborator Author

skycastlelily commented Apr 12, 2024 via email

@therazix
Copy link
Collaborator

Oh, and one more thing: please, update specs/hardware/cpu.fmf, in a way similar to https://github.com/teemtee/tmt/pull/2733/files#diff-844c430661f020411c529315cabf0d4099728fc3226a2b448ceacfc6637fe550, and mention beaker gained support of new requirement.

@skycastlelily Could you please update the specs/hardware/cpu.fmf as well?

@skycastlelily
Copy link
Collaborator Author

skycastlelily commented Apr 18, 2024 via email

@therazix
Copy link
Collaborator

Just a couple of things. Shouldn't the release note be for version 1.33 instead of 1.32? The same applies to the versionchanged.

Also, cpu.cores should probably be added to the SUPPORTED_HARDWARE_CONSTRAINTS list here:

SUPPORTED_HARDWARE_CONSTRAINTS: list[str] = [
'cpu.flag',
'cpu.processors',
'cpu.model',
'disk.size',
'disk.model_name',
'disk.driver',
'hostname',
'memory',
'virtualization.is_virtualized',
'zcrypt',
]

@skycastlelily
Copy link
Collaborator Author

skycastlelily commented Apr 18, 2024 via email

docs/releases.rst Outdated Show resolved Hide resolved
@psss psss added the ci | full test Pull request is ready for the full test execution label Apr 23, 2024
Copy link
Collaborator

@psss psss left a comment

Choose a reason for hiding this comment

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

Thanks for implementing this!

@skycastlelily
Copy link
Collaborator Author

skycastlelily commented Apr 24, 2024 via email

@psss
Copy link
Collaborator

psss commented Apr 24, 2024

Seems that /tests/unit/with-system-packages/basic now fails with:

FAILED provision/mrack/test_hw.py::test_maximal_constraint - AssertionError: ...

@skycastlelily, could you please have a look?

@skycastlelily
Copy link
Collaborator Author

skycastlelily commented Apr 25, 2024 via email

@happz happz enabled auto-merge (squash) April 25, 2024 08:27
@psss psss disabled auto-merge April 25, 2024 10:23
@psss psss merged commit 756a288 into teemtee:main Apr 25, 2024
14 of 20 checks passed
@psss
Copy link
Collaborator

psss commented Apr 25, 2024

Test failures are irrelevant, merged.

@psss psss self-assigned this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area | hardware Implementation of hardware requirements ci | full test Pull request is ready for the full test execution plugin | mrack The beaker provision plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants