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

[[--WIP--]] bump to mesos 1.5 protos, reservation refinements, et al. #335

Closed
wants to merge 16 commits into from

Conversation

jdef
Copy link
Contributor

@jdef jdef commented Nov 6, 2017

apache/mesos@1.4.0...a94e3cd

  • api/v1/lib/agent/agent.proto
  • api/v1/lib/allocator/allocator.proto
  • api/v1/lib/executor/executor.proto
  • api/v1/lib/maintenance/maintenance.proto
  • api/v1/lib/master/master.proto
  • api/v1/lib/mesos.proto
  • api/v1/lib/quota/quota.proto
  • api/v1/lib/scheduler/scheduler.proto

non-proto changes:

  • operations: new helpers for additional offer operations
  • operations: need test cases for new offer operations
  • scheduler/calls: new helpers for ack offer op update AND reconcile offer op
  • extras/scheduler: rule that acks offer op updates
  • master: helpers for teardown and mark-agent-gone
  • master: check for needed changes related to subscription heartbeats
  • double-check diskinfo related checks in resources.go
  • double-check reservation related checks in resources.go
  • additional test cases for new disk validation
  • additional test cases for new reservation validation
  • additional test cases for new shared resource validation
  • operations: support reservation refinements
  • example frameworks: use allocation-info, it seems no longer optional
    • this should be fixed in latest Mesos, check that it's working as expected
  • review latest upstream conversion code: apache/mesos@e55309a

deferred:

@coveralls
Copy link

coveralls commented Nov 6, 2017

Coverage Status

Coverage remained the same at 58.39% when pulling 9b26f4a on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 58.39% when pulling 05e74ad on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 58.39% when pulling 05e74ad on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

coveralls commented Nov 7, 2017

Coverage Status

Coverage remained the same at 58.39% when pulling 05e74ad on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

coveralls commented Nov 7, 2017

Coverage Status

Coverage increased (+0.2%) to 58.545% when pulling 0b5ec8d on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

coveralls commented Nov 7, 2017

Coverage Status

Coverage decreased (-1.4%) to 57.038% when pulling 370a5c3 on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

coveralls commented Nov 8, 2017

Coverage Status

Coverage decreased (-0.5%) to 57.932% when pulling 6f90b7d on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

if aa, bb := a.GetMetadata(), b.GetMetadata(); (aa == nil) != (bb == nil) {
return false
} else if !reflect.DeepEqual(aa.GetLabels(), bb.GetLabels()) {
// TODO(jdef) can we do better than DeepEqual here?
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: consider something better here


// IsDisk returns true if this is a disk resource of the specified type.
func (left *Resource) IsDisk(t Resource_DiskInfo_Source_Type) bool {
if d := left.Disk; d != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should this bomb if left is nil?


// HasResourceProvider returns true if the given Resource object is provided by a resource provider.
func (left *Resource) HasResourceProvider() bool {
return left.ProviderID != nil
Copy link
Contributor Author

Choose a reason for hiding this comment

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

should this bomb if left is nil?

)

var (
opNoop = func(_ *mesos.Offer_Operation, _ mesos.Resources) (_ mesos.Resources, _ error) { return }
opError = func(t mesos.Offer_Operation_Type) offerResourceOp {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nit: rename opUnsupported

@jdef jdef force-pushed the jdef_bump_mesos_protos_a94e3cd0fc612 branch from 17e1924 to 8ef9d96 Compare November 8, 2017 17:54
@coveralls
Copy link

coveralls commented Nov 8, 2017

Coverage Status

Coverage decreased (-1.5%) to 56.929% when pulling 8ef9d96 on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

coveralls commented Nov 8, 2017

Coverage Status

Coverage decreased (-1.5%) to 56.929% when pulling 8ef9d96 on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

coveralls commented Nov 9, 2017

Coverage Status

Coverage decreased (-0.2%) to 58.141% when pulling 75369e7 on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

coveralls commented Nov 9, 2017

Coverage Status

Coverage decreased (-0.2%) to 58.161% when pulling feef298 on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@jdef jdef changed the title [[--WIP--]] bump to mesos 1.5 protos [[--WIP--]] bump to mesos 1.5 protos, reservation refinements, et al. Nov 9, 2017
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 58.134% when pulling 2e0ed09 on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.3%) to 58.134% when pulling 2e0ed09 on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@coveralls
Copy link

coveralls commented Nov 9, 2017

Coverage Status

Coverage decreased (-0.3%) to 58.134% when pulling 2e0ed09 on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@jdef
Copy link
Contributor Author

jdef commented Nov 15, 2017

https://issues.apache.org/jira/browse/MESOS-8237 (mesos allocation info/non-multi-role capable frameworks/libraries compat)

@adam-mesos
Copy link

@jdef https://issues.apache.org/jira/browse/MESOS-8237 was merged into master 5 days ago, and that change will soon be included in dcos/dcos master with dcos/dcos#2165

@jdef
Copy link
Contributor Author

jdef commented Dec 7, 2017 via email

@coveralls
Copy link

coveralls commented Dec 11, 2017

Coverage Status

Coverage decreased (-0.3%) to 58.134% when pulling 0060c8e on jdef:jdef_bump_mesos_protos_a94e3cd0fc612 into c488712 on mesos:master.

@jdef
Copy link
Contributor Author

jdef commented Mar 12, 2018

superseded by #344

@jdef jdef closed this Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants