- 
          
- 
        Couldn't load subscription status. 
- Fork 115
Preload reader #721
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
Preload reader #721
Conversation
e91aa29    to
    c18342f      
    Compare
  
    | Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@            Coverage Diff             @@
##             main     #721      +/-   ##
==========================================
- Coverage   70.55%   70.35%   -0.20%     
==========================================
  Files          61       61              
  Lines       13642    13679      +37     
==========================================
- Hits         9625     9624       -1     
- Misses       4017     4055      +38     
 Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
 | 
eef0a88    to
    1e316c2      
    Compare
  
    | Hum, got very different results after the computer has been suspend... I will be updating the sample data soon. | 
| If that's on Novacustom laptop, it could be a side effect of QubesOS/qubes-issues#10110. See comments there for a workaround, and check if you still see a difference. | 
2ccf36a    to
    50affc4      
    Compare
  
    18fc3b7    to
    2d5804b      
    Compare
  
    | pretty_name += "{}".format(pretty_to) | ||
| if pretty_type: | ||
| pretty_name += " ({})".format(pretty_type) | ||
| self.pretty_name = pretty_name | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marmarta Can you please check what you think of these names?
[user@dev ~/src/contrib/qubes-core-admin(preload-reader)]
% cd tests; PYTHONPATH=~/src/contrib/qubes-core-admin-client python3 -c 'import dispvm_perf; tests = dispvm_perf.ALL_TESTS; [print(test.pretty_name) for test in tests];'; cd -;Qube runs simple app in another running qube (qrexec-client-vm)
Qube runs GUI app in another running qube (qrexec-client-vm)
Qube runs 4 concurrent simple apps in another running qube (qrexec-client-vm)
Qube runs 4 concurrent GUI apps in another running qube (qrexec-client-vm)
Dom0 runs simple app in another running qube (API)
Dom0 runs GUI app in another running qube (API)
Dom0 runs 4 concurrent simple apps in another running qube (API)
Dom0 runs 4 concurrent GUI apps in another running qube (API)
Qube runs simple app in a disposable (qrexec-client-vm)
Qube runs GUI app in a disposable (qrexec-client-vm)
Qube runs 4 concurrent simple apps in disposables (qrexec-client-vm)
Qube runs 4 concurrent GUI apps in disposables (qrexec-client-vm)
Dom0 runs simple app in a disposable (qvm-run)
Dom0 runs GUI app in a disposable (qvm-run)
Dom0 runs 4 concurrent simple apps in disposables (qvm-run)
Dom0 runs 4 concurrent GUI apps in disposables (qvm-run)
Qube runs simple app in disposables (2 preloaded) (qrexec-client-vm)
Qube runs GUI app in disposables (2 preloaded) (qrexec-client-vm)
Qube runs 4 concurrent simple apps in disposables (4 preloaded) (qrexec-client-vm)
Qube runs 4 concurrent GUI apps in disposables (4 preloaded) (qrexec-client-vm)
Dom0 runs simple app in disposables (2 preloaded) (qvm-run)
Dom0 runs GUI app in disposables (2 preloaded) (qvm-run)
Dom0 runs 4 concurrent simple apps in disposables (4 preloaded) (qvm-run)
Dom0 runs 4 concurrent GUI apps in disposables (4 preloaded) (qvm-run)
Dom0 runs simple app in a disposable (API)
Dom0 runs 4 concurrent simple apps in disposables (API)
Dom0 runs GUI app in a disposable (API)
Dom0 runs 4 concurrent GUI apps in disposables (API)
Dom0 runs simple app in disposables (3 preloaded) (API)
Dom0 runs simple app in disposables (1 preloaded) (API)
Dom0 runs simple app in disposables (2 preloaded) (API)
Dom0 runs 4 concurrent simple apps in disposables (4 preloaded) (API)
Dom0 runs GUI app in disposables (2 preloaded) (API)
Dom0 runs 4 concurrent GUI apps in disposables (4 preloaded) (API)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
love it. Clear and understandable.
1e60e74    to
    8109b3d      
    Compare
  
    496dd5c    to
    85d7e32      
    Compare
  
    | When running it as part of test_900_reader, do specify which template to do graphs for - the one that just had the perf tests completed. | 
| But when it did find correct template, it failed on one graph:  | 
| 
 This is because this test failed: https://openqa.qubes-os.org/tests/154722#step/TC_00_DispVMPerf_debian-13-xfce/26 So it is missing a preload for the debian template, then it can't load that graph correctly. What is the expected behavior here? I am doing changes to make it fail the graph but raise it late, to allow for other graphs such as  | 
f6dcef3    to
    a646f4a      
    Compare
  
    | The exception is not great right now because it will only report one exception even if more graphs fail... will fix it.  | 
| 
 Yes, try to make other graphs anyway. A better error message would be useful too, but I guess that may be tricky if only some parts of the data is missing... | 
| BTW I like you made the reader script taking just the data file as input, not needing (or even importing) qubes api so it can be run outside of qubes dom0 too :) | 
65d90b9    to
    c6e10ea      
    Compare
  
    | On a test that I removed a fedora test and used debian as the default template, the next graph was loaded.  | 
| This is a bit unfortunate: So, one debian test failed, which caused errors on all reader test - as 08_template include data from all templates... But I don't have any better idea how to handle that. | 
| 
 I think the graph should fail, but at least, save the figure: It requires reworking the code a bit. | 
|  | 
c6e10ea    to
    cc3a140      
    Compare
  
    
Visualization of disposable and preload performance compared to vm-vm connections.
There are lot of todos, not ready to be merged...