jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-28606] Track down WithContainerStepTest.stop() hang

Open
#375 1 comment 0 reactions 0 assignees View on GitHub
component:docker-workflow-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

Observed this issue on Ubuntu 14. The test named in the subject hangs because the LauncherDecorator in WithContainerStep is not able to kill the Docker container processes it started (via docker exec). The ps command it executes (looking for the COOKIE env variable on the process) is not finding the processes. It's as though the processes are not inheriting the env variables.

If ps is the problem, we could use /proc directly, but it is probably an actual problem of the environment variables.

Also we should do a hard kill on the container after 10+ seconds.

---
Originally reported by jglick, imported from: Track down WithContainerStepTest.stop() hang


  • assignee: tfennelly
  • status: Open
  • priority: Major
  • component(s): docker-workflow-plugin
  • label(s): testing
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-07

Raw content of original issue

Observed this issue on Ubuntu 14. The test named in the subject hangs because the LauncherDecorator in WithContainerStep is not able to kill the Docker container processes it started (via docker exec). The ps command it executes (looking for the COOKIE env variable on the process) is not finding the processes. It's as though the processes are not inheriting the env variables.

If ps is the problem, we could use /proc directly, but it is probably an actual problem of the environment variables.

Also we should do a hard kill on the container after 10+ seconds.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.