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

engine: updateMode=synclet only if explicitly set with flag [8240] #3563

Merged
merged 5 commits into from Jul 8, 2020

Conversation

maiamcc
Copy link
Contributor

@maiamcc maiamcc commented Jul 7, 2020

Hello @landism, @nicks,

Please review the following commits I made in branch maiamcc/rm-default-synclet:

dee0445 (2020-07-07 18:16:45 -0400)
fix other tests, rm redundant ones

da404d3 (2020-07-07 17:14:54 -0400)
fix liveupdate tests that expected synclet

12a71c2 (2020-07-07 12:19:47 -0400)
only use synclet with explicit flag (needs tests)

Code review reminders, by giving a LGTM you attest that:

  • Commits are adequately tested
  • Code is easy to understand and conforms to style guides
  • Incomplete code is marked with TODOs
  • Code is suitably instrumented with logging and metrics

@maiamcc maiamcc requested review from landism and nicks July 7, 2020 22:17
}

func TestContainerBuildLocal(t *testing.T) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Deleted a bunch of tests that are covered more concisely in build_and_deployer_live_update_test.go

f.assertContainerRestarts(1)
}

func TestReturnLastUnexpectedError(t *testing.T) {
f := newBDFixture(t, k8s.EnvGKE, container.RuntimeDocker)
f := newBDFixture(t, k8s.EnvDockerDesktop, container.RuntimeDocker)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should probably fix the SanchoLiveUpdate manifest (i.e. the one we use by default in most of these tests) to NOT have a restart_container step in it, since that's been deprecated on the user side, and having that step in the manifest means we can't test it against UpdateModeKubectlExec (need to use a different update mode or a different test manifest). Tracked that work here but for now it's easier to just change the k8s cluster so we get an update mode that allows restart_container() -- we'll deal with the rest if/when we actually deprecate that codepath.

Copy link
Member

@nicks nicks left a comment

Choose a reason for hiding this comment

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

"flgag" made me giggle

@maiamcc maiamcc changed the title engine: updateMode=synclet only if explicitly set with flgag [8240] engine: updateMode=synclet only if explicitly set with flag [8240] Jul 8, 2020
@maiamcc maiamcc merged commit 62c5388 into master Jul 8, 2020
@maiamcc maiamcc deleted the maiamcc/rm-default-synclet branch July 8, 2020 15:36
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