Skip to content

Latest commit

 

History

History
95 lines (69 loc) · 4.61 KB

pull_requests.md

File metadata and controls

95 lines (69 loc) · 4.61 KB

Pull Request process

Pull Requests in the openshift-ansible project follow a Continuous Integration process that is similar to the process observed in other repositories such as origin.

Whenever a Pull Request is opened, some automated test jobs must be successfully run before the PR can be merged.

Some of these jobs are automatically triggered, e.g., Travis and Coveralls. Other jobs need to be manually triggered by a member of the Team OpenShift Ansible Contributors.

Triggering tests

We have two different Jenkins infrastructures, and, while that holds true, there are two commands that trigger a different set of test jobs. We are working on simplifying the workflow towards a single infrastructure in the future.

  • Test jobs on the older infrastructure

    Members of the OpenShift organization can trigger the set of test jobs in the older infrastructure by writing a comment with the exact text aos-ci-test and nothing else.

    The Jenkins host is not publicly accessible. Test results are posted to S3 buckets when complete, and links are available both at the bottom of the Pull Request page and as comments posted by @openshift-bot.

  • Test jobs on the newer infrastructure

    Members of the Team OpenShift Ansible Contributors can trigger the set of test jobs in the newer infrastructure by writing a comment containing [test] anywhere in the comment body.

    The Jenkins host is publicly accessible. Like for the older infrastructure, the result of each job is also posted to the Pull Request as comments and summarized at the bottom of the Pull Request page.

Fedora tests

There are a set of tests that run on Fedora infrastructure. They are started automatically with every pull request.

They are implemented using the redhat-ci framework.

To re-run tests, write a comment containing bot, retest this please.

Triggering merge

After a PR is properly reviewed and a set of required jobs reported successfully, it can be tagged for merge by a member of the Team OpenShift Ansible Contributors by writing a comment containing [merge] anywhere in the comment body.

Tagging a Pull Request for merge puts it in an automated merge queue. The @openshift-bot monitors the queue and merges PRs that pass all of the required tests.

Manual merges

The normal process described above should be followed: aos-ci-test and [test] / [merge].

In exceptional cases, such as when known problems with the merge queue prevent PRs from being merged, a PR may be manually merged if all of these conditions are true:

  • Travis job must have passed (as enforced by GitHub)
  • Must have passed aos-ci-test (as enforced by GitHub)
  • Must have a positive review (as enforced by GitHub)
  • Must have failed the [merge] queue with a reported flake at least twice
  • Must have issues labeled kind/test-flake in Origin linked in comments for the failures
  • Content must not have changed since all of the above conditions have been met (no rebases, no new commits)

This exception is temporary and should be completely removed in the future once the merge queue has become more stable.

Only members of the Team OpenShift Ansible Committers can perform manual merges.

Useful links