Skip to content

Conversation

@ddeidda
Copy link
Contributor

@ddeidda ddeidda commented Mar 16, 2021

Some instance types may have fixed hyperthreading settings; instead this test was assuming that disabling hyperthreading is always possible. Fixed by comparing against instance data instead of fixed number of cores.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ddeidda ddeidda added the skip-changelog-update Disables the check that enforces changelog updates in PRs label Mar 16, 2021
@codecov
Copy link

codecov bot commented Mar 16, 2021

Codecov Report

Merging #2534 (4813e49) into develop (bf50eb5) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2534   +/-   ##
========================================
  Coverage    62.39%   62.39%           
========================================
  Files           40       40           
  Lines         6255     6255           
========================================
  Hits          3903     3903           
  Misses        2352     2352           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf50eb5...4813e49. Read the comment docs.

def default_threads_per_core(request, instance, region):
"""Return the default threads per core for the given instance type."""
# NOTE: currently, .metal instances do not contain the DefaultThreadsPerCore
# attribute in their VCpuInfo section. This is a known issue with the
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: known limitation

@ddeidda ddeidda force-pushed the wip/fix_disable_ht_tests branch from b771801 to 0bf7c53 Compare March 16, 2021 14:40
demartinofra
demartinofra previously approved these changes Mar 16, 2021
@ddeidda ddeidda force-pushed the wip/fix_disable_ht_tests branch 2 times, most recently from 5497819 to f79b808 Compare March 16, 2021 15:41
demartinofra
demartinofra previously approved these changes Mar 16, 2021
Some instance types may have fixed hyperthreading settings; instead this test was assuming that disabling hyperthreading is always possible. Fixed by comparing against instance data instead of fixed number of cores.

Signed-off-by: ddeidda <ddeidda@amazon.com>
@ddeidda ddeidda merged commit 5d152a1 into aws:develop Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog-update Disables the check that enforces changelog updates in PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants