-
Notifications
You must be signed in to change notification settings - Fork 638
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
Test review Core I-J #926
Test review Core I-J #926
Conversation
…g styling in tests
…itioned-out code in TestIndexWriterReader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR.
There are a few requested changes as well as some other feedback.
It looks like there were a couple of omissions.
I am still torn on whether to just hide the |
- add LUCENENET to C#-specific comment - add back unused using for Assert as safeguard with comment - use invariant culture for number conversion in TestIndexWriterExceptions
… for null as NONE
I setup a new repository with our Azure DevOps templates and discovered that there are some breaking changes. Breaking Change 1There is a breaking change introduced by Microsoft in the .NET 8 SDK, which appends the Git commit hash to the More info about it is here: https://learn.microsoft.com/en-us/dotnet/core/compatibility/sdk/8.0/source-link. I have tested the solution and it seems to meet our needs. However, the first build after I changed it caused the NuGet packages to be built without any DLLs in them, but the second build succeeded. Not sure whether that was a fluke or a problem. We can put the fix in the default <PropertyGroup Label="Versioning">
<GenerateAssemblyVersionInfo>false</GenerateAssemblyVersionInfo>
</PropertyGroup> Breaking Change 2The default for a new pipeline in Azure DevOps is to create a shallow clone. Previously, it would create a deep clone by default. This doesn't break anything on Lucene.Net, but all of the other repositories that we own use NerdBank.GitVersioning, and this is a problem for generating the correct version number. There is an issue about it here: dotnet/Nerdbank.GitVersioning#837 and the fix is here: https://github.com/dotnet/Nerdbank.GitVersioning/blob/main/doc/cloudbuild.md#azure-pipelines We would need to apply that on the "Build" job of all of our repositories. On Lucene.NET, it is already done this way for performance reasons. Our Other RepositoriesThis is a list of all of the repositories that use the same Azure DevOps (and command line build) templates that will need to be patched to account for this.
While we could just fix the issue in this PR and add 2 issues to each of the other repositories, I think it might be simpler just to submit a PR to each repository with the patches and a link back to this PR. |
@NightOwl888 Thanks for the info and research! I think your comment was intended for PR #930 though? |
@paulirwin - You are absolutely right. I goofed. I will re-post over there. Also, I realized I missed one. |
Partial work for #259 for the core I-J tests assembly.