Skip to content

CRB Feature Prepare Plugin #3695

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

CRB Feature Prepare Plugin #3695

wants to merge 2 commits into from

Conversation

martinhoyer
Copy link
Collaborator

Closes #3650

5% of time implementing feature
95% of time pulling out hairs in /tests/
Gave up.

Pull Request Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage
  • update the specification
  • adjust plugin docstring
  • modify the json schema
  • mention the version
  • include a release note

@martinhoyer martinhoyer added step | prepare Stuff related to the prepare step plugin | feature labels Apr 24, 2025
@martinhoyer martinhoyer self-assigned this Apr 24, 2025

except RunError as error:
# Log the original error details for better debugging
logger.debug(f"RunError details: {error}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

guest.execute() will log the error. It will log the whole output of the command executed, exit code, etc.


try:
# Execute the command via shell. RunError is raised on failure.
guest.execute(Command(DEFAULT_SHELL, '-c', command_str))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Make command_str command: ShellScript(...) and you can pass it to guest.execute() directly. guest.execute() will take care of adding DEFAULT_SHELL if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin | feature step | prepare Stuff related to the prepare step
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement crb prepare for the feature plugin
2 participants