Skip to content

Fix the incorrect stdout redirect logic#2225

Merged
enjoy-binbin merged 4 commits intovalkey-io:unstablefrom
artikell:fix_alpine_stdout
Jun 18, 2025
Merged

Fix the incorrect stdout redirect logic#2225
enjoy-binbin merged 4 commits intovalkey-io:unstablefrom
artikell:fix_alpine_stdout

Conversation

@artikell
Copy link
Contributor

@artikell artikell commented Jun 17, 2025

Use the standard dup2 to redirect stdout

Closes #2224
Follow-up of #1743

@artikell artikell changed the title Fix the incorrect stdout recovery logic Fix the incorrect stdout redirect logic Jun 17, 2025
@codecov
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

Attention: Patch coverage is 18.18182% with 9 lines in your changes missing coverage. Please review.

Project coverage is 71.63%. Comparing base (81e0051) to head (465622c).
Report is 3 commits behind head on unstable.

Files with missing lines Patch % Lines
src/valkey-check-rdb.c 18.18% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #2225      +/-   ##
============================================
+ Coverage     71.58%   71.63%   +0.05%     
============================================
  Files           122      123       +1     
  Lines         66766    66801      +35     
============================================
+ Hits          47794    47853      +59     
+ Misses        18972    18948      -24     
Files with missing lines Coverage Δ
src/valkey-check-rdb.c 71.77% <18.18%> (-0.39%) ⬇️

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@enjoy-binbin enjoy-binbin added the run-extra-tests Run extra tests on this PR (Runs all tests from daily except valgrind and RESP) label Jun 17, 2025
@enjoy-binbin
Copy link
Member

I added a commit to do the exit(1), please check. At the same time, this commit is also meant to trigger the extra-ci

Signed-off-by: skyfirelee <[email protected]>
Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

Signed-off-by: skyfirelee <[email protected]>
@enjoy-binbin enjoy-binbin merged commit a05d1a6 into valkey-io:unstable Jun 18, 2025
59 of 60 checks passed
ranshid pushed a commit to ranshid/valkey that referenced this pull request Jun 18, 2025
…alkey-io#2225)

Use the standard `dup2` to redirect `stdout`

Closes valkey-io#2224
Follow-up of valkey-io#1743

Signed-off-by: skyfirelee <[email protected]>
Signed-off-by: Binbin <[email protected]>
Co-authored-by: Binbin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-extra-tests Run extra tests on this PR (Runs all tests from daily except valgrind and RESP)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]Build Failure in Alpine-Linux

3 participants