Skip to content
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

Orbit software installer flow #18797

Merged
merged 56 commits into from
May 14, 2024

Conversation

dantecatalfamo
Copy link
Member

@dantecatalfamo dantecatalfamo commented May 7, 2024

Checklist for submitter

If some of the following don't apply, delete the relevant line.

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.
  • Added/updated tests
  • Manual QA for all new/changed functionality
    • For Orbit and Fleet Desktop changes:
      • Manual QA must be performed in the three main OSs, macOS, Windows and Linux.
      • Auto-update manual QA, from released version of component to new version (see tools/tuf/test).

@dantecatalfamo dantecatalfamo changed the base branch from main to feat-software-installers May 7, 2024 15:35
// result because the back-end considers any non-empty
// string as a success.
// return false, fmt.Sprintf("osqueryd returned error (%d): %s", res.Status.Code, res.Status.Message), fmt.Errorf("non-zero query status: %d \"%s\"", res.Status.Code, res.Status.Message)
return false, "", fmt.Errorf("non-zero query status: %d \"%s\"", res.Status.Code, res.Status.Message)
Copy link
Member

Choose a reason for hiding this comment

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

I wan to call out this note, we probably need a status column in the database, which also implies modifying some of the queries.

With the cleanup done by Martin yesterday I don't think it'll be too hard, but I'm not sure if we have time to do it in this release.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah that wouldn't be too hard (still two places because there's the query-based computed status and one based on the fields of the Go struct), although for now maybe we can get away with returning empty string as you did here and just log the error client-side?

Copy link
Member

Choose a reason for hiding this comment

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

sounds good, this error will bubble up to a log 👍

I'll note this somewhere (an issue?)

Copy link
Member

Choose a reason for hiding this comment

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

Given that we'll build on top of this for self-service, I wonder if we could add some "improvements/refinements" ticket to it and add this there?

ee/server/service/software_installers.go Outdated Show resolved Hide resolved
orbit/cmd/orbit/orbit.go Show resolved Hide resolved
orbit/pkg/installer/installer.go Outdated Show resolved Hide resolved
orbit/pkg/installer/installer.go Outdated Show resolved Hide resolved
orbit/pkg/installer/installer.go Show resolved Hide resolved
orbit/pkg/installer/installer.go Outdated Show resolved Hide resolved
orbit/pkg/installer/installer.go Outdated Show resolved Hide resolved
orbit/pkg/installer/installer.go Outdated Show resolved Hide resolved
}

return payload, nil
}
Copy link
Member

Choose a reason for hiding this comment

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

orbit/pkg/installer/installer.go Outdated Show resolved Hide resolved
@roperzh roperzh merged commit 71c0026 into feat-software-installers May 14, 2024
21 checks passed
@roperzh roperzh deleted the orbit-software-installer-flow branch May 14, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants