Skip to content

Conversation

@romainneutron
Copy link
Contributor

@romainneutron romainneutron commented Oct 15, 2025

Fixes OBS-1229

@pjcdawkins pjcdawkins requested a review from Copilot October 31, 2025 17:00
Copy link

Copilot AI 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

This PR modifies the activity result display logic to show activities as "failing" when any command within the activity has a non-zero exit code, regardless of the overall activity result status.

  • Changed formatResult method signature to accept an Activity object instead of just the result string
  • Added logic to check command exit codes and override the result display to show failure when any command fails
  • Updated all callers to pass the full Activity object to the modified method

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/Service/ActivityMonitor.php Modified formatResult method to check command exit codes and override result display
src/Command/Integration/Activity/IntegrationActivityListCommand.php Updated to pass Activity object to formatResult method
src/Command/Activity/ActivityListCommand.php Updated to pass Activity object to formatResult method
src/Command/Activity/ActivityGetCommand.php Added conditional logic to use formatResult for result property

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@romainneutron romainneutron force-pushed the cli-activities branch 2 times, most recently from 3fddde1 to 7c3ef02 Compare November 4, 2025 10:59
@pjcdawkins pjcdawkins changed the title Display failing activities as failing in CLI Display activities with non-zero exit codes as failed Nov 4, 2025
@pjcdawkins pjcdawkins merged commit 0c12e0c into platformsh:5.x Nov 5, 2025
3 checks passed
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