Open
Conversation
FAILED tests/bench_fio_test.py::TestFunctions::test_number_of_settings - AssertionError: 32 != 33
…er of bench_fio tests python3.13-fio_plot> =================================== FAILURES =================================== python3.13-fio_plot> ____________________ TestFunctions.test_calculate_duration _____________________ python3.13-fio_plot> self = <bench_fio_test.TestFunctions testMethod=test_calculate_duration> python3.13-fio_plot> def test_calculate_duration(self): python3.13-fio_plot> > self.assertEqual( python3.13-fio_plot> display.calculate_duration(self.settings, self.tests), "1:38:00" python3.13-fio_plot> ) python3.13-fio_plot> E AssertionError: '0:49:00' != '1:38:00' python3.13-fio_plot> E - 0:49:00 python3.13-fio_plot> E + 1:38:00 python3.13-fio_plot> tests/bench_fio_test.py:34: AssertionError python3.13-fio_plot> ----------------------------- Captured stdout call ----------------------------- python3.13-fio_plot> len(tests)=49 python3.13-fio_plot> ____________________ TestFunctions.test_generate_benchmarks ____________________ python3.13-fio_plot> self = <bench_fio_test.TestFunctions testMethod=test_generate_benchmarks> python3.13-fio_plot> def test_generate_benchmarks(self): python3.13-fio_plot> > self.assertEqual(len(supporting.generate_test_list(self.settings)), 98) python3.13-fio_plot> E AssertionError: 49 != 98 python3.13-fio_plot> tests/bench_fio_test.py:21: AssertionError python3.13-fio_plot> __________________ TestFunctions.test_generate_benchmarks_big __________________ python3.13-fio_plot> self = <bench_fio_test.TestFunctions testMethod=test_generate_benchmarks_big> python3.13-fio_plot> def test_generate_benchmarks_big(self): python3.13-fio_plot> self.settings["target"] = ["filea", "fileb", "filec", "filed"] python3.13-fio_plot> self.settings["block_size"] = ["4k", "8k", "16k", "32k"] python3.13-fio_plot> > self.assertEqual(len(supporting.generate_test_list(self.settings)), 1568) python3.13-fio_plot> E AssertionError: 784 != 1568 python3.13-fio_plot> tests/bench_fio_test.py:26: AssertionError
```
python3.13-fio_plot> =================================== FAILURES ===================================
<...>
<...>
<...>
python3.13-fio_plot> ________________________ Test3D.test_correct_bars_drawn ________________________
python3.13-fio_plot> self = <test_3d.Test3D testMethod=test_correct_bars_drawn>
python3.13-fio_plot> def test_correct_bars_drawn(self):
python3.13-fio_plot> settings = {
python3.13-fio_plot> "type": ["iops"],
python3.13-fio_plot> "rw": "read",
python3.13-fio_plot> "source": "test",
python3.13-fio_plot> "title": "test",
python3.13-fio_plot> "subtitle": "",
python3.13-fio_plot> "filter": ["read", "write"],
python3.13-fio_plot> # intentionally using prime numbers
python3.13-fio_plot> "iodepth": [2, 3],
python3.13-fio_plot> "numjobs": [5, 11],
python3.13-fio_plot> "maxjobs": 32,
python3.13-fio_plot> "maxdepth": 32,
python3.13-fio_plot> "max_z": None,
python3.13-fio_plot> "dpi": 200,
python3.13-fio_plot> "disable_fio_version": 2.0,
python3.13-fio_plot> "output_filename": "/tmp/test.png"
python3.13-fio_plot> }
python3.13-fio_plot>
python3.13-fio_plot> dataset = [{"data": []}
python3.13-fio_plot> for iodepth in settings["iodepth"]:
python3.13-fio_plot> for numjobs in settings["numjobs"]:
python3.13-fio_plot> dataset[0]["data"].append(
python3.13-fio_plot> {
python3.13-fio_plot> "fio_version": 3.1,
python3.13-fio_plot> "iodepth": str(iodepth),
python3.13-fio_plot> "numjobs": str(numjobs),
python3.13-fio_plot> "rw": "read",
python3.13-fio_plot> "type": "read",
python3.13-fio_plot> "iops": iodepth * numjobs,
python3.13-fio_plot> }
python3.13-fio_plot> )
python3.13-fio_plot> > plot_3d(settings, dataset)
python3.13-fio_plot> tests/test_3d.py:38:
python3.13-fio_plot> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
python3.13-fio_plot> fio_plot/fiolib/bar3d.py:174: in plot_3d
python3.13-fio_plot> supporting.create_title_and_sub(
python3.13-fio_plot> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
python3.13-fio_plot> settings = {'disable_fio_version': 2.0, 'dpi': 200, 'filter': ['read', 'write'], 'iodepth': [2, 3], ...}
python3.13-fio_plot> plt = <module 'matplotlib.pyplot' from '/nix/store/1akc2bq0qhxk99lgd4yj5lmz4gwh16x7-python3.13-matplotlib-3.10.3/lib/python3.13/site-packages/matplotlib/pyplot.py'>
python3.13-fio_plot> bs = None, skip_keys = ['iodepth', 'numjobs'], sub_x_offset = 0.57
python3.13-fio_plot> sub_y_offset = 1.15
python3.13-fio_plot> def create_title_and_sub(
python3.13-fio_plot> settings, plt, bs=None, skip_keys=[], sub_x_offset=0, sub_y_offset=0
python3.13-fio_plot> ):
python3.13-fio_plot> #
python3.13-fio_plot> # Offset title/subtitle if there is a 3rd y-axis
python3.13-fio_plot> #
python3.13-fio_plot> number_of_types = len(settings["type"])
python3.13-fio_plot> y_offset = 1.02
python3.13-fio_plot> if number_of_types <= 2:
python3.13-fio_plot> x_offset = 0.5
python3.13-fio_plot> else:
python3.13-fio_plot> x_offset = 0.425
python3.13-fio_plot>
python3.13-fio_plot> if sub_x_offset > 0:
python3.13-fio_plot> x_offset = sub_x_offset
python3.13-fio_plot> if sub_y_offset > 0:
python3.13-fio_plot> y_offset = sub_y_offset
python3.13-fio_plot>
python3.13-fio_plot> #
python3.13-fio_plot> # plt.subtitle sets title and plt.title sets subtitle ....
python3.13-fio_plot> #
python3.13-fio_plot> > plt.suptitle(settings["title"], fontsize=settings["title_fontsize"])
python3.13-fio_plot> E KeyError: 'title_fontsize'
python3.13-fio_plot> fio_plot/fiolib/supporting.py:382: KeyError
```
```
python3.13-fio_plot> =================================== FAILURES ===================================
python3.13-fio_plot> ______________ TestFunctions.test_generate_output_directory_mixed ______________
python3.13-fio_plot> self = <bench_fio_test.TestFunctions testMethod=test_generate_output_directory_mixed>
python3.13-fio_plot> def test_generate_output_directory_mixed(self):
python3.13-fio_plot> self.settings["mode"] = ["rw"]
python3.13-fio_plot> self.settings["rwmixread"] = [75]
python3.13-fio_plot> self.settings["loop_items"].append("rwmixread")
python3.13-fio_plot> tests = supporting.generate_test_list(self.settings)
python3.13-fio_plot> benchmark = tests[0]
python3.13-fio_plot> self.assertEqual(
python3.13-fio_plot> > supporting.generate_output_directory(self.settings, benchmark),
python3.13-fio_plot> "output_directory/device/rw75/4k",
python3.13-fio_plot> )
python3.13-fio_plot> tests/bench_fio_test.py:52:
python3.13-fio_plot> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
python3.13-fio_plot> settings = {'basename_list': ['precondition_template'], 'benchmarks': 49, 'block_size': ['4k'], 'ceph_pool': None, ...}
python3.13-fio_plot> benchmark = {'block_size': '4k', 'iodepth': 1, 'mode': 'rw', 'numjobs': 1, ...}
python3.13-fio_plot> def generate_output_directory(settings, benchmark):
python3.13-fio_plot> settings["output"] = os.path.expanduser(settings["output"])
python3.13-fio_plot> if benchmark["mode"] in settings["mixed"]:
python3.13-fio_plot> directory = (
python3.13-fio_plot> > f"{settings['output']}/{os.path.basename(benchmark['target_base'])}/"
python3.13-fio_plot> f"{benchmark['mode']}{benchmark['rwmixread']}/{benchmark['block_size']}"
python3.13-fio_plot> )
python3.13-fio_plot> E KeyError: 'target_base'
python3.13-fio_plot> bench_fio/benchlib/supporting.py:45: KeyError
python3.13-fio_plot> _____________ TestFunctions.test_generate_output_directory_regular _____________
python3.13-fio_plot> self = <bench_fio_test.TestFunctions testMethod=test_generate_output_directory_regular>
python3.13-fio_plot> def test_generate_output_directory_regular(self):
python3.13-fio_plot> benchmark = self.tests[0]
python3.13-fio_plot> self.assertEqual(
python3.13-fio_plot> > supporting.generate_output_directory(self.settings, benchmark),
python3.13-fio_plot> "output_directory/device/4k",
python3.13-fio_plot> )
python3.13-fio_plot> tests/bench_fio_test.py:41:
python3.13-fio_plot> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
python3.13-fio_plot> settings = {'basename_list': ['precondition_template'], 'benchmarks': 49, 'block_size': ['4k'], 'ceph_pool': None, ...}
python3.13-fio_plot> benchmark = {'block_size': '4k', 'iodepth': 1, 'mode': 'randread', 'numjobs': 1, ...}
python3.13-fio_plot> def generate_output_directory(settings, benchmark):
python3.13-fio_plot> settings["output"] = os.path.expanduser(settings["output"])
python3.13-fio_plot> if benchmark["mode"] in settings["mixed"]:
python3.13-fio_plot> directory = (
python3.13-fio_plot> f"{settings['output']}/{os.path.basename(benchmark['target_base'])}/"
python3.13-fio_plot> f"{benchmark['mode']}{benchmark['rwmixread']}/{benchmark['block_size']}"
python3.13-fio_plot> )
python3.13-fio_plot> else:
python3.13-fio_plot> > directory = f"{settings['output']}/{os.path.basename(benchmark['target_base'])}/{benchmark['block_size']}"
python3.13-fio_plot> E KeyError: 'target_base'
python3.13-fio_plot> bench_fio/benchlib/supporting.py:49: KeyError
```
Owner
|
Thanks for the pr, I have to look into it 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This actually relies (builds) on the work of #156. It fixes the below, but maybe not in the desired way. Changes should be reviewed.