63 Commits
Author SHA1 Message Date
Andy Zivkovic 9a03668316 Update URL used by SDPX license update script (#7633) 2026-08-18 14:07:24 +09:30
Jeff Kluge 8f6362aea4 Remove manual GitHub status checks functionality from all pipelines (#6357) 2025-03-28 21:46:21 +00:00
Andy Zivkovic b8efbf37ba Move signed package testing utils to new package (#6100) 2024-10-17 22:03:36 +10:30
Andy Zivkovic 7c463980ae Post E2E and Apex test results to GitHub Checks (#6075) 2024-10-10 16:58:18 +10:30
Jeff Kluge 6e878d0491 [CI] Disable Static Analysis status check if its not being run (#5942) 2024-07-31 12:39:42 -07:00
Jeff Kluge 035d451336 Run source build in CI pipeline (#5868) 2024-06-24 09:33:05 -07:00
Nikolche Kolev 9db78fb906 Remove NuGet.Packaging.Core (#5870) 2024-06-23 22:55:47 -07:00
Jeff Kluge ee910914a9 Remove Apex and end-to-end initial status from CI pipeline (#5806) 2024-05-20 11:58:21 -07:00
Andy Zivkovic 741f7d5547 Report Source Build results to GitHub Checks (#5422) 2023-09-25 18:10:01 +02:00
Andy Zivkovic f8da5c760c Enforce whitespace rules in pull requests (#5326) 2023-07-27 09:15:48 +02:00
Jeff Kluge 017074bee3 Split hosted build test running up for unit tests, functional tests, and Mono tests (#5152) 2023-05-05 11:06:50 -04:00
Andy Zivkovic 3a55f08732 Remove net40, net45 from NuGet Client SDK (#4653) 2022-06-07 10:54:31 -07:00
Heng Liu 0ff5f67097 do not fail build when commit hash not found on github (#4541) 2022-04-01 09:40:16 -07:00
Nikolche Kolev 8b871506bb Change the tagging repository to make it independent of ddfiles (#4410) 2022-01-24 09:48:16 -08:00
Andy Zivkovic 3d7abe737c Pack NuGet.Localization in RTM builds (#4320) 2021-10-22 13:16:50 -07:00
Andy Zivkovic 9563d6e0d7 Remove rebuild github check (#4261) 2021-09-14 06:56:14 -07:00
Heng Liu 7d8988d25a remove NuGet.SolutionRestoreManager.Interop from list (#4195) 2021-08-12 17:06:07 -07:00
Heng Liu 4d1558091b Add cross framework verify tests for package signing (#4143) 2021-08-11 06:12:27 -07:00
Nikolche Kolev 7463c26de6 Remove the custom SDK download on the CI, use a later version of dotnet.exe in our testing (#3924) 2021-03-02 13:01:05 -08:00
Heng Liu e58571c041 Add script to validate if expected packages exist (#3862) 2021-01-31 20:42:43 -08:00
Kartheek Penagamuri a6fc85c196 read buildinfo json file from build artifact in TagNuGetClientGitRepostoryOnRelease script (#3870) 2021-01-29 10:57:37 -08:00
Andy Zivkovic 7297f2661e Report success to GitHub status on CI build warning (#3873) 2021-01-28 10:10:46 -08:00
Heng Liu b1d6e8568a Split E2E tests into two jobs (#3709)
* try to split

* run full build

* rearrange E2E tests

* address comments

* enable editorConfig on VS Code

* change PostGitCommitStatus.ps1

* fix

* fix 2

* fix 3
2020-10-13 11:47:24 -07:00
784274cc9b Enable cross-platform package signature verification for restore (#3458)
* Signing: Support signature verification on .NET Core

Remove 2nd N.B.T.P package (#2984)

remove WorkaroundNetStandard target, change SDK for build from 3.0 preview to 3.1 stable (#3161)

* remove WorkaroundNetStandard target, change SDK for build from 3.0 preview to 3.1 stable version, fix error; change LockSDKVersion default value from empty string to false; apply Linux workaround in my change

Retarget to netcore5.0 (#3162)

* retarget to netcore5.0;  Linux script workaround need to apply for downloading SDK for build

add pkcs and cng packages

Temporary fix on patching SDK, add System.Security.Cryptography.Pkcs.dll and update deps.json, use dll from .nuget/packages

Address PR comments

implement add cert to store on Mac; display openssl version (#3166)

Implement timestamp integrity verification; Implement an equivalent NativeCms; enable signing APIs and tests (#3168)

* implement timestamp integrity verification; implement ManagedCms; enable signing APIs and tests

fix xplat verification branch after rebase (#3191)

Fixes: https://github.com/NuGet/Home/issues/9012

check different cross-platform error messages for self-signed cert test (#3208)

Fixes: https://github.com/NuGet/Home/issues/8933

Xplat Signing/Verification : Fix broken tests for setting privatekey of a X509Certificate2 (#3195)

use workaround to set private key for X509Certificate2 (netcore), change ToRSA to workaround for netcore(especially for non-windows)

enable PathTooLongException test (#3216)

Fixes: https://github.com/NuGet/Home/issues/8920

enable TrustedSignerActionsProvider on netcore, along with tests (#3213)

Fixes: https://github.com/NuGet/Home/issues/8921

Enable SignedPackageIntegrityVerificationTests for netcore5.0 (#3220)

Enable SignedPackageIntegrityVerificationTests for netcore, remove extra preprocessors

Enable timestamp provider test and fix 3 broken tests (#3210)

enable all unit tests; enable 8 more tests; enable timestampProviderTest; fix 3 broken tests in TimestampProviderTests

Fix 4 tests in SignatureTrustAndValidityVerificationProviderTests (#3242)

fix untrusted msg for different platforms

fixed broken tests using utility methods (#3263)

disable outdated tests (#3274)

enable 4 tests on Mac (#3275)

fix 5 broken tests in SignatureTrustAndValidityVerificationProviderTests, add workaround for Linux (#3252)

fix broken test case ExecuteCommandAsync_WithAmbiguousMatch_ThrowsAsync (#3291)

* Enable test ExecuteCommandAsync_WithMultiplePackagesAndInvalidCertificate_RaisesErrorsOnceAsync (#3342)

* enable a test, change the comments; extend test limitation on Linux

* Updated SDK version and removed the hardcoded version when reading from JSON file (#3372)

* update Pkcs package to the preview3 version (#3382)

* fix 2 warnings in CodeAnalysis (#3388)

* fix 2 warnings in CodeAnalysis

* disable dynamic revoke tests on Mac (#3373)

* fix 1 test (#3371)

* Fix more warnings reported by CodeAnalysis (#3393)

* fix string warnings raised by CodeAnalysis

* Retarget xplat verification to netcoreapp5.0 (#3386)

* retarget netcoreapp5.0 (a workaround for net5.0)

* fix all the rest warnings raised by code analysis (#3401)

* Suppress CA1307 warning for string.GetHashCode() method (#3404)

* Linux test failure due to generic exception (#3405)

* add TFM netcoreapp5.0 to N.B.T.Console and N.P.Core projects (#3419)

* add TFM netcoreapp5.0 to N.B.T.Console and N.P.Core projects

* add PIN prompt for netcore (#3389)

* Run dotnet nuget tests on multiple TFMs (#3387)

* enabled mac assertions

* Revert "enabled mac assertions"

This reverts commit d8a52e20c204720f106eaf116d1895f68b557d56.

* Enable test GetCertificateChain_WithUntrustedRoot_Throws on Mac (#3428)

* run signing integration tests cross plat (#3415)

* added GetNonce() to IRfc3161TimestampRequest interface (#3427)

* disable test for netcore (#3445)

* log Status and StatusInformation, fix 2 tests (#3268)

* Disable verification during extraction for Mono, disable a test on Mono (#3451)

* disable verification during extraction on mono,disable a mono test on Mac

* adapt 2 newly added dotnet integration tests for multiple TFMs (#3460)

* remove useless Sdk2x.targets

* get TimestampTests working again (#3218)

* get TimestampTests working again

Fixes: https://github.com/NuGet/Home/issues/8935

* change GetTimestampAsync into internal

* fix runFuncTests.sh and InstallCLIforBuild.sh

* address feedback

* upgrade dotnet 5 to preview4 as preview5 is broken

* Fix exception thrown in SigningTestFixture during disposing (#3464)

Co-authored-by: Kartheek Penagamuri <52756182+kartheekp-ms@users.noreply.github.com>
Co-authored-by: Andy Zivkovic <zivkan@users.noreply.github.com>
Co-authored-by: Kat Marchán <kzm@zkat.tech>
2020-06-20 12:23:29 -07:00
Rob Relyea 9aa5274613 Generate docs for dotnet nuget commands. (#3253)
generate documentation for dotnet.exe nuget commands via .tt files.
2020-04-08 12:31:58 -07:00
donnie-msft 53b1560196 Check VSTS PAT in Initialize_Build (#3156)
* Check VSTS PAT in Initialize_Build
2020-01-17 16:37:06 -08:00
donnie-msft d421f61d0b Parallelize Functional_Tests_On_Windows (#2927)
* Split Desktop and Core functional tests

* Removed old Skip Tests flags
2019-07-31 17:50:12 -07:00
Damon Tivel 833d177879 Build: disable select strong name verifications during build by default (#2876)
Fix https://github.com/NuGet/Home/issues/8196.
2019-06-07 09:46:02 -07:00
Nikolche Kolev 057f2ed60c Add automation for inserting into toolset. Add custom logic to allow … (#2868)
* Add automation for inserting into toolset. Add custom logic to allow us to specify alternative paths for 3.0 and later SDK/CLI branches
2019-06-04 11:22:03 -07:00
Patricio Beltran 796cf49e33 Fixed CliSdk insert script to remove unexpected string (#2676) 2019-01-10 12:33:18 -06:00
Nikolche Kolev bb13b10e8a Move cross-plat libraries to .NET Standard 2.0 (#2118)
* Move xplat libraries to netstandard2.0 and netcoreapp2.1

* Update dotnet cli to 2.2.200

* Remove CandidateAssemnblyFiles from RAR search paths
Microsoft.Build.Runtime package has an mscorlib.dll content file that
ends up winning over mscorlib.dll in .NET Framework targeting pack
mscorlib.dll if CandidateAssemblyFiles are searched.

Legacy project search paths are left unchanaged because they were not
impacted by this and some of the rely on resolution in GAC or
AssemblyFolders.

* Initialize ILMerge with appropriate reference assemblies

Previously, ILMerge was always default-initialized with current machine's
C:\Windows\Microsoft.NET\Framework\v4.0.30319. Furthermore, in the .NET
Standard case, it was mixed with implementation assemblies on /lib from
a one-off CoreCLR implementation. It was pure luck that the resulting
assembly used to work.

This also removes the one-off CLI that carries the one-off CoreCLR from
the build altogether.

* Disabled failing signing tests on macOS

* Remove explicity reference to system.collections.immutable

* Add the ability to insert to multiple CLI/SDK branches
2018-12-19 16:37:43 -08:00
Ashish Jain 994a3f90f5 Updated CLI/SDK branch name to be different for 2.2.2xx and 2.1.6xx (#2561) 2018-12-12 11:50:26 -08:00
Nikolche Kolev c05f5b0170 Add the NuGet SPDX License Model (#2424)
* Add SPDX License expression models and parsers
2018-09-27 11:24:53 -07:00
Rohit Agrawal 6a138b0129 update to the right version of cli for tests (#2188)
* update cli to version 2.1.2xx

* fix failing tests

* fix skip conditions for git commit status

* update to release/2.1.4xx of cli

* kill running servers of dotnet.exe on cleanup
2018-04-25 13:11:50 -07:00
Nikolche Kolev 73530e94d4 Add the ability to skip tests in the build definition (#2185) 2018-04-23 17:41:59 -07:00
Rohit Agrawal 21409dd7f5 set security protocol in the script itself so it works in the release def (#2059) 2018-02-28 14:56:17 -08:00
Ankit Mishra 4c0c965844 updating build script to use tls 1.2 (#2048)
github [deprecated ](https://githubengineering.com/crypto-removal-notice/)tls 1.0 as of today 11am. 

This PR updates our build scripts to use tls 1.2 instead.
2018-02-22 15:29:35 -08:00
Rohit Agrawal (NUGET) 2b5cef4e25 fix sdk and cli insertion script 2018-02-16 13:23:48 -08:00
Rohit Agrawal (NUGET) 5826323a8d fix insertion scripts 2018-02-16 13:00:20 -08:00
Rohit Agrawal (NUGET) e162506597 fix scripts to adapt to semver2 change 2018-02-14 11:25:36 -08:00
Rohit Agrawal 1306bdf687 udpate git tag to add attempt number in case of failure (#2020) 2018-02-13 10:30:37 -08:00
Rohit Agrawal 759b507adf allow to re-trigger deployment and create unique branch in cli/sdk (#1978) 2018-01-25 13:06:58 -08:00
Rohit Agrawal 2309bccef0 allow rebuild via github commit status (#1962)
* allow rebuild via github commit status

* update description of script
2018-01-19 16:31:28 -08:00
Rohit Agrawal c602783bf2 add github-vsts integration with test run url for linux/mac (#1952)
* update github status through powershell on linux

* update git commit status through powershell on mac

* fix edge case where tests fail to run
2018-01-16 16:16:23 -08:00
Rohit Agrawal cea0dd1ba7 post test failure status and link test run url on github for windows tests (#1928)
* try running all tests from dotnet vstest

* use xunitxml.logger to output vstest results in xml format

* modify build to only output xml results across all tests

* keep xplat test format as trx

* fix xml tag

* provide explicit path to xunit xml logger adapter

* change name of test files when they are  generated on linux/mac

* update git commit status description

* obtain test run details via rest api

* try powershell task on linuux

* Revert "try powershell task on linuux"

This reverts commit 11a03c75935d6ef7469424562fedf15152a611bb.

* make getting test run id resilient to failures
2018-01-10 20:41:53 -08:00
Rohit Agrawal 42c9b0f1ab bring test by test vsts integration to github (#1905)
* test continueOnError behavior if test fails

* add script to update git commit status

* update build script to set all test status to pending

* fix script to use env variable for buildid

* add status message

* add git status update to everything except mac and linux

* include apex and e2e tests in build

* minor fixes in build yaml script

* add git commit status update for linux/mac

* add script for mac/linux instead of inline script

* temporarily move init git status to first step

* final changes

* add link to github commit status api

* set status for mac,e2e and apex to fail if unit tests fail
2017-12-27 16:35:19 -08:00
Rohit Agrawal 9ce37fff78 fix string matching for xml in insertion script (#1859) 2017-12-08 16:33:23 -08:00
Rohit Agrawal 6fddbb3bf1 allow version file path to be specified as a param to script (#1856) 2017-12-07 17:02:10 -08:00
Alex Panov 5d66754b94 Rebranding dev branch to 4.4.0 Preview1 (#1577)
* Rebranding dev branch to 4.4.0 Preview1

* Aligning build number with preview milestone
2017-07-26 23:58:03 -07:00
Rohit Agrawal 369207a7dc some more changes to automation scripts (#1565)
print more info, and switch to Invoke-WebRequest
2017-07-20 12:31:53 -07:00