Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: enable stdin on exec. fixes kata containers output#231

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
XT-Phate wants to merge1 commit intoactions:main
base:main
Choose a base branch
Loading
fromXT-Phate:fix/k8s-use-stdin

Conversation

@XT-Phate
Copy link

Context

When running the github hook againstkata containers, the script output cannot be fetched properly from kata. Only a bit of the stdout/stderr are properly forwarded to GH

Workaround thisissue from kata

Resolution

Enabling stdin solves that issue and should not impact other workloads

CopilotAI review requested due to automatic review settingsJuly 7, 2025 16:15
@XT-PhateXT-Phate requested a review froma team as acode ownerJuly 7, 2025 16:15
Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Enable stdin forwarding inexecPodStep calls to address truncated output when running against Kata containers.

  • Passprocess.stdin toexecPodStep in the Alpine check helper.
  • Includeprocess.stdin in therunScriptStep hook invocation.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

FileDescription
packages/k8s/src/k8s/index.tsPassprocess.stdin intoexecPodStep for the Alpine check
packages/k8s/src/hooks/run-script-step.tsForwardprocess.stdin when invokingexecPodStep inrunScriptStep
Comments suppressed due to low confidence (3)

packages/k8s/src/k8s/index.ts:529

  • This change enables passing stdin to execPodStep for Kata containers; consider adding or updating tests to verify that stdin is forwarded correctly in both standard and Kata container environments.
      process.stdin

packages/k8s/src/hooks/run-script-step.ts:30

  • Consider adding or updating tests for runScriptStep to ensure that passing process.stdin to execPodStep correctly handles interactive input scenarios, especially with Kata containers.
      process.stdin

packages/k8s/src/hooks/run-script-step.ts:30

  • [nitpick] Since multiple callers now explicitly pass process.stdin, consider making process.stdin the default value for the stdin parameter in execPodStep, removing the need for callers to pass it each time.
      process.stdin

Signed-off-by: Maxime Bertin <mbertin@luccasoftware.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@XT-Phate

[8]ページ先頭

©2009-2025 Movatter.jp