summaryrefslogtreecommitdiff
path: root/Documentation/project-docs
diff options
context:
space:
mode:
authorDan Moseley <danmose@microsoft.com>2018-11-27 13:24:57 -0800
committerGitHub <noreply@github.com>2018-11-27 13:24:57 -0800
commitc98155df54da9247e598068cc956dfe9aede610e (patch)
tree91caf12837145996e8217844dcdd6831fd2a89f3 /Documentation/project-docs
parent3766ae3f90fa8cb9bc5ae28370b45053ce85248b (diff)
downloadcoreclr-c98155df54da9247e598068cc956dfe9aede610e.tar.gz
coreclr-c98155df54da9247e598068cc956dfe9aede610e.tar.bz2
coreclr-c98155df54da9247e598068cc956dfe9aede610e.zip
Update changing-corelib.md (#21220)
* Update changing-corelib.md @jkotas * Update changing-corelib.md
Diffstat (limited to 'Documentation/project-docs')
-rw-r--r--Documentation/project-docs/changing-corelib.md31
1 files changed, 18 insertions, 13 deletions
diff --git a/Documentation/project-docs/changing-corelib.md b/Documentation/project-docs/changing-corelib.md
index 8ca9f98095..678f57c890 100644
--- a/Documentation/project-docs/changing-corelib.md
+++ b/Documentation/project-docs/changing-corelib.md
@@ -1,22 +1,27 @@
Changing or adding new public APIs to System.Private.CoreLib
============================================================
-Many of the CoreFX libraries type-forward their public APIs to the implementations in System.Private.CoreLib.
-- The CoreFX build uses System.Private.CoreLib via Microsoft.TargetingPack.Private.CoreCLR Nuget package.
-- Some of the CoreFX libraries are not built in the CoreFX repository. For example, System.Runtime.Loader.dll is purely a facade and type-forwards everything to System.Private.CoreLib. These libraries are built and published through a separate process.
-- Hence, when adding a new public API to System.Private.CoreLib or changing the behavior of the existing public APIs in System.Private.CoreLib, changes must be staged to ensure that new prerequisites are published before they are used.
+### Context
+Many of the CoreFX libraries type-forward their public APIs to the implementations in `System.Private.CoreLib`.
+- The CoreFX build uses `System.Private.CoreLib` via a NuGet package named `Microsoft.TargetingPack.Private.CoreCLR`
+- Some of the CoreFX libraries are not built in the CoreFX repository. For example, `System.Runtime.Loader.dll` is purely a facade and type-forwards everything to `System.Private.CoreLib`. These libraries are built and published through a separate process.
+- Hence, when adding a new public API to `System.Private.CoreLib` or changing the behavior of the existing public APIs in `System.Private.CoreLib`, you have to follow the sequence below to stage your changes so that new prerequisites are published before they are used.
-**Staging the changes**
+## How to stage your change
-Make the changes in both CoreCLR and CoreFX
-- System.Private.CoreLib implementation changes should should be made in CoreCLR repo
+### (1) Make the changes in both CoreCLR and CoreFX
+- `System.Private.CoreLib` implementation changes should be made in CoreCLR repo
- Test and public API contract changes should be made in CoreFX repo
- [Build and test](https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/developer-guide.md#testing-with-private-coreclr-bits) both changes together
-Submit PR to both CoreCLR and CoreFX
-- Link the two PRs together via comment in PR description
+### (2) Submit PR to both CoreCLR and CoreFX
+- Link the two PRs together via comment in PR description, and link both to the issue itself.
- Both PRs will reviewed together by the project maintainers
-- CoreFX tests run on CoreCLR PRs are using old published build. You may need to disable the outdated tests in https://github.com/dotnet/coreclr/blob/master/tests/CoreFX/CoreFX.issues.json to make your PR green.
-- CoreCLR PR will be merged first
-- If your change is under [System.Private.CoreLib Shared Sources](https://github.com/dotnet/coreclr/tree/master/src/System.Private.CoreLib/shared), it will get mirrored to other repos that are reusing the CoreLib sources.
-- Once updated CoreCLR is consumed by CoreFX repo, CoreFX PR will be merged second.
+- CoreCLR runs CoreFX tests but they are behind CoreFX. You may need to disable the outdated tests in https://github.com/dotnet/coreclr/blob/master/tests/CoreFX/CoreFX.issues.json to make your PR green.
+
+### (3) What happens next
+- We will merge the CoreCLR PR first
+- Note: if your change is under [System.Private.CoreLib Shared Sources](https://github.com/dotnet/coreclr/tree/master/src/System.Private.CoreLib/shared), it will get mirrored to other repos that are reusing the CoreLib sources. This is a one-way mirror of sources for code reuse purposes: it does not bring your new API to CoreFX so it is not relevant to this staging process.
+- The CoreCLR changes will be consumed by CoreFX via an automatically created PR that updates a hash in the CoreFX repo. These PR's [look like this](https://github.com/dotnet/corefx/pulls?utf8=%E2%9C%93&q=is%3Apr+sort%3Aupdated-desc+coreclr++base%3Amaster+author%3Adotnet-maestro-bot+)
+- Depending on the nature of the change, we may cherry-pick your CoreFX PR into this automatically created PR; or, we may merge your PR after we merge the automatically created PR.
+- You are done! Thank you for contributing.