You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2022/02/13 16:34:59 UTC

[lucenenet] branch master updated (bed207a -> f4280e6)

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git.


    from bed207a  LICENSE.txt: Added license info for 3rd party code and removed licenses for items that have been deleted from the Support folder
     new 5d81e46  websites/site/contributing/make-release.md: Fixed build command, added step to review the LICENSE.txt file to ensure licenses are all included and authorized for use by Apache.
     new 9692a5b  BUG: .build/runbuild.ps1: Add SYSTEM_DEFAULTWORKINGDIRECTORY environment variable if it doesn't exist to let the lucene-cli installation tests know where to scan for the NuGet package so it doesn't need to rebuild it.
     new f4280e6  BUG: build.ps1: Added missing prepareForBuild and backupFiles properties, which must be set to false when doing a distribution build (i.e. when the version.props file exists)

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .build/runbuild.ps1                        |  6 ++++++
 build.ps1                                  |  6 ++++++
 websites/site/contributing/make-release.md | 11 ++++++++---
 3 files changed, 20 insertions(+), 3 deletions(-)

[lucenenet] 03/03: BUG: build.ps1: Added missing prepareForBuild and backupFiles properties, which must be set to false when doing a distribution build (i.e. when the version.props file exists)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit f4280e61a89e1e55365b46e89b1778e37f6273d1
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Feb 13 21:42:17 2022 +0700

    BUG: build.ps1: Added missing prepareForBuild and backupFiles properties, which must be set to false when doing a distribution build (i.e. when the version.props file exists)
---
 build.ps1 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build.ps1 b/build.ps1
index ed490e3..5d0ce70 100644
--- a/build.ps1
+++ b/build.ps1
@@ -82,6 +82,12 @@ $parameters = @{}
 $properties = @{}
 
 $properties.maximumParallelJobs = $maximumParallelJobs
+
+# If version.props exists, we must not prepare for build or backup, because
+# we assume we are a release distribution.
+$properties.prepareForBuild = -not $versionPropsExists
+$properties.backupFiles = -not $versionPropsExists
+
 if (-not [string]::IsNullOrWhiteSpace($packageVersion)) {
     $properties.packageVersion=$packageVersion
 }

[lucenenet] 01/03: websites/site/contributing/make-release.md: Fixed build command, added step to review the LICENSE.txt file to ensure licenses are all included and authorized for use by Apache.

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 5d81e4687f9dccca07534daaf026b28b6174f967
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Feb 13 04:02:38 2022 +0700

    websites/site/contributing/make-release.md: Fixed build command, added step to review the LICENSE.txt file to ensure licenses are all included and authorized for use by Apache.
---
 websites/site/contributing/make-release.md | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/websites/site/contributing/make-release.md b/websites/site/contributing/make-release.md
index 31cfcc1..2f37608 100644
--- a/websites/site/contributing/make-release.md
+++ b/websites/site/contributing/make-release.md
@@ -121,20 +121,25 @@ The following steps need only to be performed once.
     - Exclude files that already have license headers
     - Exclude files that are automatically generated
     - Exclude files that don't work properly with license headers included
+  - Review the LICENSE.txt file.
+    - If any new files with an alternate license were flagged by the Apache Release Audit Tool in the last step, add the full path to the files and the full licenses (see the LICENSE.txt file for examples). If the license is not found in the approved license list https://www.apache.org/legal/resolved.html#category-a, the release **must be postponed** until the file is replaced with one that has an acceptable license.
+    - If any files have been removed from the repository, delete the corresponding license.
+    - If any files have been moved or renamed, update the corresponding license to reflect the new path(s).
+    - Check the copyright date and update it if the year has changed since the prior release. Update the date in the NOTICE.txt file, also.
   - Push the changes to the remote `lucenenet` repository (`https://gitbox.apache.org/repos/asf/lucenenet.gif`)
 
     ```powershell
-    git push <remote> master --tags
+    git push <remote> master
     ```
 
 - Execute a complete test locally (it can take around 20 minutes, but you may do the next step in parallel):
 
   ```powershell
-  build -pv:<packageVersion> -t -mp:10
+  build -pv <packageVersion> -t -mp 10
   ```
 
   > [!NOTE]
-  > Adjust the `-mp:` (maximum number of parallel jobs) number as appropriate based on the machine that runs them. In general, a powerful machine should be able to run 10 jobs or more and a weaker machine may only be able to run 7 or 8 jobs in parallel. It may take some experimentation to find the right number on your hardware to execute the tests fastest.
+  > Adjust the `-mp` (maximum number of parallel jobs) number as appropriate based on the machine that runs them. In general, a powerful machine should be able to run 10 jobs or more and a weaker machine may only be able to run 7 or 8 jobs in parallel. It may take some experimentation to find the right number on your hardware to execute the tests fastest.
 
 - Execute a complete test on a temporary Azure DevOps organization (it can take around 40-50 minutes) (see [build instructions on README.md](https://github.com/apache/lucenenet#azure-devops)).
 

[lucenenet] 02/03: BUG: .build/runbuild.ps1: Add SYSTEM_DEFAULTWORKINGDIRECTORY environment variable if it doesn't exist to let the lucene-cli installation tests know where to scan for the NuGet package so it doesn't need to rebuild it.

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 9692a5b55a5e688dab412a279d36eacd5d6bb5a1
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Sun Feb 13 21:39:12 2022 +0700

    BUG: .build/runbuild.ps1: Add SYSTEM_DEFAULTWORKINGDIRECTORY environment variable if it doesn't exist to let the lucene-cli installation tests know where to scan for the NuGet package so it doesn't need to rebuild it.
---
 .build/runbuild.ps1 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.build/runbuild.ps1 b/.build/runbuild.ps1
index f0c9f61..a164f57 100644
--- a/.build/runbuild.ps1
+++ b/.build/runbuild.ps1
@@ -167,6 +167,12 @@ task Pack -depends Compile -description "This task creates the NuGet packages" {
             & dotnet pack $solutionFile --configuration $configuration --output $nugetPackageDirectory --no-build
         }
 
+        # Set the SYSTEM_DEFAULTWORKINGDIRECTORY if we are not on Azure DevOps. This will optimize the lucene-cli
+        # installation test so it doesn't rebuild the NuGet package during a local build.
+        if (-Not (Test-Path 'env:SYSTEM_DEFAULTWORKINGDIRECTORY')) {
+            $env:SYSTEM_DEFAULTWORKINGDIRECTORY = "$baseDirectory"
+        }
+
         $success = $true
     } finally {
         #if ($success -ne $true) {