Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to make main branch become 8.1 #4695

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Changes to make main branch become 8.1 #4695

merged 2 commits into from
Nov 9, 2023

Conversation

joperezr
Copy link
Member

@joperezr joperezr commented Nov 9, 2023

This PR is switching main to become the next 8.1 branch. Before this change, main branch used to be our 9.0 branch, but given this repo intends to ship monthly releases and wants those monthly releases the main target of development work, we decided to switch main branch to become 8.1, and to create a new dev branch which would become our 9.0 branch. In order to do all this, I followed this process:

  1. First we merged all of the changes that were made in release/8.0 branch back to main.
  2. Then we created a new dev branch from the tip of main, which will become our new 9.0 branch. Work that is 9.0-specific will go into this branch going forward. Here is a link to that branch: https://github.com/dotnet/extensions/tree/dev
  3. Make it so main branch is the new 8.1 branch by having its contents completely match what we have in release/8.0 branch as we prepared for the release. This is the work included in this PR. To do this, I basically checked out main locally, deleted all of its contents and then did copy paste of all of the contents of a fresh clone of extensions release/8.0 branch. Doing so generated the changes (diff between main and release/8.0) included in this PR. Given we started of with step 1 above, it means that the diff generated on this PR is strictly changes that were done in main which were not in release/8.0 (either intentionally by making changes into main, or issues when resolving merge conflicts). The intention is to merge this PR as is, as this is the state we want for release/8.1. We can also use the diffs generated by this PR to fix bad merges that may have happened in dev branch.
  4. Added one more commit here to do branding updates for 8.1.
  5. Once this is merged, we will want to update dependency flow and subscriptions so that they match the new branching scheme we plan to use.

cc: @RussKie @Tratcher @sebastienros @geeknoid @martintmk @xakep139

Microsoft Reviewers: Open in CodeFlow

@joperezr joperezr requested a review from RussKie November 9, 2023 05:29
@ghost ghost assigned joperezr Nov 9, 2023
Comment on lines +568 to +578
{
"taskType": "trigger",
"capabilityId": "ReleaseAnnouncement",
"subCapability": "ReleaseAnnouncement",
"version": "1.0",
"config": {
"taskName": "Release announcement",
"prReply": "The fix is included in ${pkgName} ${version}.",
"issueReply": "Fixed in ${pkgName} ${version}."
}
},
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should go, per #4688 #Resolved

Comment on lines -629 to +640
"milestoneName": "9.0-preview1"
"milestoneName": "8.0 RC1"
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct; it should be "8.1". #Resolved

@@ -1,35 +0,0 @@
name: Backport PR to branch
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this removed? #Resolved

@@ -38,7 +38,6 @@ bld/
.vs/
.build/
.vscode
!.vscode/settings.json
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this removed? #Resolved

@@ -45,8 +45,8 @@ Here are few commands that you will likely use the most:
- `build.sh --restore`: to install the required .NET SDK, .NET tools and the toolset. This is equivalent to running `./restore.sh`.
- `build.sh --build`: to build the solution<sup>1</sup>.
- `build.sh --test`: to run all unit tests in the solution<sup>1</sup>.
- `build.sh --vs <keywords>`: to generate a "filtered" solution and save it as `SDK.sln`. It also performs the "restore" operation. Keywords can be any part of the name or path of project files you want to include. For example: `./build.sh --vs Http,Fakes,AspNetCore`.<br />
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be reverted #Resolved

@@ -92,7 +92,7 @@ static partial class Log
new CallAnalyzer(),
new LegacyLoggingFixer(),
new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
new[] { OriginalSource, OriginalTarget });
new[] { OriginalSource, OriginalTarget }).ConfigureAwait(false);
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert all of these #Resolved

Assert.Fail($"Unexpected warning {actual}");
Assert.True(false, $"Unexpected warning {actual}");
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert #Resolved

Assert.Equal(1, result.Count);
#pragma warning restore xUnit2013 // Do not use equality check to check for collection size.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert all these

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are not using the new tooling though, I'm guessing these are not needed? Especially since they are just trying to silence an analyzer.

@@ -413,6 +413,6 @@ public static void Snapshot()

snap = collector.GetMeasurementSnapshot(true);
Assert.Equal(3, snap.Count);
Assert.Empty(collector.GetMeasurementSnapshot());
Assert.Equal(0, collector.GetMeasurementSnapshot().Count);
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert #Resolved

@@ -129,7 +129,6 @@ public static void CollectorContract()
[Fact]
public static void ReadOnlyListContract()
{
#pragma warning disable xUnit2013 // Do not use equality check to check for collection size.
Copy link
Member

@RussKie RussKie Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert #Resolved

@ghost ghost added the waiting-author-feedback 📭 The author of this issue needs to respond in order for us to continue investigating this issue. label Nov 9, 2023
@ghost ghost removed the waiting-author-feedback 📭 The author of this issue needs to respond in order for us to continue investigating this issue. label Nov 9, 2023
@joperezr
Copy link
Member Author

joperezr commented Nov 9, 2023

Thanks for all of the great feedback @RussKie 😃. The intent of this PR is to have it exactly match the current contents of release/8.0 (except for branding changes as we don't want builds to clash) so I'll go ahead and merge this PR as is, and will submit a follow up PR addressing all of your comments where those could be better looked at and reviewed individually. I hope that's okay with you 😃. The main rush for merging this is so that a) we don't block progress for 8.1, and b) we don't get more conflicts due to new changes coming into main branch. #Resolved

@joperezr joperezr merged commit 5e6ee76 into main Nov 9, 2023
6 checks passed
@joperezr joperezr deleted the joperezr/Main81 branch November 9, 2023 22:36
@joperezr
Copy link
Member Author

Created #4705 which addresses the feedback from this PR.

joperezr added a commit that referenced this pull request Nov 10, 2023
joperezr added a commit that referenced this pull request Nov 10, 2023
…future merges. (#4709)

* Changes to make main branch become 8.1 (#4695)

* Changes to make main branch become 8.1

* Branding changes for 8.1

* Revert "Changes to make main branch become 8.1 (#4695)"

This reverts commit 5e6ee76.
joperezr added a commit that referenced this pull request Nov 10, 2023
@RussKie
Copy link
Member

RussKie commented Nov 13, 2023

@joperezr this doesn't look right to me:

PS> darc get-default-channels --source-repo "https://github.com/dotnet/extensions"  --verbose

(931)  https://github.com/dotnet/extensions @ release/3.1 -> .NET Core 3.1 Release
(5039) https://github.com/dotnet/extensions @ release/8.0 -> .NET 8
(5038) https://github.com/dotnet/extensions @ main -> .NET 9

The dev should be publishing to .NET 9. Should the main be publishing to .NET 8?

@github-actions github-actions bot locked and limited conversation to collaborators Dec 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants