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

Log threads when the OS signal is received to simplify debugging, especially when a CI node hangs. #266

Merged
merged 10 commits into from
Aug 7, 2024

Conversation

ArturT
Copy link
Member

@ArturT ArturT commented Aug 6, 2024

Story

https://trello.com/c/oQCHRpec

Related

https://docs.knapsackpro.com/ruby/troubleshooting/#why-does-the-ci-node-hang-backtrace-debugging

Description

Log threads when the OS signal is received to simplify debugging, especially when a CI node hangs.

Checklist reminder

  • You added the changes to the UNRELEASED section of the CHANGELOG.md, including the needed bump (ie, patch, minor, major)
  • You follow the architecture outlined below for RSpec in Queue Mode, which is a work in progress (feel free to propose changes):
    • Pure: lib/knapsack_pro/pure/queue/rspec_pure.rb contains pure functions that are unit tested.
    • Extension: lib/knapsack_pro/extensions/rspec_extension.rb encapsulates calls to RSpec internals and is integration and e2e tested.
    • Runner: lib/knapsack_pro/runners/queue/rspec_runner.rb invokes the pure code and the extension to produce side effects, which are integration and e2e tested.

Copy link
Contributor

@3v0k4 3v0k4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

lib/knapsack_pro/runners/queue/base_runner.rb Outdated Show resolved Hide resolved
lib/knapsack_pro/runners/queue/base_runner.rb Outdated Show resolved Hide resolved
lib/knapsack_pro/runners/queue/base_runner.rb Outdated Show resolved Hide resolved
ArturT and others added 5 commits August 7, 2024 12:17
Co-authored-by: Riccardo <riccardo.odone@gmail.com>
Co-authored-by: Riccardo <riccardo.odone@gmail.com>
Co-authored-by: Riccardo <riccardo.odone@gmail.com>
previously it could hang on sleep or write done by puts depending on the moment when termination was received
@ArturT ArturT merged commit 161efcc into master Aug 7, 2024
45 checks passed
@ArturT ArturT deleted the log-threads branch August 7, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants