Skip to content

Fix misleading error/debug messages in run-container-step.ts#370

Merged
nikola-jokic merged 3 commits into
mainfrom
copilot/fix-comments-in-review-thread
Jun 5, 2026
Merged

Fix misleading error/debug messages in run-container-step.ts#370
nikola-jokic merged 3 commits into
mainfrom
copilot/fix-comments-in-review-thread

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 4, 2026

Error and debug messages in runContainerStep referenced "script step" and "createJob" terminology, causing confusion when diagnosing container step failures.

Changes

  • packages/k8s/src/hooks/run-container-step.ts
    • Debug message: createJob failedcreateContainerStepPod failed
    • Thrown error (pod creation catch): failed to run script stepfailed to run container step
    • Thrown error (exec catch): failed to run script stepfailed to run container step

- Rename debug message from 'createJob failed' to 'createContainerStepPod failed'
- Update thrown error messages from 'failed to run script step' to
  'failed to run container step' in both catch blocks
Copilot AI changed the title [WIP] Fix code based on review comments Fix misleading error/debug messages in run-container-step.ts Jun 4, 2026
Copilot AI requested a review from nikola-jokic June 4, 2026 21:34
@nikola-jokic nikola-jokic marked this pull request as ready for review June 5, 2026 00:14
Copilot AI review requested due to automatic review settings June 5, 2026 00:14
Copy link
Copy Markdown
Contributor

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 updates logging and thrown error messages in runContainerStep to use consistent “container step” terminology, reducing confusion when debugging container-step failures in the Kubernetes hook.

Changes:

  • Update the pod-creation debug message to reference createContainerStepPod rather than createJob.
  • Update thrown errors in the pod-creation and exec error paths to say “failed to run container step” instead of “script step”.

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

@nikola-jokic
Copy link
Copy Markdown
Collaborator

@copilot fix merge conflict

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Jun 5, 2026

@copilot fix merge conflict

Resolved in commit 00e14d6 by merging origin/main and fixing the conflict in packages/k8s/src/hooks/run-container-step.ts while preserving the container-step message updates.

Copilot AI requested a review from nikola-jokic June 5, 2026 00:23
@nikola-jokic nikola-jokic merged commit 721a06a into main Jun 5, 2026
5 checks passed
@nikola-jokic nikola-jokic deleted the copilot/fix-comments-in-review-thread branch June 5, 2026 22:13
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.

4 participants