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

Removed SingleProcess field from EnvelopeInfo. #521

Merged
merged 1 commit into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/chat/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/collatz/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/factors/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/fakes/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/hello/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/helloworld/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/reverser/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/benchmarks/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion internal/envelope/conn/conn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ func makeConnections(t *testing.T, handler conn.EnvelopeHandler) (*conn.Envelope
App: "app",
DeploymentId: uuid.New().String(),
Id: uuid.New().String(),
SingleProcess: true,
SingleMachine: true,
}

Expand Down
2 changes: 1 addition & 1 deletion internal/tool/generate/example/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/tool/generate/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ func TestExampleVersion(t *testing.T) {
got := fmt.Sprintf("%x", h.Sum(nil))

// If weaver_gen.go has changed, the codegen version may need updating.
const want = "1773a0612f56b8043e47def9455de5ab2fe7ab4ba797dda6f620ce34bc23a3b9"
const want = "8caba39f8bc61d6b404fedb0b09eaaa8b2811331dc43cfb17fbe604086279305"
if got != want {
t.Fatalf(`Unexpected SHA-256 hash of examples/weaver_gen.go: got %s, want %s. If this change is meaningful, REMEMBER TO UPDATE THE CODEGEN VERSION in runtime/version/version.go.`, got, want)
}
Expand Down
1 change: 0 additions & 1 deletion internal/tool/multi/deployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@ func (d *deployer) startColocationGroup(g *group) error {
DeploymentId: d.deploymentId,
Id: uuid.New().String(),
Sections: d.config.App.Sections,
SingleProcess: false,
SingleMachine: true,
RunMain: g.started[runtime.Main],
Mtls: d.config.Mtls,
Expand Down
11 changes: 5 additions & 6 deletions internal/tool/ssh/impl/babysitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,11 @@ func RunBabysitter(ctx context.Context) error {

// Start the envelope.
wlet := &protos.EnvelopeInfo{
App: info.Deployment.App.Name,
DeploymentId: info.Deployment.Id,
Id: id,
Sections: info.Deployment.App.Sections,
SingleProcess: info.Deployment.SingleProcess,
RunMain: info.RunMain,
App: info.Deployment.App.Name,
DeploymentId: info.Deployment.Id,
Id: id,
Sections: info.Deployment.App.Sections,
RunMain: info.RunMain,
}
e, err := envelope.NewEnvelope(ctx, wlet, info.Deployment.App)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion runtime/bin/bin.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func init() {
// the values of version.ModuleVersion and version.DeployerVersion. If the
// string is not a constant---if we try to use fmt.Sprintf, for
// example---it will not be embedded in a Service Weaver binary.
versionData = "⟦wEaVeRvErSiOn:module=v0.19.0;deployer=v0.18.0⟧"
versionData = "⟦wEaVeRvErSiOn:module=v0.20.0;deployer=v0.20.0⟧"
}

// rodata returns the read-only data section of the provided binary.
Expand Down
2 changes: 1 addition & 1 deletion runtime/bin/testprogram/weaver_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion runtime/envelope/envelope_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ func wlet(binary string, args ...string) (*protos.EnvelopeInfo, *protos.AppConfi
App: "app",
DeploymentId: uuid.New().String(),
Id: uuid.New().String(),
SingleProcess: true,
SingleMachine: true,
}
config := &protos.AppConfig{Binary: binary, Args: args}
Expand Down
Loading