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

fix getting all available output for interactive commands + fix logging end of output when no match was found in run_shell_cmd #4504

Merged
merged 5 commits into from
Apr 9, 2024

Conversation

boegel
Copy link
Member

@boegel boegel commented Apr 6, 2024

bug fix, required for installing Maple (cfr. easybuilders/easybuild-easyblocks#3286)


# note: we assume that there won't be any questions in stderr output
if split_stderr:
stderr += proc.stderr.read1(read_size) or b''
more_stderr = True
while more_stdout:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
while more_stdout:
while more_stderr:

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in c090f49

@boegel boegel changed the title fix getting all available output for interactive commands in run_shell_cmd fix getting all available output for interactive commands + fix logging end of output when no match was found in run_shell_cmd Apr 6, 2024

if qa_patterns:
if _answer_question(stdout, proc, qa_patterns, qa_wait_patterns):
time_no_match = 0
else:
_log.debug(f"No match found in question/wait patterns at end of stdout: {stdout[:1000]}")
_log.debug(f"No match found in question/wait patterns at end of stdout: {stdout[:-1000]}")
Copy link
Member Author

Choose a reason for hiding this comment

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

This needs more work, don't merge yet please...

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed in 0e15657

@boegel boegel force-pushed the run_shell_cmd_qa_buffering branch from 2c77d7d to 0e15657 Compare April 9, 2024 09:18
@branfosj branfosj merged commit f6469a2 into easybuilders:5.0.x Apr 9, 2024
35 checks passed
@boegel boegel deleted the run_shell_cmd_qa_buffering branch April 9, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants