Skip to content

refactor: Generalize log ownership to allow for scratch jobs #182

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 5 commits into from
Feb 7, 2022

Conversation

kylecarbs
Copy link
Member

Importing may fail when creating a project. We don't want to lose this output,
but we don't want to allow users to create a failing project.

This generalizes logs to soon enable one-off situations where a user can upload
their archive, create a project, and watch the output parse to completion.

@kylecarbs kylecarbs self-assigned this Feb 7, 2022
@codecov
Copy link

codecov bot commented Feb 7, 2022

Codecov Report

Merging #182 (a706956) into main (bde732f) will increase coverage by 0.28%.
The diff coverage is 73.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #182      +/-   ##
==========================================
+ Coverage   67.82%   68.11%   +0.28%     
==========================================
  Files         107      108       +1     
  Lines        5650     5632      -18     
  Branches       68       68              
==========================================
+ Hits         3832     3836       +4     
+ Misses       1461     1435      -26     
- Partials      357      361       +4     
Flag Coverage Δ
unittest-go-macos-latest 65.94% <73.25%> (+0.49%) ⬆️
unittest-go-ubuntu-latest 66.89% <72.67%> (-0.06%) ⬇️
unittest-go-windows-latest 65.15% <73.25%> (+0.10%) ⬆️
unittest-js 64.66% <ø> (ø)
Impacted Files Coverage Δ
coderd/projectversion.go 66.66% <ø> (+0.59%) ⬆️
coderd/workspacehistory.go 61.37% <ø> (-0.21%) ⬇️
codersdk/workspaces.go 73.73% <ø> (-0.12%) ⬇️
coderd/provisionerdaemons.go 50.88% <56.41%> (+2.57%) ⬆️
codersdk/provisioners.go 61.72% <70.83%> (+1.12%) ⬆️
coderd/provisionerjoblogs.go 51.79% <78.12%> (ø)
httpmw/provisionerjobparam.go 78.37% <78.37%> (ø)
coderd/coderd.go 93.75% <100.00%> (+0.32%) ⬆️
coderd/provisioners.go 85.36% <100.00%> (+1.15%) ⬆️
provisionerd/provisionerd.go 68.42% <100.00%> (-0.23%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bde732f...a706956. Read the comment docs.

Importing may fail when creating a project. We don't want to lose this output,
but we don't want to allow users to create a failing project.

This generalizes logs to soon enable one-off situations where a user can upload
their archive, create a project, and watch the output parse to completion.
Comment on lines +247 to +248
// This will be replaced once the project import has been refactored.
ProjectName: "placeholder",
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for explaining this 😄

Copy link
Contributor

@bryphe-coder bryphe-coder left a comment

Choose a reason for hiding this comment

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

Just added some comments around the File struct we discussed on Slack - otherwise looks good to me 👍

@kylecarbs kylecarbs merged commit ed705f6 into main Feb 7, 2022
@kylecarbs kylecarbs deleted the generalizelogs branch February 7, 2022 21:32
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