Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
42042bb
[AutoRelease] t2-network-2021-10-21-48085 (#21357)
Oct 22, 2021
32d0f2b
Removed auto pagination (#21358)
tasherif-msft Oct 22, 2021
7c09594
[Cosmos] get_user_client() method documentation update (#21379)
simorenoh Oct 22, 2021
a2a8d47
Fully automate cluster buildout. Add azure file share mount to stress…
azure-sdk Oct 22, 2021
03186ba
update error code in tests (#21362)
kristapratico Oct 22, 2021
b5d4fea
[formrecognizer] Rename DocumentElement to DocumentContentElement (#2…
catalinaperalta Oct 22, 2021
cc6e413
[AutoRelease] t2-keyvault-2021-10-15-69767 (#21276)
Oct 25, 2021
edbbcf9
[AutoRelease] t2-chaos-2021-10-25-61789 (#21390)
Oct 25, 2021
a528c7c
[AVA] Updated sdk to 1.1 (#21326)
hivyas Oct 26, 2021
7814c4b
[AutoRelease] t2-azurearcdata-2021-10-14-24172 (#21251)
Oct 26, 2021
2e92f43
[AutoRelease] t2-containerregistry-2021-10-26-15283 (#21410)
Oct 26, 2021
84a9eb6
[AutoRelease] t2-cosmosdb-2021-10-26-16894 (#21412)
Oct 26, 2021
652f6e8
Update reply comment (#21399)
BigCat20196 Oct 26, 2021
03bebad
[textanalytics] feature/ta-v3.2-preview.2 (#21409)
kristapratico Oct 26, 2021
315ef05
Add latest released version to prepare prerelease (#21420)
azure-sdk Oct 26, 2021
84affee
remove unnecessary awaits in test (#21423)
iscai-msft Oct 26, 2021
b2d5e8e
Update Monitor Query library samples (#21371)
scottaddie Oct 26, 2021
fc7cd6f
[core] remove asynciterable inclusion in 2.7 HttpRequest content keyw…
iscai-msft Oct 26, 2021
a62fe66
fix doc about duplicate actions (#21429)
kristapratico Oct 27, 2021
944dfee
[core] fix "read" not awaited warning in ContentDecodePolicy for asyn…
iscai-msft Oct 27, 2021
51786d0
fix assertion for signature type fields (#21428)
catalinaperalta Oct 27, 2021
9ef0dce
Auto check base branch (#21441)
RAY-316 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
  •  
  •  
  •  
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
6 changes: 3 additions & 3 deletions scripts/auto_release/PythonSdkLiveTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
export AZURE_CLIENT_ID=$(ENV_CLIENT_ID)
export AZURE_CLIENT_SECRET=$(ENV_CLIENT_SECRET)
export AZURE_SUBSCRIPTION_ID=$(ENV_SUBSCRIPTION_ID)
export ISSUE_LINK=$(ISSUE_LINK)
export UPDATE_TOKEN=$(UPDATE_TOKEN)
export USR_TOKEN=$(USR_TOKEN)

# run
cd azure-sdk-for-python
Expand All @@ -74,12 +77,9 @@ jobs:
# create PR
export NEW_BRANCH=`sed -n '1p' $output_path/output.txt`
export TARGET_BRANCH=`sed -n '2p' $output_path/output.txt`
export ISSUE_LINK=$(ISSUE_LINK)
export PIPELINE_LINK=$(PIPELINE_LINK)
export USR_NAME=$(USR_NAME)
export USR_TOKEN=$(USR_TOKEN)
export TEST_RESULT=$test_result
export UPDATE_TOKEN=$(UPDATE_TOKEN)

python $script_path/create_auto_release_pr.py
echo "\'[AutoRelease] $new_branch \' has been created!!!"
Expand Down
2 changes: 1 addition & 1 deletion scripts/auto_release/create_auto_release_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ def main():
# Add issue link on PR
api = GhApi(owner='Azure', repo='azure-sdk-for-python', token=os.getenv('UPDATE_TOKEN'))
api.issues.create_comment(issue_number=pr_number, body='issue link:{}'.format(os.getenv('ISSUE_LINK')))

if __name__ == '__main__':
main()
10 changes: 9 additions & 1 deletion scripts/auto_release/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import time
import argparse
import logging
from ghapi.all import GhApi


SERVICE_NAME = 'servicename'
Expand Down Expand Up @@ -157,6 +158,12 @@ def edit_version(add_content):
if TRACK == '1' and VERSION_LAST_RELEASE[0] == '0':
num = VERSION_LAST_RELEASE.split('.')
VERSION_NEW = f'{num[0]}.{int(num[1]) + 1}.0'
# '0.0.0' means there must be abnormal situation
if VERSION_NEW == '0.0.0':
api_request = GhApi(owner='Azure', repo='sdk-release-request', token=os.getenv('UPDATE_TOKEN'))
link = os.getenv('ISSUE_LINK')
issue_number = link.split('/')[-1]
api_request.issues.add_labels(issue_number=int(issue_number), labels=['base-branch-attention'])


def edit_changelog(add_content):
Expand Down Expand Up @@ -459,4 +466,5 @@ def main():
my_print(e)
else:
with open(f'{OUT_PATH}/output.txt', 'w') as file_out:
file_out.writelines([f'{NEW_BRANCH}\n', "main" if TRACK == '2' else 'release/v3'])
file_out.writelines([f'{NEW_BRANCH}\n', "main\n" if TRACK == '2' else 'release/v3\n'])

24 changes: 15 additions & 9 deletions scripts/release_issue_status/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
_NULL = ' '
_FILE_OUT = 'release_issue_status.csv'
_FILE_OUT_PYTHON = 'release_python_status.md'
_PYTHON_SDK_ADMINISTRATORS = {'msyyc', 'RAY-316', 'BigCat20196'}
_PYTHON_SDK_ADMINISTRATORS = ['msyyc', 'RAY-316', 'BigCat20196']
_PYTHON_SDK_ASSIGNEES = ['RAY-316', 'BigCat20196']
_ASSIGNER_DICT = {'RAY-316': os.getenv('ZED_TOKEN'), 'BigCat20196': os.getenv('JF_TOKEN')}
logging.basicConfig(level=logging.INFO,
format='[auto-reply log] - %(funcName)s[line:%(lineno)d] - %(levelname)s: %(message)s')

Expand Down Expand Up @@ -128,7 +130,7 @@ def _latest_comment_time(comments, delay_from_create_date):
return delay_from_create_date if not q else int((time.time() - q[-1][0]) / 3600 / 24)


def auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python_piplines):
def auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python_piplines, assigner_repoes):
logging.info("new issue number: {}".format(item.issue_object.number))

if 'auto-link' not in item.labels:
Expand Down Expand Up @@ -156,8 +158,9 @@ def auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python
try:
logging.info(python_piplines)
pipeline_url = get_pipeline_url(python_piplines, output_folder)
assigner_repo = assigner_repoes[item.assignee]
rg.begin_reply_generate(item=item, rest_repo=rest_repo, readme_link=readme_link,
sdk_repo=sdk_repo, pipeline_url=pipeline_url)
sdk_repo=sdk_repo, pipeline_url=pipeline_url, assigner_repo=assigner_repo)
if 'Configured' in item.labels:
item.issue_object.remove_from_labels('Configured')
except Exception as e:
Expand All @@ -170,8 +173,11 @@ def auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python
def main():
# get latest issue status
g = Github(os.getenv('TOKEN')) # please fill user_token
assigner_repoes = {}
for k, v in _ASSIGNER_DICT.items():
assigner_repoes[k] = Github(v).get_repo('Azure/sdk-release-request')
request_repo = g.get_repo('Azure/sdk-release-request')
rest_repo = g.get_repo('Azure/azure-rest-api-specs')
rest_repo = g.get_repo('Azure/azure-rest-api-specs')
sdk_repo = g.get_repo('Azure/azure-sdk-for-python')
label1 = request_repo.get_label('ManagementPlane')
open_issues = request_repo.get_issues(state='open', labels=[label1])
Expand Down Expand Up @@ -226,13 +232,13 @@ def main():
item.bot_advice = 'new issue and better to confirm quickly.'
if 'assigned' not in item.labels:
time.sleep(0.1)
assign_count = int(str(time.time())[-1]) % 2
if assign_count == 1:
item.issue_object.remove_from_assignees(*['RAY-316'])
item.issue_object.add_to_assignees(*['BigCat20196'])
assign_count = int(str(time.time())[-1]) % len(_PYTHON_SDK_ASSIGNEES)
item.issue_object.remove_from_assignees(item.assignee)
item.issue_object.add_to_assignees(_PYTHON_SDK_ASSIGNEES[assign_count])
item.assignee=item.issue_object.assignee.login
item.issue_object.add_to_labels('assigned')
try:
auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python_piplines)
auto_reply(item, request_repo, rest_repo, sdk_repo, duplicated_issue, python_piplines, assigner_repoes)
except Exception as e:
continue
elif not item.author_latest_comment in _PYTHON_SDK_ADMINISTRATORS:
Expand Down
2 changes: 2 additions & 0 deletions scripts/release_issue_status/release_issue_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
export HEADERS=$(PIPELINE_HEADERS)
export URL=$(PIPELINE_URL)
export PIPELINE_TOKEN=$(PIPELINE-TOKEN)
export JF_TOKEN=$(Jiefeng-GitToken)
export ZED_TOKEN=$(Zed-GitToken)
export COOKIE=$(USR_TOKEN)

# create virtual env
Expand Down
11 changes: 7 additions & 4 deletions scripts/release_issue_status/reply_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ def get_latest_pr_from_readme(rest_repo, link_dict):
return latest_pr_number_int[-1]


def reply_owner(reply_content):
issue_object_rg.create_comment(reply_content)
def reply_owner(assigner_issue, reply_content):
assigner_issue.create_comment(reply_content)
user_tips = 'Tips: If you have special needs for release date or other things, please let us know. Otherwise we will release it ASAP after your check.'
assigner_issue.create_comment(user_tips)



Expand All @@ -74,7 +76,7 @@ def get_reply_and_sdk_number_from_readme(rest_repo, link_dict):
return info_model, sdk_link_number


def begin_reply_generate(item, rest_repo, readme_link, sdk_repo, pipeline_url):
def begin_reply_generate(item, rest_repo, readme_link, sdk_repo, pipeline_url, assigner_repo):
global issue_object_rg
issue_object_rg = item.issue_object
link_dict = get_links(readme_link)
Expand All @@ -91,7 +93,8 @@ def begin_reply_generate(item, rest_repo, readme_link, sdk_repo, pipeline_url):
logging.info(f'{issue_object_rg.number} run pipeline successfully')
else:
logging.info(f'{issue_object_rg.number} run pipeline fail')
reply_owner(reply_content)
assigner_issue = assigner_repo.get_issue(number=issue_object_rg.number)
reply_owner(assigner_issue, reply_content)
issue_object_rg.add_to_labels('auto-ask-check')
else:
logging.info('issue {} need config readme'.format(issue_object_rg.number))
7 changes: 7 additions & 0 deletions sdk/azurearcdata/azure-mgmt-azurearcdata/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release History

## 1.0.0 (2021-10-26)

**Features**

- Model DataControllerProperties has a new parameter logs_dashboard_credential
- Model DataControllerProperties has a new parameter metrics_dashboard_credential

## 1.0.0b1 (2021-09-15)

* Initial Release
2 changes: 1 addition & 1 deletion sdk/azurearcdata/azure-mgmt-azurearcdata/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "e23a590abc2f98437bafac9da5ccd608b2981a45",
"commit": "b28a542b3eb4f2f4f384b14b635d0a835df818cd",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/azurearcdata/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.4.5",
"readme": "specification/azurearcdata/resource-manager/readme.md"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-08-01"
self.api_version = "2021-11-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-azurearcdata/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-08-01",
"total_api_version_list": ["2021-08-01"],
"chosen_version": "2021-11-01",
"total_api_version_list": ["2021-11-01"],
"client": {
"name": "AzureArcDataManagementClient",
"filename": "_azure_arc_data_management_client",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "1.0.0b1"
VERSION = "1.0.0"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-08-01"
self.api_version = "2021-11-01"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-azurearcdata/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def list_in_subscription(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -133,7 +133,7 @@ def list_in_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -197,7 +197,7 @@ async def _put_data_controller_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -325,7 +325,7 @@ async def _delete_data_controller_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -445,7 +445,7 @@ async def get_data_controller(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -507,7 +507,7 @@ async def patch_data_controller(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def list(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -133,7 +133,7 @@ def list_by_resource_group(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

def prepare_request(next_link=None):
Expand Down Expand Up @@ -207,7 +207,7 @@ async def get(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -256,7 +256,7 @@ async def _create_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down Expand Up @@ -384,7 +384,7 @@ async def _delete_initial(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
accept = "application/json"

# Construct URL
Expand Down Expand Up @@ -507,7 +507,7 @@ async def update(
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2021-08-01"
api_version = "2021-11-01"
content_type = kwargs.pop("content_type", "application/json")
accept = "application/json"

Expand Down
Loading