Skip to content

feat(agent): send devcontainer CLI logs during recreate #17845

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

Merged
merged 6 commits into from
May 15, 2025

Conversation

mafredri
Copy link
Member

We need a way to surface what's happening to the user, since autostart
logs here, it's natural we do so during re-create as well.

Updates #16424

@mafredri mafredri self-assigned this May 15, 2025
We need a way to surface what's happening to the user, since autostart
logs here, it's natural we do so during re-create as well.

Updates #16424
@mafredri mafredri force-pushed the mafredri/feat-agent-devcontainercli-logs branch from e8e84e7 to f144a03 Compare May 15, 2025 08:32
mafredri added a commit that referenced this pull request May 15, 2025
…tart script

This fixes startup issues when the user shell is set to Fish.

Refs: #17845
Comment on lines +108 to +113
for _, script := range scripts {
// The devcontainer scripts match the devcontainer ID for
// identification.
if script.ID == devcontainer.ID {
api.devcontainerLogSourceIDs[devcontainer.WorkspaceFolder] = script.LogSourceID
break
Copy link
Member

Choose a reason for hiding this comment

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

Should we warn if there are scripts that do not match up with any devcontainer?

Copy link
Member Author

Choose a reason for hiding this comment

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

I suppose it would be an error rather than warn, this is an expectation coming from the provisioner currently.

Added.

mafredri added a commit that referenced this pull request May 15, 2025
…tart (#17847)

This fixes startup issues when the user shell is set to Fish.

Refs: #17845
@mafredri mafredri force-pushed the mafredri/feat-agent-devcontainercli-logs branch from 08509b4 to d9cd988 Compare May 15, 2025 11:54
@mafredri mafredri changed the title feat(agent): send devcontainer CLI logs to coderd during recreate feat(agent): send devcontainer CLI logs during recreate May 15, 2025
@mafredri mafredri merged commit 3de0003 into main May 15, 2025
36 checks passed
@mafredri mafredri deleted the mafredri/feat-agent-devcontainercli-logs branch May 15, 2025 13:06
@github-actions github-actions bot locked and limited conversation to collaborators May 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants