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

Azkeys Pull in latest main #15961

Merged
merged 56 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
84308db
Add ARM-specific bearer token policy (#15885)
jhendrixMSFT Oct 21, 2021
741976b
Update azservicebus test fake (#15735)
chlowell Oct 22, 2021
7b42645
Add release date for azcore v0.20.0 (#15915)
chlowell Oct 22, 2021
669b9c0
Increment version for azcore releases (#15919)
azure-sdk Oct 22, 2021
7c83e41
Fully automate cluster buildout. Add azure file share mount to stress…
azure-sdk Oct 22, 2021
42f5f0c
Fix azidentity CI (#15886)
chlowell Oct 22, 2021
91e699a
Add DefaultAzureCredential struct (#15759)
chlowell Oct 22, 2021
6f3d959
Add AzureCLICredentialOptions.TenantID (#15761)
chlowell Oct 23, 2021
ac83b46
Changed ThroughputOptions to use azcore Etag (#15900)
jay-most Oct 25, 2021
56f3d24
[azservicebus] Cleanup/changes from API review (removal of processor …
richardpark-msft Oct 25, 2021
3899bec
Clean up/organize script and json files in top level directory (#15453)
benbp Oct 25, 2021
9b1992f
[Cosmos DB] [API Review] Move to azcore 0.20 and fit and finish (#15927)
ealsur Oct 25, 2021
7b31812
Set floor of one second for polling delay (#15905)
jhendrixMSFT Oct 26, 2021
98ceeb4
Release sdk/resourcemanager/streamanalytics/armstreamanalytics v0.1.0…
Alancere Oct 26, 2021
8444944
Release sdk/resourcemanager/databricks/armdatabricks v0.1.0 (#15842)
Alancere Oct 26, 2021
2d7273a
Release sdk/resourcemanager/scheduler/armscheduler v0.1.0 (#15843)
Alancere Oct 26, 2021
acf305b
Release sdk/resourcemanager/notificationhubs/armnotificationhubs v0.1…
Alancere Oct 26, 2021
cd1c4c5
Release sdk/resourcemanager/search/armsearch v0.1.0 (#15846)
Alancere Oct 26, 2021
c5a6822
Release sdk/resourcemanager/alertsmanagement/armalertsmanagement v0.1…
Alancere Oct 26, 2021
dd15cd0
Release sdk/resourcemanager/mediaservices/armmediaservices v0.1.0 (#1…
Alancere Oct 26, 2021
3759dee
Release sdk/resourcemanager/cognitiveservices/armcognitiveservices v0…
Alancere Oct 26, 2021
f68a974
Release sdk/resourcemanager/relay/armrelay v0.1.0 (#15892)
Alancere Oct 26, 2021
ee13f55
Release sdk/resourcemanager/managementgroups/armmanagementgroups v0.1…
Alancere Oct 26, 2021
802eda0
Align azidentity environment variables with other SDKs (#15928)
chlowell Oct 26, 2021
aa9a61a
[Cosmos DB] Use time.Time to represent Timestamps/LastModified (#15939)
ealsur Oct 26, 2021
95133e6
Add latest released version to prepare prerelease (#15941)
azure-sdk Oct 26, 2021
2f1cf83
Release sdk/resourcemanager/resourcehealth/armresourcehealth v0.1.0 (…
Alancere Oct 27, 2021
a79593a
[azservicebus] Allow for renewing message and session locks (#15929)
richardpark-msft Oct 27, 2021
af2ae9a
Updating codeowners for Service Bus (#15943)
richardpark-msft Oct 27, 2021
f8d75ec
Remove old CI parameter (#15947)
richardpark-msft Oct 27, 2021
a3502cd
Release sdk/resourcemanager/datalake-analytics/armdatalakeanalytics v…
Alancere Oct 27, 2021
87fc4ef
Increment version for resourcemanager/resourcehealth/armresourcehealt…
azure-sdk Oct 27, 2021
0804c63
Increment version for resourcemanager/managementgroups/armmanagementg…
azure-sdk Oct 27, 2021
3f489cc
Increment version for resourcemanager/mediaservices/armmediaservices …
azure-sdk Oct 27, 2021
860956c
Increment version for resourcemanager/relay/armrelay releases (#15948)
azure-sdk Oct 27, 2021
846d5fe
Increment version for resourcemanager/databricks/armdatabricks releas…
azure-sdk Oct 27, 2021
b2058ad
Increment version for resourcemanager/streamanalytics/armstreamanalyt…
azure-sdk Oct 27, 2021
0c3d3e7
Increment version for resourcemanager/servicefabric/armservicefabric …
azure-sdk Oct 27, 2021
9055334
Increment version for resourcemanager/mysql/armmysqlflexibleservers r…
azure-sdk Oct 27, 2021
4588db9
Increment version for resourcemanager/appplatform/armappplatform rele…
azure-sdk Oct 27, 2021
d82c8b9
update version number (#15850)
ArcturusZhang Oct 27, 2021
568a98a
Increment version for resourcemanager/datalake-analytics/armdatalakea…
azure-sdk Oct 27, 2021
c95cbe4
Increment package version after release of resourcemanager/cognitives…
azure-sdk Oct 27, 2021
c6b31f1
Increment package version after release of resourcemanager/notificati…
azure-sdk Oct 27, 2021
3350a29
Increment package version after release of resourcemanager/alertsmana…
azure-sdk Oct 27, 2021
8e452d7
Increment package version after release of resourcemanager/search/arm…
azure-sdk Oct 27, 2021
c78147d
Increment package version after release of resourcemanager/scheduler/…
azure-sdk Oct 27, 2021
5e0ea22
Increment package version after release of resourcemanager/operations…
azure-sdk Oct 27, 2021
6293ce3
Increment package version after release of resourcemanager/mysql/armm…
azure-sdk Oct 27, 2021
0fae3a6
Increment package version after release of resourcemanager/recoveryse…
azure-sdk Oct 27, 2021
2f76e09
Increment package version after release of resourcemanager/datalake-s…
azure-sdk Oct 27, 2021
0be7c6b
Increment version for resourcemanager/iothub/armiothub releases (#15832)
azure-sdk Oct 27, 2021
394eecb
Increment version for resourcemanager/security/armsecurity releases (…
azure-sdk Oct 27, 2021
47db7e2
Revise azidentity errors (#15924)
chlowell Oct 27, 2021
3876032
using latest main
seankane-msft Oct 27, 2021
b9e944f
missing coverage for sb
seankane-msft Oct 27, 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
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
# PRLabel: %Tables
/sdk/data/aztables/ @seankane-msft @jhendrixMSFT

# PRLabel: %Service Bus
/sdk/messaging/azservicebus @richardpark-msft @jhendrixMSFT

# PRLabel: %Mgmt
/sdk/resourcemanager/ @ArcturusZhang @lirenhe

Expand Down
8 changes: 6 additions & 2 deletions eng/common/scripts/Prepare-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,15 @@ else
$releaseDateString = $ParsedReleaseDate.ToString("MM/dd/yyyy")
$month = $ParsedReleaseDate.ToString("MMMM")

Write-Host
Write-Host "Assuming release is in $month with release date $releaseDateString" -ForegroundColor Green
if (Test-Path "Function:GetExistingPackageVersions")
{
$releasedVersions = GetExistingPackageVersions -PackageName $packageProperties.Name -GroupId $packageProperties.Group
$latestReleasedVersion = $releasedVersions[$releasedVersions.Count - 1]
Write-Host "Latest released version: ${latestReleasedVersion}" -ForegroundColor Green
}

$currentProjectVersion = $packageProperties.Version

$newVersion = Read-Host -Prompt "Input the new version, or press Enter to use use current project version '$currentProjectVersion'"

if (!$newVersion)
Expand Down
4 changes: 2 additions & 2 deletions eng/common/scripts/stress-testing/deploy-stress-tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ function DeployStressTests(
[string]$environment = 'test',
[string]$repository = 'images',
[boolean]$pushImages = $false,
[string]$clusterGroup = 'rg-stress-test-cluster-',
[string]$clusterGroup = 'rg-stress-cluster-test',
[string]$deployId = 'local',
[string]$subscription = 'Azure SDK Test Resources'
[string]$subscription = 'Azure SDK Developer Playground'
) {
if ($PSCmdlet.ParameterSetName -eq 'DoLogin') {
Login $subscription $clusterGroup $pushImages
Expand Down
36 changes: 20 additions & 16 deletions eng/config.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
{
"Packages": [
{
"Name": "azidentity",
"CoverageGoal": 0.68
"Name": "azblob",
"CoverageGoal": 0.45
},
{
"Name": "azcore",
"CoverageGoal": 0.85
},
{
"Name": "azcosmos",
"CoverageGoal": 0.40
},
{
"Name": "azcore",
"CoverageGoal": 0.85
"Name": "azidentity",
"CoverageGoal": 0.68
},
{
"Name": "internal",
"CoverageGoal": 0.70
"Name": "azkeys",
"CoverageGoal": 0.72
},
{
"Name": "data",
"CoverageGoal": 0.62
"Name": "azsecrets",
"CoverageGoal": 0.76
},
{
"Name": "azblob",
"CoverageGoal": 0.45
"Name": "azservicebus",
"CoverageGoal": 0.24
},
{
"Name": "messaging",
"CoverageGoal": 0.10
"Name": "data",
"CoverageGoal": 0.62
},
{
"Name": "azsecrets",
"CoverageGoal": 0.76
"Name": "eng/tools",
"CoverageGoal": 0.0
},
{
"Name": "azkeys",
"CoverageGoal": 0.72
"Name": "internal",
"CoverageGoal": 0.70
}
]
}
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion eng/tools/generator/autorest/model/generateOptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"io/ioutil"
)

// GenerateOptions deserialize from generate_options.json file in root directory of azure-sdk-for-go
// GenerateOptions deserialize from eng/generate_options.json file in root directory of azure-sdk-for-go
type GenerateOptions struct {
AutorestArguments []string `json:"autorestArguments"`
AdditionalOptions []string `json:"additionalOptions,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion eng/tools/generator/common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package common

const (
// DefaultOptionPath the default path of the option file
DefaultOptionPath = "generate_options.json"
DefaultOptionPath = "eng/generate_options.json"

Services = "services"
ChangelogFilename = "CHANGELOG.md"
Expand Down
1 change: 0 additions & 1 deletion findTestedPackages.sh

This file was deleted.

11 changes: 11 additions & 0 deletions sdk/azcore/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Release History

## 0.20.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 0.20.0 (2021-10-22)

### Breaking Changes
Expand All @@ -18,6 +28,7 @@
* Added string typdef `arm.Endpoint` to provide a hint toward expected ARM client endpoints
* `azcore.ClientOptions` contains common pipeline configuration settings
* Added support for multi-tenant authorization in `arm/runtime`
* Require one second minimum when calling `PollUntilDone()`

### Bug Fixes
* Fixed a potential panic when creating the default Transporter.
Expand Down
12 changes: 6 additions & 6 deletions sdk/azcore/arm/runtime/poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func TestNewPollerAsync(t *testing.T) {
t.Fatal(err)
}
var result mockType
_, err = poller.PollUntilDone(context.Background(), 10*time.Millisecond, &result)
_, err = poller.PollUntilDone(context.Background(), time.Second, &result)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -147,7 +147,7 @@ func TestNewPollerBody(t *testing.T) {
t.Fatal(err)
}
var result mockType
_, err = poller.PollUntilDone(context.Background(), 10*time.Millisecond, &result)
_, err = poller.PollUntilDone(context.Background(), time.Second, &result)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -184,7 +184,7 @@ func TestNewPollerLoc(t *testing.T) {
t.Fatal(err)
}
var result mockType
_, err = poller.PollUntilDone(context.Background(), 10*time.Millisecond, &result)
_, err = poller.PollUntilDone(context.Background(), time.Second, &result)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -215,7 +215,7 @@ func TestNewPollerInitialRetryAfter(t *testing.T) {
t.Fatalf("unexpected poller type %s", pt.String())
}
var result mockType
_, err = poller.PollUntilDone(context.Background(), 10*time.Millisecond, &result)
_, err = poller.PollUntilDone(context.Background(), time.Second, &result)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -273,7 +273,7 @@ func TestNewPollerFailedWithError(t *testing.T) {
t.Fatalf("unexpected poller type %s", pt.String())
}
var result mockType
_, err = poller.PollUntilDone(context.Background(), 10*time.Millisecond, &result)
_, err = poller.PollUntilDone(context.Background(), time.Second, &result)
if err == nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -309,7 +309,7 @@ func TestNewPollerSuccessNoContent(t *testing.T) {
t.Fatal(err)
}
var result mockType
_, err = poller.PollUntilDone(context.Background(), 10*time.Millisecond, &result)
_, err = poller.PollUntilDone(context.Background(), time.Second, &result)
if err != nil {
t.Fatal(err)
}
Expand Down
6 changes: 4 additions & 2 deletions sdk/azcore/internal/pollers/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ func (l *Poller) FinalResponse(ctx context.Context, respType interface{}) (*http
// PollUntilDone will handle the entire span of the polling operation until a terminal state is reached,
// then return the final HTTP response for the polling operation and unmarshal the content of the payload
// into the respType interface that is provided.
// freq - the time to wait between polling intervals if the endpoint doesn't send a Retry-After header.
// A good starting value is 30 seconds. Note that some resources might benefit from a different value.
// freq - the time to wait between intervals in absence of a Retry-After header. Minimum is one second.
func (l *Poller) PollUntilDone(ctx context.Context, freq time.Duration, respType interface{}) (*http.Response, error) {
if freq < time.Second {
return nil, errors.New("polling frequency minimum is one second")
}
start := time.Now()
logPollUntilDoneExit := func(v interface{}) {
log.Writef(log.EventLRO, "END PollUntilDone() for %T: %v, total time: %s", l.lro, v, time.Since(start))
Expand Down
15 changes: 11 additions & 4 deletions sdk/azcore/internal/pollers/poller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ func TestNewPoller(t *testing.T) {
t.Fatal("unexpected empty resume token")
}
resp, err = p.PollUntilDone(context.Background(), 1*time.Millisecond, nil)
if err == nil {
t.Fatal("unexpected nil error")
}
if resp != nil {
t.Fatal("expected nil response")
}
resp, err = p.PollUntilDone(context.Background(), time.Second, nil)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -167,7 +174,7 @@ func TestNewPollerWithFinalGET(t *testing.T) {
Shape string `json:"shape"`
}
var w widget
resp, err := p.PollUntilDone(context.Background(), 1*time.Millisecond, &w)
resp, err := p.PollUntilDone(context.Background(), time.Second, &w)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -198,7 +205,7 @@ func TestNewPollerFail1(t *testing.T) {
p := NewPoller(&fakePoller{Ep: srv.URL()}, firstResp, pl, func(*http.Response) error {
return errors.New("failed")
})
resp, err := p.PollUntilDone(context.Background(), 1*time.Millisecond, nil)
resp, err := p.PollUntilDone(context.Background(), time.Second, nil)
if err == nil {
t.Fatal("unexpected nil error")
} else if s := err.Error(); s != "failed" {
Expand All @@ -221,7 +228,7 @@ func TestNewPollerFail2(t *testing.T) {
p := NewPoller(&fakePoller{Ep: srv.URL()}, firstResp, pl, func(*http.Response) error {
return errors.New("failed")
})
resp, err := p.PollUntilDone(context.Background(), 1*time.Millisecond, nil)
resp, err := p.PollUntilDone(context.Background(), time.Second, nil)
if err == nil {
t.Fatal("unexpected nil error")
} else if s := err.Error(); s != "failed" {
Expand All @@ -244,7 +251,7 @@ func TestNewPollerError(t *testing.T) {
p := NewPoller(&fakePoller{Ep: srv.URL()}, firstResp, pl, func(*http.Response) error {
return errors.New("failed")
})
resp, err := p.PollUntilDone(context.Background(), 1*time.Millisecond, nil)
resp, err := p.PollUntilDone(context.Background(), time.Second, nil)
if err == nil {
t.Fatal("unexpected nil error")
} else if s := err.Error(); s != "fatal" {
Expand Down
2 changes: 1 addition & 1 deletion sdk/azcore/internal/shared/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ const (
Module = "azcore"

// Version is the semantic version (see http://semver.org) of this module.
Version = "v0.20.0"
Version = "v0.20.1"
)
1 change: 1 addition & 0 deletions sdk/azcore/runtime/policy_retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ func setDefaults(o *policy.RetryOptions) {
if o.StatusCodes == nil {
o.StatusCodes = []int{
http.StatusRequestTimeout, // 408
http.StatusTooManyRequests, // 429
http.StatusInternalServerError, // 500
http.StatusBadGateway, // 502
http.StatusServiceUnavailable, // 503
Expand Down
Loading