Skip to content

[Enhancement]: Proposal to improve MO's CI in the v0.6 cycle  #3100

Closed

Description

@lni

Is there an existing issue for enhancement?

  • I have checked the existing issues.

What would you like to be added ?

There are several issues I'd like to propose to be discussed & addressed
in the v0.6 cycle. It requires input from all devs.  

1. Test two most recent versions of Go. 

Two most recent versions of Go are officially supported by the Go team. 
We should make sure that at least MO can be built using either of them. 
Forcing users to upgrade to the latest version of Go won't help us
attracting more users/contributors. 

2. Add benchmarks (using Go's testing.B) for all performance critical
components/paths.

This can help us to keep an eye on performance changes over time. We can
also use it to check unwanted memory allocations in those critical paths.  

3. Have beta version of Go included in CI 

We don't want surprises - the next Go release should be able to build MO
and there shouldn't be any significant performance regression when built
with the beta version of Go. 

The later one is my major concern - if Go's internal changes are going to
cause significant performance regression in MO, we should raise the issue
during Go's beta period, otherwise the problem won't be addressed until
the next major release, that is 6 months waiting time. 

4. Enable race test in BVT

We are currently running BVT using a normal build, we should be using a 
debug build with race detector (-race) enabled. 

I'd expect new race issues to be detected in such tests. 

5. Speedup our slow tests 

We want all tests can be executed in a few minutes maximum to ensure
good turnaround. Those tests that have to be slow should be marked as
slow tests, then we can run them separately in parallel or only run
them nightly.

6. Nightly tests

The first thing I'd like to add is to run unit tests & BVT tests many times during
such nightly tests as I saw different flaky tests during the weeks. 

There will probably tons of other stuff we'd want to add to such nightly build &
tests as well. 

7. ARM64 build & tests

We can get an ARM64 vm from AWS or Aliyun and run our ARM build & tests
there. 

Why is this needed ?

No response

Additional information

No response

Activity

  1. added
    kind/tech-request
    on Jun 18, 2022
  2. added this to the v0.6.0 milestone on Jun 18, 2022
  3. sukki37 commented on Jun 23, 2022

    @sukki37
    Contributor

    I would like to suggest another spec related to the configuring file :

    1. which means there should be a specific person who is responsible for mo configuration
    2. all configuration related things should be backward compatible
  4. added
    priority/p1
    priority/p0
    and removed
    priority/p1
    on Jul 6, 2022
  5. sukki37 commented on Jul 7, 2022

    @sukki37
    Contributor

    Integrate profiling tools into CI. @jinqinghui Pls add more details.

  6. fengttt commented on Jul 7, 2022

    @fengttt
    Contributor

    #3594 done, verified that both ut and bvt pass cleanly on AWS arm64 instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/tech-requestpriority/p0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions