Skip to content

bertinatto/ocp-next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocp-next

Goal

The main goal of this proposal is to proactively identify and address any potential issues that may arise during the upcoming rebase process.

The desired outcome is to be able to land the rebase PR significantly early in the process, potentially aligning with the release of the upstream tag.

Proposal

Currently, the rebase work is typically spread out over a period of 1 or 2 months. However, it can potentially be distributed throughout the development cycle of Kubernetes. To achieve this, we could have an OCP branch with a continually updated Kubernetes codebase, allowing most of the work to be completed even before the rebase process begins.

The main approach involves applying our downstream patches against the upstream master branch on a daily basis. It is expected that some patches may fail to be applied multiple times during the development cycle. However, as soon as such failures occur, we will receive notifications, and the necessary fixes will be applied to the downstream patches or the upstream code.

Implementing this approach brings several benefits:

  1. The rebase process becomes less time-sensitive.
  2. We receive early signals if an upstream change breaks OCP, enabling us to address the issue promptly either in the upstream code or on our side.
  3. The rebase PR should be ready to be landed as soon as the upstream code becomes generally available (GA).

To implement this proposal, the following steps are required:

Watcher

For each OCP release, we will designate a watcher to participate in the process. Ideally, it should be the same person who will execute the final rebase.

A watcher is responsible for ensuring that the remaining steps outlined below are executed without errors.

Although some manual work is required, it should not occupy their entire daily working time.

A -next branch

For each of the dependencies listed below, a new branch called ocp-next is created with their Kubernetes dependencies updated:

  • openshift/api
  • openshift/client-go
  • openshift/library-go
  • openshift/apiserver-library-go

Initially, this can be done manually on a weekly basis. In the future, certain parts of this process can potentially be automated, requiring manual intervention only when necessary.

This process should already uncover some future issues, requiring fixes on unit tests or Makefiles for instance.

CI Job

The goal of the CI job is to detect if our downstream patches create any code conflicts when applied to the upstream code. In addition to that, it will uncover potentiall issues with dependencies and generated code.

In short, the new CI job will:

  1. Take a series of downstream patches and apply them against the upstream code.
  2. Pin the dependencies mentioned above to the HEAD of the ocp-next branch.
  3. Update the generated code.

If the job fails to execute any of the steps above, the watcher is responsible for fixing whatever is preventing the job from succeeding. Examples of fixes could include:

  1. Making a code change to the downstream patch to address a code conflict.
  2. Creating an upstream PR to correct any breaking change.
  3. Creating a new downstream patch to rectify an incorrect assumption in our operators.

A prototype of this workflow is available here.

Manual PR Submission

Assuming the CI job is successful, the watcher can submit a CI-only PR to proactively detect and address potential issues in our codebase.

Conclusion

The proposed approach involves establishing an OCP branch with an updated Kubernetes codebase, daily application of downstream patches, and the setup of a CI job to detect code conflicts and and failures in generated code. By assigning a dedicated watcher, we can ensure the proper execution of the steps and timely resolution of any issues that arise. Furthermore, the proposed plan includes regular library updates and proactive communication with the upstream community.

The implementation of this proposal aims to improve the rebase process and proactively address potential issues the are currently only detected when the rebase process starts. By early exposure of problems, we can ensure a smoother rebase experience and minimize surprises during the process. The goal is to land the rebase PR considerably early, potentially aligning with the release of the upstream GA tag. This will allow us to deliver updated features and fixes from upstream promptly to our teams.

About

Prototype for ocp-next

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages