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

Bash CI attempts to kill non-existent driver instances #2798

Closed
DavidHuber-NOAA opened this issue Jul 30, 2024 · 0 comments · Fixed by #2799
Closed

Bash CI attempts to kill non-existent driver instances #2798

DavidHuber-NOAA opened this issue Jul 30, 2024 · 0 comments · Fixed by #2799
Assignees
Labels
bug Something isn't working

Comments

@DavidHuber-NOAA
Copy link
Contributor

What is wrong?

Occasionally, a PR fails for one reason or another and the Bash CI attempts to kill the driver via SSH on a different head node. However, in some circumstances, the driver may have crashed. In those cases, the script (ci/scripts/driver.sh) still attempts to look for and kill all child processes, but is unable to find the parent process, resulting in a failure.

Also, if a PR directory is manually deleted, the Bash CI will fail to write to a log file, causing a failure

What should have happened?

The driver.sh script should first check if the PID is still running before attempting to kill it. Also, the same script should check for the existence of the PR directory and create it if it does not exist.

What machines are impacted?

WCOSS2

Steps to reproduce

Rather difficult to reproduce.

Additional information

Found while testing #2791

Do you have a proposed solution?

Add a check to the ssh command that the driver.sh PID is still running.

@DavidHuber-NOAA DavidHuber-NOAA added bug Something isn't working triage Issues that are triage labels Jul 30, 2024
@DavidHuber-NOAA DavidHuber-NOAA self-assigned this Jul 30, 2024
@DavidHuber-NOAA DavidHuber-NOAA removed the triage Issues that are triage label Jul 30, 2024
WalterKolczynski-NOAA pushed a commit that referenced this issue Aug 7, 2024
Adds a check to the SSH command used to kill child PIDs of a defunct
driver instance on a different head node to prevent invalid kill
commands, preventing CI failures.

Resolves #2798
CoryMartin-NOAA pushed a commit to CoryMartin-NOAA/global-workflow that referenced this issue Aug 7, 2024
…A-EMC#2799)

Adds a check to the SSH command used to kill child PIDs of a defunct
driver instance on a different head node to prevent invalid kill
commands, preventing CI failures.

Resolves NOAA-EMC#2798
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant