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

Test report generation failing with ValueError: Length mismatch #7006

Closed
fjetter opened this issue Sep 6, 2022 · 1 comment · Fixed by #7012
Closed

Test report generation failing with ValueError: Length mismatch #7006

fjetter opened this issue Sep 6, 2022 · 1 comment · Fixed by #7012
Assignees
Labels
diagnostics regression tests Unit tests and/or continuous integration

Comments

@fjetter
Copy link
Member

fjetter commented Sep 6, 2022

#6989 broke our test_report script which raises now a ValueError due to us parsing the job name.

I guess that the changes in the script only support new-generation names but not old generation names

Downloading and parsing 854 artifacts...
  File "/home/runner/work/distributed/distributed/continuous_integration/scripts/test_report.py", line 501, in <module>
    main()
  File "/home/runner/work/distributed/distributed/continuous_integration/scripts/test_report.py", line 385, in main
    dfs = list(
  File "/home/runner/work/distributed/distributed/continuous_integration/scripts/test_report.py", line 341, in download_and_parse_artifacts
    jobs_df = get_jobs(r, session=session)
  File "/home/runner/work/distributed/distributed/continuous_integration/scripts/test_report.py", line 140, in get_jobs
    df_jobs.name.str.extract(r"test \((.+)\)", expand=False)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/frame.py", line 4786, in set_axis
    return super().set_axis(labels, axis=axis, inplace=inplace)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/generic.py", line 755, in set_axis
    return self._set_axis_nocheck(labels, axis, inplace)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/generic.py", line 764, in _set_axis_nocheck
    obj.set_axis(labels, axis=axis, inplace=True)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper
    return func(*args, **kwargs)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/frame.py", line 4786, in set_axis
    return super().set_axis(labels, axis=axis, inplace=inplace)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/generic.py", line 755, in set_axis
    return self._set_axis_nocheck(labels, axis, inplace)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/generic.py", line 761, in _set_axis_nocheck
    setattr(self, self._get_axis_name(axis), labels)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/generic.py", line 5588, in __setattr__
    return object.__setattr__(self, name, value)
  File "pandas/_libs/properties.pyx", line 70, in pandas._libs.properties.AxisProperty.__set__
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/generic.py", line 769, in _set_axis
    self._mgr.set_axis(axis, labels)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/internals/managers.py", line [21](https://github.com/dask/distributed/runs/8202155512?check_suite_focus=true#step:7:22)4, in set_axis
    self._validate_set_axis(axis, new_labels)
  File "/usr/share/miniconda3/envs/dask-distributed/lib/python3.9/site-packages/pandas/core/internals/base.py", line 69, in _validate_set_axis
    raise ValueError(
ValueError: Length mismatch: Expected axis has 3 elements, new values have 4 elements

cc @gjoseph92

@fjetter fjetter added diagnostics tests Unit tests and/or continuous integration regression labels Sep 6, 2022
@gjoseph92 gjoseph92 self-assigned this Sep 6, 2022
@gjoseph92
Copy link
Collaborator

Oops that makes sense. I'll fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diagnostics regression tests Unit tests and/or continuous integration
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants