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(agent/agentcontainers): reset error at start of rebuild#18686

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

Merged
DanielleMaywood merged 1 commit intomainfromdanielle/reset-error-on-rebuild
Jul 1, 2025

Conversation

DanielleMaywood
Copy link
Contributor

This PR resets the error when a rebuild is initiated.

Copy link
Contributor

@CopilotCopilotAI 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 ensures that any previous error on a devcontainer is cleared when a rebuild is started and updates test fakes to support deferred error injection via functions.

  • Clear theError field at the start ofhandleDevcontainerRecreate
  • ChangefakeDevcontainerCLI.upErrC to carryfunc() error instead of rawerror
  • Update tests to send error-producing functions and verify the cleared error

Reviewed Changes

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

FileDescription
agent/agentcontainers/api.goResetdc.Error to an empty string before recreate
agent/agentcontainers/api_test.goSwitchupErrC channel tofunc() error and adjust tests
Comments suppressed due to low confidence (2)

agent/agentcontainers/api_test.go:72

  • Update the comment to reflect thatupErrC receivesfunc() error values, e.g. "If set, send a function that returns the desired error".
upErrC         chan func() error // If set, send to return err, close to return upErr.

agent/agentcontainers/api_test.go:72

  • [nitpick] Consider renamingupErrC toupErrFnC (and similarlyexecErrC toexecErrFnC) to clearly indicate that the channel carries functions rather than raw errors.
upErrC         chan func() error // If set, send to return err, close to return upErr.

@DanielleMaywoodDanielleMaywood marked this pull request as ready for reviewJuly 1, 2025 08:48
Copy link
Member

@mafredrimafredri left a comment

Choose a reason for hiding this comment

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

Nice! 👍🏻

@DanielleMaywoodDanielleMaywood merged commit7e372f7 intomainJul 1, 2025
33 checks passed
@DanielleMaywoodDanielleMaywood deleted the danielle/reset-error-on-rebuild branchJuly 1, 2025 09:57
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJul 1, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

Copilot code reviewCopilotCopilot left review comments

@mafredrimafredrimafredri approved these changes

Assignees

@DanielleMaywoodDanielleMaywood

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@DanielleMaywood@mafredri

[8]ページ先頭

©2009-2025 Movatter.jp