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

Rebased with main #15454

Merged
merged 185 commits into from
Sep 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
8cce9bd
Fix dependency (2nd round) (#14745)
ArcturusZhang Jun 7, 2021
8812d1a
azidentity: Adding Resource ID support in ManagedIdentityCredential (…
catalinaperalta Jun 7, 2021
8e06315
Sync eng/common directory with azure-sdk-tools for PR 1633 (#14757)
azure-sdk Jun 8, 2021
4a77750
Strict mode needs the variables initialized (#14762)
azure-sdk Jun 10, 2021
9baec13
Release v55.2.0 1623309052 2 (#14766)
chenjianfei2017 Jun 10, 2021
7c0aeb2
update references for credential types table (#14749)
catalinaperalta Jun 10, 2021
564971c
LRO poller rewrite (#14752)
jhendrixMSFT Jun 11, 2021
736340a
Sync eng/common directory with azure-sdk-tools for PR 1688 (#14780)
azure-sdk Jun 16, 2021
86652a0
Release v55.3.0 1623834595 (#14782)
chenjianfei2017 Jun 16, 2021
cfe3a09
update with latest code generator (#14776)
jhendrixMSFT Jun 16, 2021
56e5c85
update with latest code generator (#14773)
jhendrixMSFT Jun 16, 2021
89e696c
Fix hard-coded master (#14797)
azure-sdk Jun 18, 2021
b1e5aa6
update with latest code generator (#14775)
jhendrixMSFT Jun 18, 2021
20c4776
update with latest code generator (#14774)
jhendrixMSFT Jun 18, 2021
4f37ebb
update with latest code generator (#14772)
jhendrixMSFT Jun 18, 2021
a8003cf
initial change to squash the package files (#14853)
ArcturusZhang Jun 21, 2021
fbd2d6c
Sync eng/common directory with azure-sdk-tools for PR 1716 (#14870)
azure-sdk Jun 21, 2021
10a9ef8
Sync eng/common directory with azure-sdk-tools for PR 1719 (#14871)
azure-sdk Jun 21, 2021
e5d22b6
Track 2 `privatedns` module release (#14793)
ArcturusZhang Jun 22, 2021
11228e6
Go recorded test framework (#14767)
christothes Jun 22, 2021
a8d8d22
Add tenantID on TokenRequestOptions (#14879)
catalinaperalta Jun 23, 2021
fa2845b
azidentity: add support for service fabric MSI environment (#14783)
catalinaperalta Jun 23, 2021
75b78c8
update version.go (#14886)
catalinaperalta Jun 23, 2021
6c64de6
azidentity: Add service fabric test program (#14788)
catalinaperalta Jun 23, 2021
84a464e
Release track 2 authorization module (#14867)
ArcturusZhang Jun 24, 2021
9489d00
Sync eng/common directory with azure-sdk-tools for PR 1729 (#14887)
azure-sdk Jun 24, 2021
ec5176b
Add Ubuntu 20 to local dns bypass template (#14896)
azure-sdk Jun 24, 2021
74a40a6
Update master to main (#14909)
weshaggard Jun 24, 2021
f91de19
Update references from master to main (#14911)
azure-sdk Jun 25, 2021
4723001
Release v55.4.0 (#14914)
chenjianfei2017 Jun 25, 2021
382a66b
rename armmonitor to arminsights (#14725)
ArcturusZhang Jun 29, 2021
36bf5c0
Update CodeOwners and Notice.txt (#14919)
RickWinter Jun 29, 2021
caa07c1
change package name back to armmonitor (#14935)
ArcturusZhang Jun 30, 2021
e1a5f30
Release v55.5.0 1625035291 (#14942)
chenjianfei2017 Jun 30, 2021
08b2f0d
Sync eng/common directory with azure-sdk-tools for PR 1725 (#14933)
azure-sdk Jun 30, 2021
e5bd4d6
Update devops workitem helpers (#14934)
azure-sdk Jun 30, 2021
d7e302a
Add prepare pipelines pipeline (#14947)
benbp Jun 30, 2021
48e47a2
Sync eng/common directory with azure-sdk-tools for PR 1763 (#14938)
azure-sdk Jun 30, 2021
592e199
Update docs metadata mutation logic (#14950)
azure-sdk Jul 1, 2021
4e9b387
Sync eng/common directory with azure-sdk-tools for PR 1772 (#14962)
azure-sdk Jul 1, 2021
958d3c3
Skip live test generation in prepare-pipelines (#14958)
benbp Jul 2, 2021
862673e
onboard track2: containerregistry (#14988)
chenjianfei2017 Jul 7, 2021
1bbf192
Switch ubuntu 18 to ubuntu 20 (#14995)
azure-sdk Jul 7, 2021
aec1eec
Sync eng/common directory with azure-sdk-tools for PR 1767 (#14970)
azure-sdk Jul 7, 2021
652d9a2
fix readme in recording (#14981)
ArcturusZhang Jul 8, 2021
21df772
Update Ubuntu 18 to 20 (#14986)
chidozieononiwu Jul 8, 2021
e79c7e6
Add build.ps1 script to build all SDKs (#15014)
chamons Jul 8, 2021
705274f
Add root directory to list of sparse checkout paths (#15021)
azure-sdk Jul 9, 2021
7ccecb4
Release v55.6.0 1625727542 (#14999)
chenjianfei2017 Jul 9, 2021
3dc5172
azidentity: Add environment variable for resource ID (#14872)
catalinaperalta Jul 12, 2021
91a2362
Unexport HTTP headers to reduce public surface area (#15038)
jhendrixMSFT Jul 13, 2021
4d71873
Update CODEOWNERS (#15040)
RickWinter Jul 13, 2021
4837ee4
Start documentation on build (#15012)
chamons Jul 13, 2021
863207b
Sync eng/common directory with azure-sdk-tools for PR 1808 (#15044)
azure-sdk Jul 13, 2021
975e860
Release Monitor track 2 module (#15031)
ArcturusZhang Jul 14, 2021
20bc120
Track2 release: containerregistry (#14992)
chenjianfei2017 Jul 14, 2021
ce8e9bd
web track 2 module onboarding (#14984)
ArcturusZhang Jul 14, 2021
71ad227
Initial release of track 2 module `agrifood` (#14799)
ArcturusZhang Jul 14, 2021
2701129
Sync eng/common directory with azure-sdk-tools for PR 1748 (#14930)
azure-sdk Jul 14, 2021
fe027d1
Release v55.7.0 1626332017 (#15069)
chenjianfei2017 Jul 15, 2021
e6396ce
remove exit 0 portion (#15035)
seankane-msft Jul 16, 2021
063ba36
Build.ps1 improvements (#15017)
chamons Jul 20, 2021
3fc7082
[Core] Renamings for AuthPolicies (#15103)
seankane-msft Jul 21, 2021
a0a26a0
[Core] Rename AnonymousCredential (#15104)
seankane-msft Jul 21, 2021
e3f76d0
fixing lint step for azidentity (#15109)
seankane-msft Jul 21, 2021
1af91d4
[EngSys] Combine Build Build and Build Test pipelines (#15085)
seankane-msft Jul 21, 2021
b3ac410
Release v55.8.0 1626925362 (#15118)
Alancere Jul 22, 2021
9f28f9f
Sync eng/common directory with azure-sdk-tools for PR 1827 (#15126)
azure-sdk Jul 22, 2021
14d3e95
track2 add servicebus ci.yml and LICENSE.txt file (#15132)
Alancere Jul 23, 2021
bc4629f
Add sql ci.yml and LICENSE.txt file (#15133)
Alancere Jul 23, 2021
7995fc7
[build.ps1] Add support for converting _meta.json to autorest.md duri…
chamons Jul 23, 2021
dd2d1fd
update the code owner to include renhe (#15131)
ArcturusZhang Jul 23, 2021
5b5b4f7
[EngSys] adding coverage tools (#15076)
seankane-msft Jul 26, 2021
8cfd3cc
Many build.ps1 improvements (#15135)
chamons Jul 27, 2021
3fca53b
add basic ga tag w/ settable campaignid (#15157)
azure-sdk Jul 27, 2021
f9fe781
add auxiliary tenants for multi-tenant scenario (#15123)
catalinaperalta Jul 27, 2021
a37ca0d
Introduce the migration guide to track 2 modules (#14980)
ArcturusZhang Jul 28, 2021
9f1c9ee
Add Documentation for Track 2 Management SDK (#15096)
nickzhums Jul 28, 2021
2df7b50
Verify API surface level against all approved revisions for GA releas…
azure-sdk Jul 28, 2021
e7e795b
[Internal] fixing lint issues (#15162)
seankane-msft Jul 28, 2021
7c54eda
[EngSys] adding triggers on eng for internal and azcore (#15161)
seankane-msft Jul 28, 2021
7d922f1
[armcore] Add auxiliary tenants to connection options (#15124)
catalinaperalta Jul 28, 2021
fc3a98b
[azidentity] Update code to use the latest azcore (#15137)
catalinaperalta Jul 28, 2021
6e11aba
[azidentity] Expiring resource rework w/ multi-tenant support (#15138)
catalinaperalta Jul 28, 2021
338f691
adding default logger functionality to internal (#15182)
seankane-msft Jul 28, 2021
ddb7c9b
Release v56.0.0 1627549243 (#15186)
Alancere Jul 29, 2021
d605899
[azcore] Remove logger from azcore (#15160)
seankane-msft Jul 29, 2021
44ce3f7
[build.ps1] Early return error if autorest fails (#15179)
chamons Jul 29, 2021
31c6299
Move stress testing scripts to eng/common (#15189)
azure-sdk Jul 29, 2021
dd77a64
Update README.md (#15177)
nickzhums Aug 2, 2021
9e6279d
remove race and covermode flags from test statement (#15200)
seankane-msft Aug 2, 2021
b6def71
[Azcore] simplify progress objects (#15194)
seankane-msft Aug 2, 2021
b381748
enhance build.ps1 script (#15191)
ArcturusZhang Aug 3, 2021
ca64141
update autorest.go version (#15208)
ArcturusZhang Aug 4, 2021
bfd0177
[tools/generator] add the template command (#15206)
ArcturusZhang Aug 4, 2021
883dbae
fix typo in template (#15213)
ArcturusZhang Aug 5, 2021
629243b
Release v56.1.0 1628127975 (#15212)
Alancere Aug 5, 2021
38454bc
Add ability to leave SourceBranch empty when queueing a build (builds…
azure-sdk Aug 5, 2021
63f7982
move verify link to the last step (#15220)
ArcturusZhang Aug 6, 2021
3fd42fc
redirect the output to stderr in gofmt checking so that we can give e…
ArcturusZhang Aug 6, 2021
6742bfa
Fix build status and code coverage badges (#15224)
jhendrixMSFT Aug 6, 2021
b977244
[azcore] Add ETag type to Core (#15207)
seankane-msft Aug 9, 2021
d1b9cd6
[azidentity] adding a changelog to azidentity (#15240)
seankane-msft Aug 9, 2021
0f6d5cb
[azcore] adding changelog (#15239)
seankane-msft Aug 9, 2021
627ed56
Release the track 2 `containerservice` module (#14792)
ArcturusZhang Aug 10, 2021
1c5c495
track2 generator service bus (#15214)
Alancere Aug 10, 2021
f03fab7
Track2 generator cosmos db (#15218)
Alancere Aug 10, 2021
83ac5ea
track2 generator postgresql (#15219)
Alancere Aug 10, 2021
5d4c727
track2 generator postgresql flexible servers (#15221)
Alancere Aug 10, 2021
9c98016
[EngSys] display output of go test (#15257)
seankane-msft Aug 10, 2021
57dce26
track2 generator event grid (#15249)
Alancere Aug 11, 2021
0122d53
Fixed small bugs (#15266)
TomArcherMsft Aug 11, 2021
837195d
Sync eng/common directory with azure-sdk-tools for PR 1866 (#15261)
azure-sdk Aug 11, 2021
04b833c
Refactor internal log package (#15265)
jhendrixMSFT Aug 11, 2021
8f2ce65
track2 release `armapimanagement` (#15250)
Alancere Aug 12, 2021
fbb4292
track2 generator operationalinsights (#15251)
Alancere Aug 12, 2021
ec6e202
track2 release `armeventhub` (#15252)
Alancere Aug 12, 2021
3431eff
track2 release `armredis` (#15253)
Alancere Aug 12, 2021
79a93a8
Web track2 release (#15193)
ArcturusZhang Aug 12, 2021
d1ac3e5
Release v56.2.0 1628747491 (#15270)
Alancere Aug 12, 2021
a22a530
Sync eng/common directory with azure-sdk-tools for PR 1894 (#15281)
azure-sdk Aug 13, 2021
599d93a
Renamed package runtime to diag (#15278)
jhendrixMSFT Aug 13, 2021
ae2c465
[azcore] JoinPaths will preserve query parameters (#15258)
seankane-msft Aug 13, 2021
48b276d
Sync eng/common directory with azure-sdk-tools for PR 1876 (#15279)
azure-sdk Aug 13, 2021
695791e
Removed and renamed some content (#15285)
jhendrixMSFT Aug 13, 2021
8cafe21
Add Rest Method checks to Prepare-Release (#15290)
azure-sdk Aug 13, 2021
25dbc53
Move logging to log package (#15287)
jhendrixMSFT Aug 13, 2021
9cfdc25
Fix resource clean-up script (#15289)
azure-sdk Aug 13, 2021
18d4a3b
Remove Response type (#15294)
jhendrixMSFT Aug 13, 2021
3a6d402
Add support for 'files' configuration (#15288)
azure-sdk Aug 16, 2021
2f77ce5
Prevent wildcard expansion in git sparse checkout add (#15286)
azure-sdk Aug 16, 2021
305ddd8
Sync eng/common directory with azure-sdk-tools for PR 1909 (#15302)
azure-sdk Aug 16, 2021
46932a3
Add errinfo package with error types (#15300)
jhendrixMSFT Aug 17, 2021
9099fb0
Enable API review approval check for Java spring packages (#15305)
azure-sdk Aug 17, 2021
dcc9108
Update to latest versions of Go (#15304)
jhendrixMSFT Aug 17, 2021
1c7a43a
Update to crypto secure random number generation (#15190)
RickWinter Aug 17, 2021
eb6d24c
Removing C:\Git\azure-sdk-tools\eng\common\scripts\FilterPoliCheckRes…
azure-sdk Aug 17, 2021
438c7e5
Fixed bugs in Resource Group demo code (#15301)
TomArcherMsft Aug 18, 2021
1eb47c1
Fix some misbehaving tests (#15309)
jhendrixMSFT Aug 18, 2021
67c3b75
adding dates to existing changelogs (#15306)
seankane-msft Aug 18, 2021
0954eba
Sync eng/common directory with azure-sdk-tools for PR 1912 (#15314)
azure-sdk Aug 18, 2021
060da49
Fix query batch processing (#15319)
azure-sdk Aug 18, 2021
cfe1683
fix: three dots path not work in linux in build script (#15297)
tadelesh Aug 19, 2021
93a97cc
Release v56.3.0 1629350585 (#15323)
Alancere Aug 19, 2021
fade7cd
Remove old unused update changelog script (#15326)
azure-sdk Aug 19, 2021
a304c2f
add clear output flag to build.ps1 (#15255)
ArcturusZhang Aug 20, 2021
dc2d9f4
[tools/generator] add automation and release command for track2 (#15271)
tadelesh Aug 20, 2021
cf0793e
Prevent ManagedIdentityCredential mutating GetToken arguments (#15331)
chlowell Aug 20, 2021
efdd837
[Azcore] bumps version of internal (#15347)
seankane-msft Aug 20, 2021
ea571ad
[azidentity] bump azcore and internal dependencies (#15348)
seankane-msft Aug 20, 2021
9ca25f0
Update CODEOWNERS (#15357)
chamons Aug 23, 2021
fd03092
introduce pipelines to the modules in tools directory (#14926)
ArcturusZhang Aug 24, 2021
516e08c
Sync eng/common directory with azure-sdk-tools for PR 1918 (#15317)
azure-sdk Aug 24, 2021
432dd76
bumping Build_Test to 1.16 and 1.17 (#15370)
seankane-msft Aug 24, 2021
bbf5386
Refactor azcore (#15349)
jhendrixMSFT Aug 26, 2021
607fc6e
Fix armresources documentation link (#15380)
chlowell Aug 26, 2021
407e135
Deprecate to module (#15387)
jhendrixMSFT Aug 26, 2021
590e183
Deprecate armcore module (#15386)
jhendrixMSFT Aug 26, 2021
40a2efb
Delete armcore and to modules (#15388)
jhendrixMSFT Aug 26, 2021
6606b7b
Add live test pipeline templates (#15382)
benbp Aug 26, 2021
29d1d8f
Stip empty changelog sections before release (#15397)
azure-sdk Aug 26, 2021
bd28092
Update link after package refactor (#15399)
RickWinter Aug 26, 2021
51cec61
Release v57.0.0 1630045276 (#15400)
Alancere Aug 27, 2021
7a0672b
Remove coverage goal parameter reference (#15398)
benbp Aug 27, 2021
97855f9
ensure test principal creation succeeds properly (#15402)
azure-sdk Aug 27, 2021
ef19efb
Update CODEOWNERS (#15389)
RickWinter Aug 27, 2021
46c7003
Update LICENSE (#15390)
RickWinter Aug 27, 2021
2bca90e
Sync eng/common directory with azure-sdk-tools for PR 1943 (#15406)
azure-sdk Aug 27, 2021
4445115
Update Contributing documentation (#15393)
RickWinter Aug 30, 2021
d59b896
Add CODE_OF_CONDUCT (#15391)
RickWinter Aug 30, 2021
d1dcbd5
Fix casing in CONTRIBUTING.md (#15410)
RickWinter Aug 30, 2021
af32bac
Update based on azcore refactor (#15383)
jhendrixMSFT Aug 30, 2021
e707753
Skip eng common workflow enforcer for private repos (#15411)
azure-sdk Aug 31, 2021
75194c5
Sync eng/common directory with azure-sdk-tools for PR 1953 (#15413)
azure-sdk Aug 31, 2021
df5ef04
upgrade autorest version 25->27 (#15417)
Alancere Aug 31, 2021
5133956
Return CredentialUnavailableError when IMDS has no assigned identity …
chlowell Aug 31, 2021
938095f
update template accordingly (#15419)
ArcturusZhang Sep 1, 2021
26ebb54
Updating azcore & azidentity changelog (#15423)
seankane-msft Sep 1, 2021
f31e284
Unexport AzureCLITokenProvider (#15427)
chlowell Sep 1, 2021
cfbc713
Make "Setup Versioning Properties" cancellable (#15430)
azure-sdk Sep 2, 2021
619b9be
Release v57.1.0 (#15437)
Alancere Sep 2, 2021
095b6e1
Release track 2 `armcompute` v0.3.0 (#15426)
Alancere Sep 2, 2021
0055632
Support v0 versions as prerelease beta versions (#15431)
azure-sdk Sep 2, 2021
19f00c3
[Internal] Add methods for configuring tests to work with test proxy …
seankane-msft Sep 2, 2021
b330531
Rebased with main
mohsha-msft Sep 2, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
16 changes: 8 additions & 8 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@

# Catch all for non-code project files and unowned files | folders
* @rickwinter @jhendrixMSFT
/sdk/ @rickwinter @jhendrixMSFT @richardpark-msft @seankane-msft @chamons
/sdk/ @rickwinter @chlowell @jhendrixMSFT @richardpark-msft @seankane-msft

# Samples
/samples/ @rickwinter @jhendrixMSFT @richardpark-msft @seankane-msft @chamons
/samples/ @rickwinter @chlowell @jhendrixMSFT @richardpark-msft @seankane-msft

# PRLabel: %Azure.Core
/sdk/azcore/ @rickwinter @jhendrixMSFT @richardpark-msft @seankane-msft @chamons
/sdk/azcore/ @rickwinter @chlowell @jhendrixMSFT @richardpark-msft @seankane-msft

# PRLabel: %Azure.Identity
/sdk/azidentity/ @rickwinter @jhendrixMSFT
/sdk/azidentity/ @rickwinter @chlowell

# PRLabel: %KeyVault
/sdk/keyvault/ @rickwinter @jhendrixMSFT
Expand All @@ -38,7 +38,7 @@
# SDK (track1 and track1.5)
#############

/profiles/ @ArcturusZhang @lirenhe
/services/ @ArcturusZhang @lirenhe
/storage/ @jhendrixMSFT
/version/ @ArcturusZhang @lirenhe
/profiles/ @ArcturusZhang @lirenhe
/services/ @ArcturusZhang @lirenhe
/storage/ @jhendrixMSFT
/version/ @ArcturusZhang @lirenhe
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# CHANGELOG

## `v57.1.0`

### New Packages

- `github.com/Azure/azure-sdk-for-go/services/mysql/mgmt/2021-05-01/mysqlflexibleservers`
- `github.com/Azure/azure-sdk-for-go/services/servicefabric/mgmt/2021-06-01/servicefabric`

## `v57.0.0`

### New Packages

- `github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2021-07-01/compute`
- `github.com/Azure/azure-sdk-for-go/services/dataprotection/mgmt/2021-07-01/dataprotection`
- `github.com/Azure/azure-sdk-for-go/services/guestconfiguration/mgmt/2021-01-25/guestconfiguration`
- `github.com/Azure/azure-sdk-for-go/services/netapp/mgmt/2021-06-01/netapp`
- `github.com/Azure/azure-sdk-for-go/services/network/mgmt/2021-03-01/network`
- `github.com/Azure/azure-sdk-for-go/services/preview/synapse/mgmt/2021-06-01-preview/synapse`

### Updated Packages

| Package Path | Changelog |
| :--- | :---: |
| `github.com/Azure/azure-sdk-for-go/services/datafactory/mgmt/2018-06-01/datafactory` | [details](https://github.com/Azure/azure-sdk-for-go/blob/v57.0.0/services/datafactory/mgmt/2018-06-01/datafactory/CHANGELOG.md) |

### Breaking Changes

| Package Path | Changelog |
| :--- | :---: |
| `github.com/Azure/azure-sdk-for-go/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration` | [details](https://github.com/Azure/azure-sdk-for-go/blob/v57.0.0/services/guestconfiguration/mgmt/2020-06-25/guestconfiguration/CHANGELOG.md) |
| `github.com/Azure/azure-sdk-for-go/services/postgresql/mgmt/2021-06-01/postgresqlflexibleservers` | [details](https://github.com/Azure/azure-sdk-for-go/blob/v57.0.0/services/postgresql/mgmt/2021-06-01/postgresqlflexibleservers/CHANGELOG.md) |
| `github.com/Azure/azure-sdk-for-go/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb` | [details](https://github.com/Azure/azure-sdk-for-go/blob/v57.0.0/services/preview/cosmos-db/mgmt/2021-03-01-preview/documentdb/CHANGELOG.md) |

## `v56.3.0`

### New Packages
Expand All @@ -10,7 +42,7 @@

| Package Path | Changelog |
| :--- | :---: |
| `github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2021-01-01-preview/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/tree/main/services/preview/apimanagement/mgmt/2021-01-01-preview/apimanagement/CHANGELOG.md) |
| `github.com/Azure/azure-sdk-for-go/services/preview/apimanagement/mgmt/2021-01-01-preview/apimanagement` | [details](https://github.com/Azure/azure-sdk-for-go/blob/v56.3.0/services/preview/apimanagement/mgmt/2021-01-01-preview/apimanagement/CHANGELOG.md) |

## `v56.2.0`

Expand Down
9 changes: 9 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Microsoft Open Source Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).

Resources:

- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
76 changes: 64 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
# Contributing
# Azure SDK for Go Contributing Guide

Thank you for your interest in contributing to Azure SDK for Go.

- For reporting bugs, requesting features, or asking for support, please file an issue in the [issues](https://github.com/Azure/azure-sdk-for-go/issues) section of the project.

- If you would like to become an active contributor to this project please follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](https://azure.github.io/azure-sdk/policies_opensource.html).

- To make code changes, or contribute something new, please follow the [GitHub Forks / Pull requests model](https://help.github.com/articles/fork-a-repo/): Fork the repo, make the change and propose it back by submitting a pull request.

## Pull Requests

- **DO** follow the API design and implementation [Go Guidelines](https://azure.github.io/azure-sdk/golang_introduction.html).
- When submitting large changes or features, **DO** have an issue or spec doc that describes the design, usage, and motivating scenario.
- **DO** submit all code changes via pull requests (PRs) rather than through a direct commit. PRs will be reviewed and potentially merged by the repo maintainers after a peer review that includes at least one maintainer.
- **DO** review your own PR to make sure there are no unintended changes or commits before submitting it.
- **DO NOT** submit "work in progress" PRs. A PR should only be submitted when it is considered ready for review and subsequent merging by the contributor.
- If the change is work-in-progress or an experiment, **DO** start off as a temporary draft PR.
- **DO** give PRs short-but-descriptive names (e.g. "Improve code coverage for Azure.Core by 10%", not "Fix #1234") and add a description which explains why the change is being made.
- **DO** refer to any relevant issues, and include [keywords](https://help.github.com/articles/closing-issues-via-commit-messages/) that automatically close issues when the PR is merged.
- **DO** tag any users that should know about and/or review the change.
- **DO** ensure each commit successfully builds. The entire PR must pass all tests in the Continuous Integration (CI) system before it'll be merged.
- **DO** address PR feedback in an additional commit(s) rather than amending the existing commits, and only rebase/squash them when necessary. This makes it easier for reviewers to track changes.
- **DO** assume that ["Squash and Merge"](https://github.com/blog/2141-squash-your-commits) will be used to merge your commit unless you request otherwise in the PR.
- **DO NOT** mix independent, unrelated changes in one PR. Separate real product/test code changes from larger code formatting/dead code removal changes. Separate unrelated fixes into separate PRs, especially if they are in different modules or files that otherwise wouldn't be changed.
- **DO** comment your code focusing on "why", where necessary. Otherwise, aim to keep it self-documenting with appropriate names and style.
- **DO** add [GoDoc style comments](https://azure.github.io/azure-sdk/golang_introduction.html#documentation-style) when adding new APIs or modifying header files.
- **DO** make sure there are no typos or spelling errors, especially in user-facing documentation.
- **DO** verify if your changes have impact elsewhere. For instance, do you need to update other docs or exiting markdown files that might be impacted?
- **DO** add relevant unit tests to ensure CI will catch future regressions.

## Merging Pull Requests (for project contributors with write access)

- **DO** use ["Squash and Merge"](https://github.com/blog/2141-squash-your-commits) by default for individual contributions unless requested by the PR author.
Do so, even if the PR contains only one commit. It creates a simpler history than "Create a Merge Commit".
Reasons that PR authors may request "Merge and Commit" may include (but are not limited to):

- The change is easier to understand as a series of focused commits. Each commit in the series must be buildable so as not to break `git bisect`.
- Contributor is using an e-mail address other than the primary GitHub address and wants that preserved in the history. Contributor must be willing to squash
the commits manually before acceptance.

## Developer Guide

### Repo structure

Most packages under the `services` directory in the SDK are generated from [Azure API specs][azure_rest_specs]
using [Azure/autorest.go][] and [Azure/autorest][]. These generated packages depend on the HTTP client implemented at [Azure/go-autorest][]. Therefore when contributing, please make sure you do not change anything under the `services` directory.
Expand All @@ -10,7 +53,24 @@ using [Azure/autorest.go][] and [Azure/autorest][]. These generated packages dep

For bugs or feature requests you can submit them using the [Github issues page][issues] and filling the appropriate template.

## Building
### Codespaces

Codespaces is new technology that allows you to use a container as your development environment. This repo provides a Codespaces container which is supported by both GitHub Codespaces and VS Code Codespaces.

#### GitHub Codespaces

1. From the Azure SDK GitHub repo, click on the "Code -> Open with Codespaces" button.
1. Open a Terminal. The development environment will be ready for you. Continue to [Building and Testing](https://github.com/Azure/azure-sdk-for-go/blob/main/CONTRIBUTING.md#building-and-testing).

#### VS Code Codespaces

1. Install the [VS Code Remote Extension Pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack)
1. When you open the Azure SDK for Go repo in VS Code, it will prompt you to open the project in the Dev Container. If it does not prompt you, then hit CTRL+P, and select "Remote-Containers: Open Folder in Container..."
1. Open a Terminal. The development environment will be ready for you. Continue to [Building and Testing](https://github.com/Azure/azure-sdk-for-go/blob/main/CONTRIBUTING.md#building-and-testing).

### Building and Testing

#### Building

SDKs are either old (track 1) or new (track 2):

Expand All @@ -23,14 +83,6 @@ To build, run `go build` from the respective SDK directory.

There currently is not a repository wide way to build or regenerate code.

## Guidelines and Code of Conduct

Also please see these [guidelines][guidelines] about contributing to Azure projects.

This project follows the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][cocfaq]. Contact [opencode@microsoft.com][cocmail] with questions and comments.
#### Testing

[guidelines]: https://opensource.microsoft.com/collaborate/
[coc]: https://opensource.microsoft.com/codeofconduct/
[cocfaq]: https://opensource.microsoft.com/codeofconduct/faq/
[cocmail]: mailto:opencode@microsoft.com
[issues]: https://github.com/Azure/Azure-sdk-for-go/issues
To test, run 'go test' from the respective directory.
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2021 Microsoft
Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
30 changes: 21 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,42 @@ trigger:
paths:
exclude:
- sdk/
- tools/generator
- tools/

pr:
paths:
exclude:
- sdk/
- tools/generator
- tools/

jobs:
- job: Build_Test
strategy:
matrix:
Linux_Go113:
Linux_Go116:
pool.name: azsdk-pool-mms-ubuntu-1804-general
go.version: '1.14'
Linux_Go114:
go.version: '1.16.7'
Linux_Go117:
pool.name: azsdk-pool-mms-ubuntu-1804-general
go.version: '1.15'
go.version: '1.17'

pool:
name: $(pool.name)

variables:
GOPATH: '$(system.defaultWorkingDirectory)/work'
sdkPath: '$(GOPATH)/src/github.com/$(build.repository.name)'
GO111MODULE: 'off'
IGNORE_BREAKING_CHANGES: true
go.list.filter: '| grep -v vendor | grep -v azure-sdk-for-go/sdk | grep -v azure-sdk-for-go/tools/generator'
go.test.filter: '-path ./vendor -prune -o -path ./sdk -prune -o -path ./tools/generator -prune'
go.list.filter: '| grep -v vendor | grep -v azure-sdk-for-go/sdk | grep -v azure-sdk-for-go/tools'
go.test.filter: '-path ./vendor -prune -o -path ./sdk -prune -o -path ./tools -prune'

steps:
- task: GoTool@0
inputs:
version: '$(go.version)'
displayName: "Select Go Version"

- script: |
set -e
mkdir -p '$(GOPATH)/bin'
Expand All @@ -47,6 +49,7 @@ jobs:
echo '##vso[task.prependpath]$(GOROOT)/bin'
echo '##vso[task.prependpath]$(GOPATH)/bin'
displayName: 'Create Go Workspace'

- script: |
set -e
go version
Expand All @@ -55,37 +58,46 @@ jobs:
go get -u golang.org/x/lint/golint
workingDirectory: '$(sdkPath)'
displayName: 'Install Dependencies'

- script: go vet -v $(go list ./... $(go.list.filter))
workingDirectory: '$(sdkPath)'
displayName: 'Vet'

- script: go build -v $(go list ./... $(go.list.filter))
workingDirectory: '$(sdkPath)'
displayName: 'Build'

- script: go test $(dirname $(find . $(go.test.filter) -name '*_test.go' -print) | sort -u)
workingDirectory: '$(sdkPath)'
displayName: 'Run Tests'

- template: /eng/common/pipelines/templates/steps/verify-links.yml
parameters:
Directory: '.'
ScriptDirectory: '$(sdkPath)/eng/common/scripts'
WorkingDirectory: '$(sdkPath)'
Urls: $(Get-ChildItem -Path '$(sdkPath)/*.md' -Recurse | Where {$_.FullName -notlike "*/vendor/*" -and $_.FullName -notlike "*/sdk/*"})

- script: go run ./tools/apidiff/main.go packages ./services FETCH_HEAD~1 FETCH_HEAD --copyrepo --breakingchanges || $IGNORE_BREAKING_CHANGES
workingDirectory: '$(sdkPath)'
displayName: 'Display Breaking Changes'

- script: go run ./tools/pkgchk/main.go ./services --exceptions ./tools/pkgchk/exceptions.txt
workingDirectory: '$(sdkPath)'
displayName: 'Verify Package Directory'

- script: grep -L -r --include *.go --exclude-dir vendor -P "Copyright (\d{4}|\(c\)) Microsoft" ./ | tee >&2
workingDirectory: '$(sdkPath)'
displayName: 'Copyright Header Check'
failOnStderr: true
condition: succeededOrFailed()

- script: gofmt -s -l -d $(find . -path ./vendor -prune -o -name '*.go' -print) >&2
workingDirectory: '$(sdkPath)'
displayName: 'Format Check'
failOnStderr: true
condition: succeededOrFailed()
condition: and(succeededOrFailed(), startsWith(variables['go.version'], '1.16'))

- script: |
golint ./storage/... >&2
workingDirectory: '$(sdkPath)'
Expand Down
10 changes: 5 additions & 5 deletions documentation/MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This document is intended for users that are familiar with an older version of the Azure SDK For Go for management modules (`services/**/mgmt/**`) and wish to migrate their application to the next version of Azure resource management libraries (`sdk/**/arm**`)

**For users new to the Azure SDK For Go for resource management modules, please see the [README for 'sdk/armcore`](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/armcore) and the README for every individual package.**
**For users new to the Azure SDK For Go for resource management modules, please see the [README for 'sdk/azcore`](https://github.com/Azure/azure-sdk-for-go/tree/main/sdk/azcore) and the README for every individual package.**

## Table of contents

Expand Down Expand Up @@ -40,7 +40,7 @@ To the show the code snippets for the change:
authorizer, err := adal.NewServicePrincipalToken(oAuthToken, "<ClientId>", "<ClientSecret>", endpoint)
client := resources.NewGroupsClient("<SubscriptionId>")
client.Authorizer = authorizer
```
```

**Equivalent in new version (`sdk/**/arm**`)**

Expand All @@ -54,7 +54,7 @@ For detailed information on the benefits of using the new authentication classes

### Error Handling

There are some minor changes in the error handling.
There are some minor changes in the error handling.

- When there is an error in the SDK request, in the old version (`services/**/mgmt/**`), the return value will all be non-nil, and you can get the raw HTTP response from the response value. In the new version (`sdk/**/arm**`), the first return value will be empty and you need to cast the error to `HTTPResponse` interface to get the raw HTTP response. When the request is successful and there is no error returned, you will need to get the raw HTTP response in `RawResponse` property of the first return value.

Expand Down Expand Up @@ -180,7 +180,7 @@ In new version (`sdk/**/arm**`), we use `(armcore.ConnectionOptions).PerCallPoli

Similar to the customized policy, there are changes regarding how the custom HTTP client is configured as well. You can now use the `(armcore.ConnectionOptions).HTTPClient` option in `github.com/Azure/azure-sdk-for-go/sdk/armcore` module to use your own implementation of HTTP client and plug in what they need into the configuration.

**In old version (`services/**/mgmt/**`)**
**In old version (`services/**/mgmt/**`)**
```go
httpClient := NewYourOwnHTTPClient{}
client := resources.NewGroupsClient("<SubscriptionId>")
Expand All @@ -199,4 +199,4 @@ client := armresources.NewResourceGroupsClient(connection, "<SubscriptionId>")

## Need help?

If you have encountered an issue during migration, please file an issue via [Github Issues](https://github.com/Azure/azure-sdk-for-go/issues) and make sure you add the "Preview" label to the issue
If you have encountered an issue during migration, please file an issue via [Github Issues](https://github.com/Azure/azure-sdk-for-go/issues) and make sure you add the "Preview" label to the issue
Loading