Skip to content

More intelligently detect if a plugin should be killed, rather than waiting for X seconds #1176

Closed
@Thunderforge

Description

@Thunderforge

Sometimes, a Gauge plugin takes a long time to run. Gauge makes an effort to not freeze the user's machine and so attempts to preemptively kill a frozen plugin.

Expected behavior

Gauge checks if a plugin is still doing work, such as by examining the time stamp of log files. If there has been work in the last few seconds, assume that the plugin is still active.

Actual behavior

Gauge forcibly kills a plugin after the number of seconds determined by the plugin_kill_timeout property (by default: 4 seconds), regardless of if the plugin is actively doing work. The code for this begins on this line in plugin/plugin.go.

This has especially caused issues with the HTML Report plugin on large projects (see HTML Report #120, #121, #153, as well as this project's #636). Theoretically, it could happen with any plugin, but so far, no users have reported that other plugins have run for longer than the default 4 seconds.

Gauge version

Gauge version: 1.0.0
Commit Hash: 5a99965

Plugins
-------
csharp (0.10.3)
html-report (4.0.5)
java (0.6.8)
json-report (0.2.1)
screenshot (0.0.1)
xml-report (0.2.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions