pnlbwh / diskusage-logging

Log disk usage automatically
2 stars 1 forks source link

Python HTML report generator #13

Closed colinjennings closed 2 months ago

colinjennings commented 4 months ago

@colinjennings , which of these items have been done since our meeting yesterday?

tashrifbillah commented 4 months ago

Primary problem of this work is that matlplotlib is not properly set up. Hence, the feature is not working without the availability of GUI. It worked last time because we were sitting at our computer. But cron will not have any GUI:

**PuTTY X11 proxy: unable to connect to forwarded X server: Network error: Connection refused
qt.qpa.xcb: could not connect to display localhost:10.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, minimal, minimalegl, offscreen, vnc, webgl, xcb.

Aborted (core dumped)

Edit: Fixed by: https://github.com/pnlbwh/diskusage-logging/commit/ab62e5391ad5c35b9c6b1fae59e58c85603e1e30

tashrifbillah commented 4 months ago

You can follow my code to fix the issue:

https://github.com/pnlbwh/TBSS/blob/2fb1bc776b07013b450c24057db876486fc4bb2b/lib/writeHtml.py#L23-L26


Edit: Fixed by: https://github.com/pnlbwh/diskusage-logging/commit/ab62e5391ad5c35b9c6b1fae59e58c85603e1e30

tashrifbillah commented 4 months ago

TODO for Tashrif and Colin--

tashrifbillah commented 4 months ago

Thank you for addressing the comments so far. I am waiting for weekend's /data/ run to complete. /rfanfs/ run completed successfully though.

tashrifbillah commented 4 months ago

Colin, /data/ report just came out. Here are the issues we noticed:

image

  1. Can you make the percentage label transparent or smaller? As you see, one is eclipsing the other now.

  2. Can you set it up in a way that after the expanded directory is clicked again, the table disappears from the view?

image

colinjennings commented 4 months ago

Would it be acceptable to nudge the bottom label down if it is going to collide with the top label?

tashrifbillah commented 4 months ago

How would you know when it is going to collide upward or downward?

tashrifbillah commented 4 months ago

Colin, please put the latest graph screenshot here for record. The one that you sent me in Teams.

colinjennings commented 4 months ago
Screenshot 2024-06-05 at 12 09 55 PM
colinjennings commented 4 months ago
tashrifbillah commented 4 months ago

Colin, I have deployed your latest commit. So it is going through another round of testing this weekend. Also, update the above checklist if appropriate. I feel like you completed the last item too.

tashrifbillah commented 3 months ago

Either way, I think you can undo the two commits you made today morning.

tashrifbillah commented 3 months ago

I confirm that the Friday evening's commit solved the issue of showing parent and children directories under change sections. Now the directories are unique.

image

colinjennings commented 3 months ago
tashrifbillah commented 3 months ago

New TODOs:

colinjennings commented 3 months ago

could you please clarify the nature of the bug at https://github.com/colinjennings/diskusage-logging/blob/d0049b70c7b5873a008a792d9c0e02e8e487b0be/html-report-generator/get_biggest_changes.py#L33

tashrifbillah commented 3 months ago

Colin, we can wait until your access to email is restored. I wrote everything in email.

tashrifbillah commented 3 months ago

Colin, this is the checklist you need to work on here or privately on every commit:

- [ ] Pushed up commit
- [ ] Downloaded code to /tmp/
- [ ] copy /to/official/location
- [ ] Run generate_usage_report.py and confirm success
- [ ] Repeat steps 2-4 in both rfanfs and data
colinjennings commented 3 months ago
tashrifbillah commented 3 months ago

image

Hi Colin, can you remove the 05:57 part? This info is redundant for the scope of this report.

tashrifbillah commented 3 months ago

Colin, it appears that you did not deploy this change. Just check the report you got in email and you will see that the time string still exists.

colinjennings commented 3 months ago

Colin, it appears that you did not deploy this change. Just check the report you got in email and you will see that the time string still exists.

My mistake Tashrif -- just deployed the changes.

tashrifbillah commented 2 months ago

Thank you Colin. The report looks good now. I plan to find a time to sit with you and complete code review. We have reviewed output so far.

Also, I would like to review the installation instruction with you.

tashrifbillah commented 2 months ago

Hi Colin, I would like to merge your PR today.