Skip to content

cephfs-top: fix exceptions on small/large sized windows#59566

Merged
vshankar merged 2 commits intoceph:mainfrom
joscollin:wip-B67859-cephfs-top-exception-large-windows
Sep 20, 2024
Merged

cephfs-top: fix exceptions on small/large sized windows#59566
vshankar merged 2 commits intoceph:mainfrom
joscollin:wip-B67859-cephfs-top-exception-large-windows

Conversation

@joscollin
Copy link
Member

@joscollin joscollin commented Sep 2, 2024

  • Fixes exception: curses function returned NULL when the window width is larger than expected.
    Reproduced this issue on a 32 inch horizontal monitor. Tested the fix on 32 inch horizontal + 24 inch vertical monitor(s) (dual).
  • Fixes exception: addwstr() returned ERR when the window width is smaller than expected.

Fixes: https://tracker.ceph.com/issues/67859

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@joscollin joscollin marked this pull request as draft September 2, 2024 14:32
@github-actions github-actions bot added the cephfs Ceph File System label Sep 2, 2024
@joscollin
Copy link
Member Author

jenkins test make check

@joscollin
Copy link
Member Author

jenkins test make check arm64

@joscollin joscollin force-pushed the wip-B67859-cephfs-top-exception-large-windows branch from a6abfcc to 77e46c1 Compare September 4, 2024 07:09
@joscollin joscollin marked this pull request as ready for review September 4, 2024 07:11
@joscollin joscollin force-pushed the wip-B67859-cephfs-top-exception-large-windows branch from 77e46c1 to 2eafe5f Compare September 4, 2024 08:27
@joscollin joscollin force-pushed the wip-B67859-cephfs-top-exception-large-windows branch from 2eafe5f to 1c3b2c4 Compare September 4, 2024 10:25
@joscollin
Copy link
Member Author

jenkins test api

@joscollin
Copy link
Member Author

jenkins test make check

@joscollin
Copy link
Member Author

jenkins test api

@joscollin joscollin requested a review from a team September 5, 2024 08:12
@joscollin joscollin changed the title cephfs-top: fix exception on large sized windows cephfs-top: fix exceptions on small/large sized windows Sep 5, 2024
@joscollin joscollin force-pushed the wip-B67859-cephfs-top-exception-large-windows branch 2 times, most recently from af21d45 to 5441144 Compare September 5, 2024 08:55
@neesingh-rh
Copy link
Contributor

@joscollin I looked into the second issue earlier through the BZ https://bugzilla.redhat.com/show_bug.cgi?id=2272580, and had this fix. Anyways, thanks for adding this fix into this PR. I have linked the BZ with the tracker for this PR.
If there's no issue, should I assign the respective BZ to you, as you have the PR for the fix?

@joscollin
Copy link
Member Author

@joscollin I looked into the second issue earlier through the BZ https://bugzilla.redhat.com/show_bug.cgi?id=2272580, and had this fix. Anyways, thanks for adding this fix into this PR. I have linked the BZ with the tracker for this PR. If there's no issue, should I assign the respective BZ to you, as you have the PR for the fix?

Please assign it to me, I wasn't aware that the BZ exists. Thanks @neesingh-rh

@joscollin joscollin force-pushed the wip-B67859-cephfs-top-exception-large-windows branch 2 times, most recently from 8a2898d to 9136289 Compare September 5, 2024 12:10
Fixes "exception: curses function returned NULL"
when the window width is larger than expected.

Fixes: https://tracker.ceph.com/issues/67859
Signed-off-by: Jos Collin <jcollin@redhat.com>
@joscollin joscollin force-pushed the wip-B67859-cephfs-top-exception-large-windows branch from 9136289 to ecf9bb5 Compare September 6, 2024 05:03
@joscollin
Copy link
Member Author

Fixed the tox failures.

@joscollin
Copy link
Member Author

jenkins test make check

1 similar comment
@joscollin
Copy link
Member Author

jenkins test make check

Fixes "exception: addwstr() returned ERR"
when the window width is smaller than expected.

Fixes: https://tracker.ceph.com/issues/67859
Signed-off-by: Jos Collin <jcollin@redhat.com>
@joscollin joscollin force-pushed the wip-B67859-cephfs-top-exception-large-windows branch from ecf9bb5 to 926f91c Compare September 6, 2024 11:37
@joscollin joscollin requested a review from vshankar September 6, 2024 11:54
@joscollin
Copy link
Member Author

@vshankar Work is done with this. Please do a review and QA.

@joscollin
Copy link
Member Author

jenkins test make check arm64

Copy link
Contributor

@vshankar vshankar left a comment

Choose a reason for hiding this comment

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

LGTM. I assume this has been manually verified since there is no way to test this in teuthology, yes? @joscollin

@joscollin
Copy link
Member Author

joscollin commented Sep 10, 2024 via email

@joscollin
Copy link
Member Author

LGTM. I assume this has been manually verified since there is no way to test this in teuthology, yes? @joscollin

@vshankar Can you merge this then?

@joscollin
Copy link
Member Author

@vshankar ping

@vshankar
Copy link
Contributor

LGTM. I assume this has been manually verified since there is no way to test this in teuthology, yes? @joscollin

@vshankar Can you merge this then?

yes. For some reason your comment via email did't show up as a notification.

@vshankar vshankar merged commit e0b974a into ceph:main Sep 20, 2024
@joscollin joscollin deleted the wip-B67859-cephfs-top-exception-large-windows branch September 20, 2024 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants