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

feat: Add provisionerd protobuf definitions #83

Merged
merged 5 commits into from
Jan 29, 2022
Merged

Conversation

kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented Jan 29, 2022

Provisionerd communicates with coderd over a multiplexed
WebSocket serving dRPC. This adds a roughly accurate protocol
definition.

It shares definitions with "provisioner.proto" for simple
interop with provisions!

This modifies a prior migration which is typically forbidden,
but because we're pre-production deployment I felt grouping
would be helpful to future contributors.

This adds database functions that are required for the provisioner
daemon and job queue logic.
Adds a projectparameter package to compute build-time project
values for a provided scope.

This package will be used to return which variables are being
used for a build, and can visually indicate the hierarchy to
a user.
Provisionerd communicates with coderd over a multiplexed
WebSocket serving dRPC. This adds a roughly accurate protocol
definition.

It shares definitions with "provisioner.proto" for simple
interop with provisioners!
@kylecarbs kylecarbs self-assigned this Jan 29, 2022
@codecov
Copy link

codecov bot commented Jan 29, 2022

Codecov Report

Merging #83 (2dc34f6) into main (b3c5bb3) will decrease coverage by 0.25%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #83      +/-   ##
==========================================
- Coverage   71.70%   71.45%   -0.26%     
==========================================
  Files          89       89              
  Lines        3563     3563              
  Branches       55       55              
==========================================
- Hits         2555     2546       -9     
- Misses        787      794       +7     
- Partials      221      223       +2     
Flag Coverage Δ
unittest-go-macos-latest 67.15% <ø> (ø)
unittest-go-ubuntu-latest 69.56% <ø> (-0.04%) ⬇️
unittest-go-windows-latest 67.04% <ø> (-0.07%) ⬇️
unittest-js 78.30% <ø> (ø)
Impacted Files Coverage Δ
peer/conn.go 73.47% <0.00%> (-2.75%) ⬇️

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 b3c5bb3...2dc34f6. Read the comment docs.

@kylecarbs kylecarbs changed the base branch from main to projectparameter January 29, 2022 16:04
@@ -1,3 +1,4 @@
# Generated files
peerbroker/proto/*.go linguist-generated=true
provisionerd/proto/*.go linguist-generated=true
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 adding this 👍

Comment on lines +6 to +9
bin/provisionerd:
mkdir -p bin
go build -o bin/provisionerd cmd/provisionerd/main.go
.PHONY: bin/provisionerd
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! This is a big chunk to get in towards black triangle 🎉

Base automatically changed from projectparameter to main January 29, 2022 23:45
@kylecarbs kylecarbs merged commit 2b922b1 into main Jan 29, 2022
@kylecarbs kylecarbs deleted the provisionerdproto branch January 29, 2022 23:52
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.

None yet

2 participants