Skip to content
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

Action exceeding the maximum execution time of 360 minutes #731

Closed
matievisthekat opened this issue Dec 27, 2021 · 12 comments
Closed

Action exceeding the maximum execution time of 360 minutes #731

matievisthekat opened this issue Dec 27, 2021 · 12 comments

Comments

@matievisthekat
Copy link
Contributor

This has been happening only for the last couple of hours.

The job fails with the error The job running on runner GitHub Actions 3 has exceeded the maximum execution time of 360 minutes.
Further investigation shows that the job was in fact running for 6 hours.

Copy of action log
────────────────────────────────────────────────────────────────────────────────────────
Metrics                                                  │  
(node:11) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Setup                                                    │ complete
Version                                                  │ 3.17.0-beta
Using prebuilt image                                     │ true
Debug mode                                               │ false
Debug flags                                              │ (none)
GitHub token                                             │ (provided)
Github GraphQL API                                       │ ok
Github REST API                                          │ ok
Token validity                                           │ seems ok
GitHub account                                           │ matievisthekat
Current repository                                       │ matievisthekat/matievisthekat
Committer token                                          │ (provided)
Committer branch                                         │ master
Committer head branch                                    │ master
Committer REST API                                       │ ok
Committer account                                        │ (github-actions)
Committer head branch status                             │ ok
Previous render sha                                      │ d977b5ffc80dc570c06aee01718fb1cb7bb6166d
SVG output                                               │ recent-metrics.svg
SVG optimization                                         │ css, xml
SVG verification after generation                        │ false
────────────────────────────────────────────────────────────────────────────────────────
Templates                                                │  
Community templates                                      │ (none)
Template used                                            │ classic
Query additional params                                  │ {}
────────────────────────────────────────────────────────────────────────────────────────
Core                                                     │  
Rendered markdown output path                            │ TEMPLATE.md
Extra CSS                                                │ 
Timezone used                                            │ Africa/Johannesburg
Configure content order                                  │ (none)
Use twemojis instead of emojis                           │ false
Use GitHub custom emojis                                 │ true
Render display width                                     │ regular
SVG CSS animations                                       │ true
Encode images links into base64 data                     │ true
Image padding                                            │ 0, 0
Output image format                                      │ auto
Experimental features                                    │ (none)
Plugin errors                                            │ (displayed in generated image)
────────────────────────────────────────────────────────────────────────────────────────
Base content                                             │  
Number of repositories to use                            │ 100
Number of repositories to load at once by queries        │ 100
Include forks in metrics                                 │ false
Repositories affiliations                                │ owner
Default repositories to skip                             │ (none)
List of surnames or email addresses you use when authoring commits │ .user.login
Base sections                                            │ (none)
────────────────────────────────────────────────────────────────────────────────────────
Coding habits                                            │  
Number of events to use                                  │ 1000
Maximum event age                                        │ 30
Display coding habits collected facts based on recent activity │ false
Display coding habits charts based on recent activity    │ true
Trim unused hours on daily chart                         │ false
────────────────────────────────────────────────────────────────────────────────────────
Music plugin                                             │  
Music provider                                           │ spotify
Music provider personal token                            │ (provided)
Plugin mode                                              │ recent
Embed playlist url                                       │ 
Maximum number of tracks to display                      │ 5
Display when the track was played                        │ true
Time period for top mode                                 │ short
Whether to show tracks or artists in top mode            │ tracks
Music provider username                                  │ .user.login
────────────────────────────────────────────────────────────────────────────────────────
Recently starred repositories                            │  
Maximum number of stars to display                       │ 4
────────────────────────────────────────────────────────────────────────────────────────
WakaTime plugin                                          │  
WakaTime API token                                       │ (provided)
WakaTime time range                                      │ 7
Sections to display                                      │ time, projects, editors, os
Maximum number of entries to display per graph           │ 5
Address where to reach your Wakatime instance            │ wakatime.com
Your Wakatime user on the selfhosted Wakapi instance     │ current
────────────────────────────────────────────────────────────────────────────────────────
Rendering                                                │  
Error: The operation was canceled.

and here is a copy of my workflow config

view file

name: Recent Metrics
on:
  workflow_dispatch:
  schedule: 
    - cron: "0 * * * *"
jobs:
  github-metrics:
    runs-on: ubuntu-latest
    steps:
      - uses: lowlighter/metrics@master
        with:
          token: ${{ secrets.METRICS_TOKEN }}
          committer_token: ${{ secrets.GITHUB_TOKEN }}
          base: ""
          config_timezone: Africa/Johannesburg
          config_padding: 0, 0
          filename: recent-metrics.svg
          
          plugin_habits: yes
          plugin_habits_from: 1000
          plugin_habits_days: 30
          plugin_habits_facts: no
          plugin_habits_charts: yes
          
          plugin_wakatime: yes
          plugin_wakatime_token: ${{ secrets.WAKATIME_TOKEN }}
          plugin_wakatime_days: 7
          plugin_wakatime_sections: time, projects, editors, os
          
          plugin_stars: yes
          plugin_stars_limit: 4
          
          plugin_music: yes
          plugin_music_provider: spotify
          plugin_music_mode: recent
          plugin_music_limit: 5
          plugin_music_played_at: yes
          plugin_music_token: "${{ secrets.SPOTIFY_CLIENT_ID }}, ${{ secrets.SPOTIFY_CLIENT_SECRET }}, ${{ secrets.SPOTIFY_REFRESH_TOKEN }}"

