Paul Beesley | 236d246 | 2019-03-05 17:19:37 +0000 | [diff] [blame] | 1 | Frequently-Asked Questions (FAQ) |
| 2 | ================================ |
| 3 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 4 | How do I update my changes? |
| 5 | --------------------------- |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 6 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 7 | Often it is necessary to update your patch set before it is merged. Refer to the |
| 8 | `Gerrit Upload Patch Set documentation`_ on how to do so. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 9 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 10 | If you need to modify an existing patch set with multiple commits, refer to the |
| 11 | `Gerrit Replace Changes documentation`_. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 12 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 13 | How long will my changes take to merge into ``integration``? |
| 14 | ------------------------------------------------------------ |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 15 | |
| 16 | This can vary a lot, depending on: |
| 17 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 18 | * How important the patch set is considered by the TF maintainers. Where |
| 19 | possible, you should indicate the required timescales for merging the patch |
| 20 | set and the impact of any delay. Feel free to add a comment to your patch set |
| 21 | to get an estimate of when it will be merged. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 22 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 23 | * The quality of the patch set. Patches are likely to be merged more quickly if |
| 24 | they follow the coding guidelines, have already had some code review, and have |
| 25 | been appropriately tested. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 26 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 27 | * The impact of the patch set. For example, a patch that changes a key generic |
| 28 | API is likely to receive much greater scrutiny than a local change to a |
| 29 | specific platform port. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 30 | |
| 31 | * How much opportunity for external review is required. For example, the TF |
| 32 | maintainers may not wait for external review comments to merge trivial |
| 33 | bug-fixes but may wait up to a week to merge major changes, or ones requiring |
| 34 | feedback from specific parties. |
| 35 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 36 | * How many other patch sets are waiting to be integrated and the risk of |
| 37 | conflict between the topics. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 38 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 39 | * If there is a code freeze in place in preparation for the release. Please |
| 40 | refer the `release information`_ for more details. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 41 | |
| 42 | * The workload of the TF maintainers. |
| 43 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 44 | How long will it take for my changes to go from ``integration`` to ``master``? |
| 45 | ------------------------------------------------------------------------------ |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 46 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 47 | This depends on how many concurrent patches are being processed at the same |
| 48 | time. In simple cases where all potential regressions have already been tested, |
| 49 | the delay will be less than 1 day. If the TF maintainers are trying to merge |
| 50 | several things over the course of a few days, it might take up to a week. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 51 | Typically, it will be 1-2 days. |
| 52 | |
| 53 | The worst case is if the TF maintainers are trying to make a release while also |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 54 | receiving patches that will not be merged into the release. In this case, the |
| 55 | patches will be merged onto ``integration``, which will temporarily diverge from |
| 56 | the release branch. The ``integration`` branch will be rebased onto ``master`` |
| 57 | after the release, and then ``master`` will be fast-forwarded to ``integration`` |
| 58 | 1-2 days later. This whole process could take up 4 weeks. Please refer the |
| 59 | `release information`_ for code freeze dates. The TF maintainers will inform the |
| 60 | patch owner if this is going to happen. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 61 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 62 | It is OK to create a patch based on commits that are only available in |
| 63 | ``integration`` or another patch set, rather than ``master``. There is a risk |
| 64 | that the dependency commits will change (for example due to patch set rework or |
| 65 | integration problems). If this happens, the dependent patch will need reworking. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 66 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 67 | What are these strange comments in my changes? |
| 68 | ---------------------------------------------- |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 69 | |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 70 | All the comments from ``ci-bot-user`` are associated with Continuous Integration |
| 71 | infrastructure. The links published on the comment are not currently accessible, |
| 72 | but would be after the CI has been transitioned to `trustedfirmware.org`_. |
| 73 | Please refer to https://github.com/ARM-software/tf-issues/issues/681 for more |
| 74 | details on the timelines. |
Joel Hutton | 9e60563 | 2019-02-25 15:18:56 +0000 | [diff] [blame] | 75 | |
Joel Hutton | 0f79fb1 | 2019-02-26 16:23:54 +0000 | [diff] [blame] | 76 | .. _release information: release-information.rst |
Louis Mayencourt | 72ef3d4 | 2019-03-22 11:47:22 +0000 | [diff] [blame] | 77 | .. _Gerrit Upload Patch Set documentation: https://review.trustedfirmware.org/Documentation/intro-user.html#upload-patch-set |
| 78 | .. _Gerrit Replace Changes documentation: https://review.trustedfirmware.org/Documentation/user-upload.html#push_replace |
| 79 | .. _trustedfirmware.org: https://www.trustedfirmware.org/ |