Commit Graph

419 Commits

Author SHA1 Message Date
Azure SDK Bot
d0991c71d2
Sync eng/common directory with azure-sdk-tools for PR 2011 (#2903)
* Common pipeline template and script to detect API changes

* Cahnges as per review comments

* Review comment changes

* CCahgnes as per review comments

* Show warning for list of failed packages to detect API changes

* Apply suggestions from code review

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
Co-authored-by: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-09-16 12:33:40 -07:00
Azure SDK Bot
8070ab2392
Sync eng/common directory with azure-sdk-tools for PR 2016 (#2904)
* Make ServiceName optional for verify-changelog

In cases like go where we don't pass a service name having this default to "not-specified" breaks things so we should allow for ServiceName and/or ServiceDirectory to be empty.

* Put quotes around the strings to allow for empty

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-09-15 15:32:47 -07:00
Azure SDK Bot
15b6a7abc4
Sync eng/common directory with azure-sdk-tools for PR 2009 (#2897)
* Skip PSModule caching in container jobs

* Add succeeded check to condition

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Ben Broderick Phillips <ben@benbp.net>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-09-15 12:45:36 -07:00
Azure SDK Bot
818cab9a2a
Add for multiple levels of Atx Headers in the CHANGELOG.md (#2900)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-09-14 16:56:12 -07:00
Daniel Jurek
14aa1516d0
Add spell check exceptions and enable CI failure for spelling errors in changed files (#2865)
* Add spell check exceptions and enable spell check failures

* Add HRESULT and sort spelling list

* Add exceptions for cmake-modules
2021-09-13 14:38:49 -07:00
Azure SDK Bot
9088500ec6
Sync eng/common directory with azure-sdk-tools for PR 1979 (#2864)
* Move logic for removing empty sections to ChangeLog-Operations.ps1

* Refactor sections regex

* Add SanitizeEntry parameter

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-09-13 13:50:35 -07:00
Azure SDK Bot
34cb6c76ae
Fix SemVer.ToString to handle v0 case (#2863)
Since we are treating v0 versions as prerelease we need to make sure
we don't accidently start to add the bogus prerelease label in cases where
we call ToString() on the version.

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
2021-09-13 13:06:08 -07:00
Azure SDK Bot
4aacb5f59f
Sync eng/common directory with azure-sdk-tools for PR 1946 (#2862)
* Add ability to exit gracefully when all files in the diff are excluded

* Address case where cspell exits with an error when all files from the 'files' config list are excluded by the expressions in 'ignorePaths'

* Add tests

* Review feedback: impl goes at the bottom and should be treated as a script, logic for testing should happen above that and exit appropriately if running tests

* Import common instead of logging

* Enable strict mode

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-09-13 13:04:47 -07:00
Azure SDK Bot
3e2e5a6dfc
Sync eng/common directory with azure-sdk-tools for PR 1983 (#2860)
* Doc Updates and Revisions for External Use

The focus of these changes is to revise the script to better support use
by external contributors and others outside of the Azure SDK ecosystem and
without access to the Microsoft AAD Tenant.

Changes include:

- Creation of a new Test Application service principal is now possible
  from a non-Microsoft AAD tenant.

- When a new Test Application principal is created, the principle of least
  privilege is now applied; the new Test Application is granted ownership
  of the resource group associated with the test resources and no longer
  has access to any other resources in the subscription.

- If an existing Test Application principal is specified, it will be
  assigned ownership of the resource group created.  This supports using
  a Test Application principal without privileges at the subscription-level.

- When no provisioner is specified, the script is now executed in the
  context of the caller rather than the Test Application principal.
  This supports using a Test Application principal that has restricted
  privileges and better aligns to the purpose of the Test Application
  principal.

- The `$TestApplicationOid` is now explicitly bound at the time a new Test
  Application principal is created rather than having to query for it later.

- Common error scenarios resulting from lack of permissions now provide
  messaging with more context of why the failure occurred and suggest
  remediation.

- Added new examples to illustrate the common call patterns needed by
  external contributors running the script, outside of the Microsoft tenant
  and Azure SDK ecosystem.

- Documentation has been enhanced with additional context to detail the
  permissions and roles assigned by the script.

- Added documentation details for Bicep template use.

* Add the provisioner OID to the deployment params

Key Vault needs this to deploy Managed HSMs. There's a corresponding change necessary in test-resources.json I'll roll out across languages.

* Fixing typos and spelling mistakes

Co-authored-by: Jesse Squire <jesse.squire@gmail.com>
Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-09-13 09:21:47 -07:00
Daniel Jurek
af44672837
Releases to vcpkg tag codeowners (#2825)
* Attempt tagging of @danieljurek in PRBody

* Attempt to assign reviewers

* Use codeowners, filter out groups, use a default owner, add comments to issue.

* Move variables to right level of config

* Set PrOwners variable

* Remove PR owners, requires admin permissions

* Escape DevOps variable to expand into string

* Add AuthToken

* Tweak portfile and codeowners to validate multiple artifact scenario

* Revert "Tweak portfile and codeowners to validate multiple artifact scenario"

This reverts commit bcc7a36119c7f399f1b079f51889d6ff0d499142.

* Review feedback

* Validate fallback logic

* Deal with empty list of owners

* Revert "Validate fallback logic"

This reverts commit ade2dff5a7d9cac9bb61fdc0f92cd50412b7c31c.
2021-09-09 14:47:15 -07:00
Azure SDK Bot
99ff3b04bd
Install az module if not installed in deploy-stress-tests.ps1 (#2857)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-09-09 14:01:10 -07:00
Azure SDK Bot
517902128f
Explicitly exit 0 so a failed inner command (like mvn) doesn't propagate up to a failure of the pipeline (#2859)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-09-09 11:03:45 -07:00
Azure SDK Bot
003eb57488
Sync eng/common directory with azure-sdk-tools repository (#2856) 2021-09-08 17:27:39 -07:00
Azure SDK Bot
91b459b560
Add Skip.SetTestPipelineVersion to allow overidiing of use of BuildID for test version (#2849)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-09-08 12:58:47 -07:00
Azure SDK Bot
6ef0b265e5
updating proxy to use latest version (#2843)
Co-authored-by: seankane-msft <seankane@microsoft.com>
2021-09-07 16:05:35 -07:00
Azure SDK Bot
19205045d2
Support v0 versions as prerelease beta versions (#2821)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-09-02 08:55:43 -07:00
Azure SDK Bot
dd906a9b0d
Make "Setup Versioning Properties" cancellable (#2820)
Co-authored-by: Mike Harder <mharder@microsoft.com>
2021-09-01 17:12:52 -07:00
Azure SDK Bot
bc38afd6ef
Sync eng/common directory with azure-sdk-tools for PR 1953 (#2814)
* Add random elements to default base name

* Fix principal

* tab

Co-authored-by: JoshLove-msft <54595583+JoshLove-msft@users.noreply.github.com>
2021-08-30 17:45:51 -07:00
Azure SDK Bot
669252d2a9
Skip eng common workflow enforcer for private repos (#2813)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-08-30 17:21:03 -07:00
Daniel Jurek
deac75c2a4
Remove cspell enforcement, there are edge cases where cspell will fail incorrectly based on undocumented configuration behavior (#2811) 2021-08-27 23:08:35 +00:00
Azure SDK Bot
0758a43000
Sync eng/common directory with azure-sdk-tools for PR 1943 (#2810)
* Bug fix: Storing .env file for bicep file at service dir

* Styling

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2021-08-27 16:05:33 -07:00
Azure SDK Bot
2ef96b0b72
ensure test principal creation succeeds properly (#2807)
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2021-08-27 20:59:54 +00:00
Azure SDK Bot
cfda7f00fa
Stip empty changelog sections before release (#2804)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-08-26 16:11:00 -07:00
Daniel Jurek
2418581e2e
Spell Check Phase 2 (#2794)
* Formatting

* Add cpp to dictionaries, comment to words section, and opted-out paths for spell checking

* Enable blocking of PRs on spelling error
2021-08-26 14:15:22 -07:00
George Arama
a861ae5853
add AZURE_TEST_MODE (#2792)
* add AZURE_TEST_MODE

* fix values
2021-08-25 10:16:03 -07:00
Victor Vazquez
49636a2f93
ignore result of function to compile on G++ 5 (#2784)
* ignore result of function

* changelog

* Add g++5 to CI legs

* use inline config for g++ 5

* update flag

* set default values for variables

* fix format
2021-08-24 15:55:46 -07:00
Azure SDK Bot
93d1f83ee7
Sync eng/common directory with azure-sdk-tools for PR 1918 (#2768)
* Stress test deployment script resiliency fixes

* Use PSModule-Helpers to install powershell-yaml

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-08-24 14:18:21 -07:00
Daniel Jurek
ae4a41cfbd
Use Clang 11 in Ubuntu 20 (#2776)
* More logging, faster matrix

* Verbose makefile

* Add code that is expected to cause failure

* Use clang with Ubuntu 20

* Install clang-format-11 in another step

* Revert "Add code that is expected to cause failure"

This reverts commit 7ff7201e1b81e17c168b7598f0d23c489b5e6f43.

* Remove cmake args, add build args -j
2021-08-19 17:14:08 -07:00
Azure SDK Bot
e69a11ca4d
Remove old unused update changelog script (#2775)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-08-19 13:03:59 -07:00
Azure SDK Bot
8db9c0b223
Fix query batch processing (#2769)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-08-18 14:22:20 -07:00
Azure SDK Bot
8a2c551230
Sync eng/common directory with azure-sdk-tools for PR 1912 (#2767)
* Attempt to purge all vaults, managed HSMs

Reverts #1910. Vaults and managed HSMs are automatically purged on their purge date. The point was to purge them daily to preserve capacity. The default purge date is +90 days.

* Add timeout and more logging

* Pass required -Resource

* Fix log message

* Ensure the $Resource is correctly captured

Added comment to new code explaining why, since ScriptBlock.GetNewClosure() is not working as expected.

* Add -ErrorAction to Receive-Job

Worked without terminating when run locally, but failed on the first error in the AzDO agent.

* Use $using:r instead of creating ScriptBlock

More idiomatic for passing ScriptBlocks to jobs.

* Resolve PR feedback

* Change default DeleteAfterHours to 120

Resolves #1917

* Use the Az cmdlets built-in -AsJob

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-08-18 13:23:31 -07:00
Azure SDK Bot
43c5ce5470
Removing C:\Git\azure-sdk-tools\eng\common\scripts\FilterPoliCheckResults.ps1 as it was no longer used (#2762)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
2021-08-17 16:46:39 -07:00
Azure SDK Bot
0bc420af0a
Enable API review approval check for Java spring packages (#2759)
Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2021-08-17 09:50:47 -07:00
Azure SDK Bot
ff367d641a
Sync eng/common directory with azure-sdk-tools for PR 1909 (#2757)
* add test-proxy invocations to eng/common folder

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2021-08-16 16:19:39 -07:00
Azure SDK Bot
b62de00276
Prevent wildcard expansion in git sparse checkout add (#2745)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-08-16 10:00:54 -07:00
Azure SDK Bot
8d0e4dfd1c
Add support for 'files' configuration (#2746)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-08-16 08:43:11 -07:00
Azure SDK Bot
45e48d3be5
Fix resource clean-up script (#2747)
- Fix rg.Name to rg.ResourceGroupName
- Add more verbose logging for better debugging
- Handle deleted resource groups when gathering puragable resource
- Remove coerce now that we are collecting in functions

Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-08-13 16:03:04 -07:00
Azure SDK Bot
08e13c2a3b
Add Rest Method checks to Prepare-Release (#2748)
Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
2021-08-13 15:22:38 -07:00
Azure SDK Bot
531c7df24d
Sync eng/common directory with azure-sdk-tools for PR 1876 (#2742)
* rebase

* Resolve conflict

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
2021-08-13 11:08:31 -07:00
Azure SDK Bot
c92b095088
Sync eng/common directory with azure-sdk-tools for PR 1894 (#2743)
* Purge Key Vaults after deleting resource group

* Resolve PR feedback

* Purge Key Vaults and Managed HSMs

* Clean up all purgeable KVs and MHSMs

* Ignore null/empty purgeable resources

* Resolve PR feedback

* Resolve PR feedback

* Fix logging, process each item when collection piped

Co-authored-by: Heath Stewart <heaths@microsoft.com>
2021-08-12 19:50:53 -07:00
Azure SDK Bot
33e56e1bbf
Sync eng/common directory with azure-sdk-tools for PR 1866 (#2728)
* Deploy for stress tests at resource group scope

* Automatically compile bicep files in stress test deploy script

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-08-11 16:37:00 -04:00
Azure SDK Bot
87b8a6146b
Add ability to leave SourceBranch empty when queueing a build (builds using the default branch) (#2691)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
2021-08-05 10:20:46 -07:00
Chidozie Ononiwu (His Righteousness)
3e39e0e44a
Add auto-merge to Version increment PR (#2708) 2021-08-03 16:34:07 -07:00
Daniel Jurek
d9b5d69723
Revert "Update Ubuntu VM Image from 18 to 20 (#2564)" (#2689)
* Revert "Update Ubuntu VM Image from 18 to 20 (#2564)"

This reverts commit 59440caa39.

* Add Ubuntu 20 to matrix
2021-08-03 09:14:34 -07:00
Scott Beddall
3f25c5d2e5
add ga to index and individual docs (#2687) 2021-07-29 20:53:51 +00:00
Azure SDK Bot
eef5cc99ae
Move stress testing scripts to eng/common (#2686)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
2021-07-29 13:15:20 -07:00
Azure SDK Bot
ac62bce4e8
Verify API surface level against all approved revisions for GA releases (#2673)
Co-authored-by: praveenkuttappan <prmarott@microsoft.com>
2021-07-28 06:40:37 -07:00
Chidozie Ononiwu (His Righteousness)
59440caa39
Update Ubuntu VM Image from 18 to 20 (#2564) 2021-07-27 15:20:37 -07:00
Azure SDK Bot
f5ab6a5252
add basic ga tag w/ settable campaignid (#2668)
Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2021-07-27 11:05:55 -07:00
Azure SDK Bot
2a734423c1
Sync eng/common directory with azure-sdk-tools for PR 1827 (#2661)
* update article type appropriately

Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
2021-07-22 22:56:00 +00:00