Otanikotani / view-github-actions-idea-plugin

Intellij IDEA plugin to browse execution of GitHub actions
MIT License
25 stars 8 forks source link

[Issue] Details of the job is not showing #33

Open felixfong227 opened 4 years ago

felixfong227 commented 4 years ago

First of all, awesome plugin :smile: :+1:

But somehow the details of the job are not rendering.

Try: Refreshing the "Workflow log" multiple times

image


OS: PoPOS 19.10 GoLand: 2019.3.3 Plugin: 1.1.1

Thank you

Otanikotani commented 4 years ago

Hey @felixfong227 ! Thanks for the feedback!

There is a possible issue with fetching workflow logs. Current github api for fetching logs is quite weird, so we do some very simple analysis of the content of the downloaded log archive to find which file in the archive is indeed the log file. That analysis seems to fail :).

Is there any chance the jobs you don't see logs for are public? I would like to see the what github api returns for those jobs.

Or if it is not public, could you please analyze the log file contents by yourself and tell us here what is file tree structure in there? For that, you will need to follow https://developer.github.com/v3/actions/workflow_runs/#list-workflow-run-logs to download the logs archive.

felixfong227 commented 4 years ago

👋 thank you for your time on reading my issue😄

All the CI jobs are publicly available at https://github.com/AminoJS/AminoGo/actions

Otanikotani commented 4 years ago

Thanks, the issue here is that the current GitHub API returns 404 when querying logs for unfinished workflow runs. That is if the workflow run is in progress then it is rather impossible to see the logs for it. Once the workflow run is complete (either successfully or not) the logs for it will become available.

I think that since it is early release of the GitHub API they might improve it, later on, to support querying logs for unfinished runs. For now, I added a message clarifying this:

felixfong227 commented 4 years ago

Understand, GitHub is weird :joy: But the problem is when I was taking that issue's screenshot, the jobs are long finished already :thinking:

Otanikotani commented 4 years ago

Hmm, I see. Let me try to take another look.

What puzzles me a little bit - on the screenshot you posted I don't see :see_no_evil: any workflow selected in the workflow run list on the left.

When I try to check it in your repo now, it looks fine:

Notice how in the list of the workflow runs on the left one element is selected (its color is slightly brighter gray). Can you try to update the plugin to 1.1.2 and try again, please?

felixfong227 commented 4 years ago

Oh yeah, that screenshot didn't show I had clicked on it :joy:

But here is a video I recorded minutes ago :point_right: Video. And from what you see here is exactly what I had encountered in this past two days

I was using version 1.1.1 before, and GoLand had automatically upgrade the plugin to 1.1.2 , but the result are the same :confused:

1.1.2 is indeed installed on my system and is being used Image Show 1.1.2 is installed

Thanks a lot :tada:

Otanikotani commented 4 years ago

Alright, I will try to figure out other reasons why else the workflow log is not fetched. Quite strange indeed. Will let you know if I find anything.

Thanks again for reporting the issue :)

RobReus commented 4 years ago

I am running into the same issue, running on version 1.1.4 of the plugin.

Let me know if you need any information or logs from my side. The repo I am trying it with is also public: https://github.com/raspbernetes/multi-arch-images/actions

Thanks!

Otanikotani commented 4 years ago

Looking into this.

Otanikotani commented 4 years ago