The action seems to be running for 6 hours. Is it maybe getting stuck in some kind of infinite loop? A number of the runs for this workflow have had this error. I will link to them below:

(From oldest to newest)

@bossm0n5t3r
Copy link

same here

@icy-blue
Copy link

icy-blue commented Dec 27, 2021

I got failure either.
When I tried to switch the version to v3.16, the action continues running for more than 3.5 hrs (2-3 min before, for reference, I will follow the progress and update later).
Some runs reported failure within less than 6 hrs, which action workflow file is not changed.
The log of the run mentioned is here. Is the renderer okay for running?

Here is a copy of my workflow config
name: Metrics
on:
  # Schedule updates (each hour)
  schedule: [{cron: "0 * * * *"}]
  # Lines below let you run workflow manually and on each commit
  workflow_dispatch:
  push: {branches: ["master", "main"]}
jobs:
  github-metrics:
    runs-on: ubuntu-latest
    steps:
      - uses: lowlighter/metrics@latest
        with:
          # Your GitHub token
          token: ${{ secrets.METRICS_TOKEN }}

          # Options
          user: icy-blue
          template: classic
          base: header, activity, community, repositories, metadata
          config_timezone: Asia/Shanghai
          plugin_achievements: yes
          plugin_achievements_threshold: B      # Display achievements with rank B or higher
          plugin_achievements_secrets: yes      # Display unlocked secrets achievements
          plugin_achievements_display: compact  # Use compact display
          plugin_achievements_limit: 0          # Display all unlocked achievements (no limit)
          plugin_activity: yes
          plugin_activity_days: 14
          plugin_activity_filter: all
          plugin_activity_limit: 5
          plugin_activity_load: 300
          plugin_activity_visibility: public
          plugin_followup: yes
          plugin_followup_sections: repositories
          plugin_habits: yes
          plugin_habits_days: 14
          plugin_habits_facts: yes
          plugin_habits_from: 200
          plugin_isocalendar: yes
          plugin_isocalendar_duration: half-year
          plugin_languages: yes
          plugin_languages_analysis_timeout: 15
          plugin_languages_categories: markup, programming
          plugin_languages_colors: github
          plugin_languages_limit: 8
          plugin_languages_recent_categories: markup, programming
          plugin_languages_recent_days: 14
          plugin_languages_recent_load: 300
          plugin_languages_sections: most-used
          plugin_languages_threshold: 0%
          plugin_licenses: yes
          plugin_licenses_setup: npm ci       # Command to setup target repository
          plugin_licenses_ratio: yes          # Display used licenses ratio
          plugin_licenses_legal: yes          # Display permissions, limitations and conditions
          plugin_lines: yes
          plugin_stars: yes
          plugin_stars_limit: 4
          plugin_people: yes
          plugin_people_limit: 100

@icy-blue
Copy link

icy-blue commented Dec 27, 2021

Ohhh, there is a successful run among failure runs and progressing runs in my repo.
It runs for about 5 min, (2-3 min before, for reference).
However, the is also an error during rendering in the log :(

Rendering                                                │  
metrics/compute/icy-blue > 1 errors !
[
  {
    name: 'licenses',
    result: {
      error: {
        message: 'An error occured',
        instance: {
          error: {
            message: 'Not supported for: user',
            instance: Error
                at Object.meta.inputs (file:///metrics/source/app/metrics/metadata.mjs:78:77)
                at Object.default [as licenses] (file:///metrics/source/plugins/licenses/index.mjs:10:67)
                at file:///metrics/source/plugins/core/index.mjs:56:57
                at Object.default [as core] (file:///metrics/source/plugins/core/index.mjs:68:7)
                at default (file:///metrics/source/templates/classic/template.mjs:4:25)
                at metrics (file:///metrics/source/app/metrics/index.mjs:64:11)
                at processTicksAndRejections (node:internal/process/task_queues:96:5)
                at async file:///metrics/source/app/action/index.mjs:310:24
          }
        }
      }
    }
  }
]

The detailed log of the run mentioned is here.
I think it would be helpful to locate the failure?
I will be pleased to give more information if needed.

@rhld16
Copy link
Contributor

rhld16 commented Dec 27, 2021

Occurring on the latest commit as well, seems to get stuck whilst rendering.

2021-12-27T05:12:22.5253054Z �[36mRendering�[0m                                                │  
2021-12-27T11:07:10.6431073Z  [error]The operation was canceled.

@lammersbjorn
Copy link

Same here

@rhld16
Copy link
Contributor

rhld16 commented Dec 27, 2021

There was an issue with GitHub Actions, which has since been resolved

@bossm0n5t3r
Copy link

@rhld16 oh.. before I left my comment, I've checked github action status, it was okey... but it happened 😅 Thank you!

@bossm0n5t3r
Copy link

everything is ok, Thanks all 👍

@lammersbjorn
Copy link

I am still getting the errors right now.

@lowlighter
Copy link
Owner

Seems to be indeed related to GitHub Actions being down but it looks like it's fixed now as @rhld16 reported 👍

@lammersbjorn
Copy link

I've gotten the error 5 minutes ago still

@lowlighter
Copy link
Owner

Your last 6 workflows seems to be good though, are you sure it's not old notifications ?

@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants