chenyulin0719 commented on PR #758:
URL: https://github.com/apache/yunikorn-k8shim/pull/758#issuecomment-1878087644

   Hi @pbacsko, @craigcondit 
   > @chenyulin0719 maybe there's a misunderstanding, but I think the default 
logging from the tests is perfectly fine. What we need to upload is the 
Yunikorn log and cluster info, which is printed to the the console in the 
current implementation. That is a LOT of text and it's very inconvenient to 
read all kinds of output mixed together.
   So what we need to do is writing YK logs and cluster info to a separate file 
(or even better, files) then upload it when the test completes.
   
   > I agree with @pbacsko, the current logging is fine until an error occurs, 
and then the dump becomes nearly unreadable, especially locally (but even on GH 
I've seen it overflow the allowed size).
   
   Noted, will keep the default logging.
   
   The new thought in my mind is we will have 1 new logging method for file. 
   1. ginkgo.By. (to console) (Existing)
   2. ginkgo.GinkgoWriter.  (To console) (Existing)
   3. File Writer (To file) (New) (file path is from github workflow ENV 
variable, should have default path for local run. ex: /tmp/e2e-test-artifacts) 
   
   I should move "state dump, yunikorn logs, and cluster diagnostics" from 
`#1`,`#2` to `#3 File Writer`.(Instead of changing ginkgo.GinkgoWriter to 
file). Please correct me if I didn't understand it well.
   
   The further question is the artifact's file structure.
   
   >  I'd be a big fan of capturing that output to files (within the source 
tree under output/) and then uploading those to GH if we're running in a 
workflow. I think separate files for state dump, yunikorn logs, and cluster 
diagnostics would be ideal.
   
   
   @craigcondit In my opinion, the [example 
](https://github.com/chenyulin0719/yunikorn-k8shim/actions/runs/7411334944) in 
this PR is quite clear, I organized all the file logs into a single file per 
suite. (Printing the spec name first allows us to search by spec name.) 
   Keeping one file per suite is my favorite. If this is acceptible I will keep 
this implementation.
   
   <img width="1267" alt="image" 
src="https://github.com/apache/yunikorn-k8shim/assets/26764036/178e0aa1-1f36-42ec-bc59-ea9d82e38aeb";>
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to