Hmm, it is really hard to tell what is going on. Tell you what, I added some primitive logging to the plugin. So if you could please update the plugin once it is released (probably a couple of days to get a new version to jetbrains store (https://plugins.jetbrains.com/plugin/13793-github-actions/versions/stable/91639)) and rerun the same scenario you tried with debugging on. Sadly, we need a new version of the plugin because I was lazy enough not to have a single debug log line in the plugin before :| .

Once the plugin is released and you get it you will need to toggle on debug logging for the plugin. To do that go to Help -> Diagnostic Tools -> Debug Log Settings... and add org.github.otanikotani there. This would enable DEBUG level logging for this plugin.

Then, the logs themselves should be available in <idea-folder>/log/idea.log.

This is how the log looks when I open https://github.com/raspbernetes/multi-arch-images workflows and then open click on some workflow to see the log:

2020-07-11 10:28:22,732 [   5596]   WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix ToolWindow (ID:  Problems View) or icon jar:file:/home/ota/.gradle/caches/modules-2/files-2.1/com.jetbrains.intellij.idea/ideaIC/2020.1/cbeeb1f1aebd4c9ea8fb5ab990c5904a676fc41a/ideaIC-2020.1/lib/icons.jar!/general/warning.svg 
2020-07-11 10:28:23,141 [   6005]  DEBUG -         org.github.otanikotani - repositoryChanged 
2020-07-11 10:28:23,146 [   6010]  DEBUG -         org.github.otanikotani - Update remote urls 
2020-07-11 10:28:23,155 [   6019]  DEBUG -         org.github.otanikotani - Remote URLs changed 
2020-07-11 10:28:23,156 [   6020]  DEBUG -         org.github.otanikotani - addTab 
2020-07-11 10:28:23,156 [   6020]  DEBUG -         org.github.otanikotani - createContent 
2020-07-11 10:28:23,158 [   6022]  DEBUG -         org.github.otanikotani - mappingChanged 
2020-07-11 10:28:23,158 [   6022]  DEBUG -         org.github.otanikotani - Update remote urls 
2020-07-11 10:28:23,158 [   6022]  DEBUG -         org.github.otanikotani - Remote URLs changed 
2020-07-11 10:28:23,166 [   6030]   WARN - om.intellij.util.FieldAccessor - Field not found: javafx.embed.swing.JFXPanel.scaleFactor 
2020-07-11 10:28:23,219 [   6083]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 4106 ms 
2020-07-11 10:28:24,597 [   7461]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 2694ms; general responsiveness: ok; EDT responsiveness: 1/2 sluggish 
2020-07-11 10:28:24,618 [   7482]   INFO - penapi.project.DumbServiceImpl - updateFinished 
2020-07-11 10:28:24,624 [   7488]   INFO - g.FileBasedIndexProjectHandler - Has changed files: false; project=Project (name=multi-arch-images, containerState=ACTIVE, componentStore=/home/ota/java/multi-arch-images)  
2020-07-11 10:28:24,716 [   7580]   INFO - penapi.project.DumbServiceImpl - Running dumb mode task: com.android.tools.idea.res.ResourceFolderRepositoryFileCacheImpl$PruneTask@1bc4c33d 
2020-07-11 10:28:24,738 [   7602]   INFO - penapi.project.DumbServiceImpl - Running dumb mode task: com.android.tools.idea.res.ResourceFolderRepositoryFileCacheImpl$ManageLruProjectFilesTask@fbfef52 
2020-07-11 10:28:24,744 [   7608]   INFO - CompilerWorkspaceConfiguration - Available processors: 12 
2020-07-11 10:28:24,778 [   7642]   INFO - penapi.project.DumbServiceImpl - updateFinished 
2020-07-11 10:28:24,779 [   7643]   INFO - g.FileBasedIndexProjectHandler - Has changed files: false; project=Project (name=multi-arch-images, containerState=ACTIVE, componentStore=/home/ota/java/multi-arch-images)  
2020-07-11 10:28:24,821 [   7685]   INFO - penapi.project.DumbServiceImpl - Running dumb mode task: com.android.tools.idea.res.ResourceFolderRegistry$PopulateCachesTask@14401ed4 
2020-07-11 10:28:24,861 [   7725]   INFO - penapi.project.DumbServiceImpl - updateFinished 
2020-07-11 10:28:24,861 [   7725]   INFO - g.FileBasedIndexProjectHandler - Has changed files: false; project=Project (name=multi-arch-images, containerState=ACTIVE, componentStore=/home/ota/java/multi-arch-images)  
2020-07-11 10:28:25,885 [   8749]   INFO - tellij.ide.SystemHealthMonitor - restored ignored PIPE handler 
2020-07-11 10:28:28,558 [  11422]  DEBUG -         org.github.otanikotani - initContent 
2020-07-11 10:28:28,561 [  11425]  DEBUG -         org.github.otanikotani - init GitHubWorkflowRunAccountsComponent 
2020-07-11 10:28:28,561 [  11425]  DEBUG -         org.github.otanikotani - update 
2020-07-11 10:28:28,561 [  11425]  DEBUG -         org.github.otanikotani - Set actual account to the account using the https://github.com/raspbernetes/multi-arch-images 
2020-07-11 10:28:28,564 [  11428]  DEBUG -         org.github.otanikotani - Update 
2020-07-11 10:28:28,566 [  11430]  DEBUG -         org.github.otanikotani - createComponent 
2020-07-11 10:28:28,567 [  11431]  DEBUG -         org.github.otanikotani - getting context 
2020-07-11 10:28:28,568 [  11432]  DEBUG -         org.github.otanikotani - Get GitHubWorkflowRunDataContext 
2020-07-11 10:28:28,568 [  11432]  DEBUG -         org.github.otanikotani - Get User and  repository 
2020-07-11 10:28:28,568 [  11432]  DEBUG -         org.github.otanikotani - Create GitHubWorkflowDataLoader 
2020-07-11 10:28:28,571 [  11435]  DEBUG -         org.github.otanikotani - Create CollectionListModel<GitHubWorkflowRun>() and loader 
2020-07-11 10:28:28,681 [  11545]  DEBUG -         org.github.otanikotani - create content 
2020-07-11 10:28:28,693 [  11557]  DEBUG -         org.github.otanikotani - Initialize GitHubListLoaderPanel 
2020-07-11 10:28:28,693 [  11557]  DEBUG -         org.github.otanikotani - Create center panel 
2020-07-11 10:28:28,695 [  11559]  DEBUG -         org.github.otanikotani - Display empty status 
2020-07-11 10:28:28,698 [  11562]  DEBUG -         org.github.otanikotani - Create log loading model 
2020-07-11 10:28:28,698 [  11562]  DEBUG -         org.github.otanikotani - Create log panel 
2020-07-11 10:28:28,741 [  11605]  DEBUG -         org.github.otanikotani - Create console 
2020-07-11 10:28:28,766 [  11630]  DEBUG -         org.github.otanikotani - done creating content 
2020-07-11 10:28:28,776 [  11640]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:28,776 [  11640]  DEBUG -         org.github.otanikotani - Load more 
2020-07-11 10:28:28,777 [  11641]  DEBUG -         org.github.otanikotani - Do load more update: false, indicator: org.jetbrains.plugins.github.util.NonReusableEmptyProgressIndicator@aecd02e 
2020-07-11 10:28:28,777 [  11641]  DEBUG -         org.github.otanikotani - Get workflow runs 
2020-07-11 10:28:28,777 [  11641]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:28,780 [  11644]  DEBUG -         org.github.otanikotani - done on Loading completed 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/613746 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1281967 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1281967 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1131921 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1131921 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1281967 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1281967 
2020-07-11 10:28:29,563 [  12427]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,730 [  12594]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/713883 
2020-07-11 10:28:29,731 [  12595]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/613746 
2020-07-11 10:28:29,731 [  12595]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,731 [  12595]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/613746 
2020-07-11 10:28:29,730 [  12594]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,731 [  12595]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,731 [  12595]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/613746 
2020-07-11 10:28:29,732 [  12596]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/629772 
2020-07-11 10:28:29,736 [  12600]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/613746 
2020-07-11 10:28:29,746 [  12610]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/613746 
2020-07-11 10:28:29,777 [  12641]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1131921 
2020-07-11 10:28:29,883 [  12747]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,886 [  12750]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/623053 
2020-07-11 10:28:29,889 [  12753]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1131921 
2020-07-11 10:28:29,905 [  12769]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/623053 
2020-07-11 10:28:29,916 [  12780]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,918 [  12782]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/1131921 
2020-07-11 10:28:29,920 [  12784]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/652667 
2020-07-11 10:28:29,925 [  12789]  DEBUG -         org.github.otanikotani - Get workflow by url https://api.github.com/repos/raspbernetes/multi-arch-images/actions/workflows/613746 
2020-07-11 10:28:30,078 [  12942]  DEBUG -         org.github.otanikotani - Display empty status 
2020-07-11 10:28:30,078 [  12942]  DEBUG -         org.github.otanikotani - Add new list of workflow runs to the model 
2020-07-11 10:28:30,134 [  12998]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:38,761 [  21625]  DEBUG -         org.github.otanikotani - selection change listener 
2020-07-11 10:28:38,767 [  21631]  DEBUG -         org.github.otanikotani - setNewProvider 
2020-07-11 10:28:38,767 [  21631]  DEBUG -         org.github.otanikotani - Value changed 
2020-07-11 10:28:38,768 [  21632]  DEBUG -         org.github.otanikotani - Get workflow log for https://api.github.com/repos/raspbernetes/multi-arch-images/actions/runs/165520971/logs 
2020-07-11 10:28:41,774 [  24638]  DEBUG -         org.github.otanikotani - onLoadingCompleted 
2020-07-11 10:28:41,778 [  24642]  DEBUG -         org.github.otanikotani - Log model changed - call panel.validate() 
2020-07-11 10:28:44,781 [  27645]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:44,804 [  27668]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:44,835 [  27699]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:44,881 [  27745]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:44,928 [  27792]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:44,967 [  27831]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:45,005 [  27869]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:45,030 [  27894]  DEBUG -         org.github.otanikotani - Potentially loading more 
2020-07-11 10:28:45,053 [  27917]  DEBUG -         org.github.otanikotani - Potentially loading more 
Otanikotani commented 4 years ago

1.15 should be available now in jetbrains store

fizyk commented 3 years ago

I'm on 1.1.8 and I'm having this issue in PyCharm

image

Dragonrun1 commented 3 years ago

I'm using CLion 2020.3 Build #CL-203.5981.166, built on December 1, 2020 Runtime version: 11.0.9+11-b1145.21 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0

This is a EAP build I believe in case that matters

I'm also just getting a "Logs are unavailable" message on finished workflow. Seem to have the same issue in PHPStorm.

The CLion project is at: https://github.com/Dragonrun1/uuid64rs

And the other is at: https://github.com/Dragonrun1/uuid64php

Hopefully have some more example to test with help.

Update when I go manually to the url in FF: https://api.github.com/repos/Dragonrun1/uuid64rs/actions/runs/441260111/logs I get:

{
  "message": "Must have admin rights to Repository.",
  "documentation_url": "https://docs.github.com/rest/reference/actions#download-workflow-run-logs"
}

I know that Clion and PHPStorm has my Info for Github so shouldn't be a problem but who knows.

phseiff commented 3 years ago

I'm having a similar issue, only I get "Logs are unavailable" rather than nothing in the log overview. image

I'm using v1.1.9, and the logging you described above didn't work for me (no log folder appears) - should I try to restart the IDE after enabling logging for it to work?

Thanks in advance for any help you might be able to offer on that! :D