Skip to content

go/oasis-node/cmd/common: Fix isNodeRunning function#6520

Merged
martintomazic merged 1 commit into
masterfrom
martin/bugfix/is-node-running
May 4, 2026
Merged

go/oasis-node/cmd/common: Fix isNodeRunning function#6520
martintomazic merged 1 commit into
masterfrom
martin/bugfix/is-node-running

Conversation

@martintomazic
Copy link
Copy Markdown
Contributor

@martintomazic martintomazic commented May 4, 2026

What

Storage commands gated by this check are sometimes blocked due to the stale internal socket. This has now also surfaced in the e2e test I was writing about offline pruning/compaction.

How to test locally

A non-graceful shutdown of the node tends to keep stale internal.sock.

Observation

Seem that internal.sock is sometimes not cleaned even with graceful shutdown. Meaning a possible bug during shutdown/cleanup (out of scope).

@netlify
Copy link
Copy Markdown

netlify Bot commented May 4, 2026

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 6a3b823
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-oasis-core/deploys/69f8b18e4e2e840008367a58

@martintomazic martintomazic self-assigned this May 4, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

❌ Patch coverage is 0% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.70%. Comparing base (31648e6) to head (771b15b).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
go/oasis-node/cmd/common/common.go 0.00% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6520      +/-   ##
==========================================
+ Coverage   63.36%   63.70%   +0.34%     
==========================================
  Files         698      698              
  Lines       68297    68299       +2     
==========================================
+ Hits        43275    43511     +236     
+ Misses      20052    19816     -236     
- Partials     4970     4972       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@martintomazic martintomazic marked this pull request as ready for review May 4, 2026 14:31
Comment thread go/oasis-node/cmd/common/common.go Outdated
@martintomazic martintomazic force-pushed the martin/bugfix/is-node-running branch from 771b15b to 6a3b823 Compare May 4, 2026 14:47
@martintomazic martintomazic enabled auto-merge May 4, 2026 14:48
@martintomazic martintomazic merged commit 4d70017 into master May 4, 2026
3 of 5 checks passed
@martintomazic martintomazic deleted the martin/bugfix/is-node-running branch May 4, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants