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

Moary/test monitor #3

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a450063
Fix logging statement (#41020)
logresearch Jul 5, 2024
a747dd7
Delete eng/common/InterdependencyGraph.html which is unused. (#41002)
azure-sdk Jul 5, 2024
c6a5739
for dpg typespec, use DEFAULT_VERSION as current_version if require_s…
XiaofeiCao Jul 8, 2024
f75ef6a
update latest version (#41024)
XiaofeiCao Jul 8, 2024
4a6947d
fix variable (#41034)
XiaofeiCao Jul 8, 2024
85861d0
Small Change to isPauseOnStart (#40977)
amariwest-msft Jul 8, 2024
ca7f2a5
fixed #31610 (#41017)
mssfang Jul 8, 2024
9c96012
[TA] Migrate azure-json for those models introduced at v1 version (…
mssfang Jul 8, 2024
33c79f2
Fix spring autoconfigure test (#40980)
conniey Jul 8, 2024
90e6992
Update GitHubEventProcessor version to 1.0.0-dev.20240708.1 (#41044)
azure-sdk Jul 8, 2024
8aa025d
Revert "Fix spring autoconfigure test (#40980)" (#41046)
conniey Jul 8, 2024
54a6d65
Azure Monitor: Use pipelines credential for live tests (#41028)
srnagar Jul 8, 2024
a17077a
Make @Azure/azure-sdk-eng the owner of .github/workflows (#41050)
JimSuplizio Jul 8, 2024
53a7d6f
Increment versions for eventhubs releases (#40834)
azure-sdk Jul 8, 2024
50e9583
added withResponse overload method for ImageGeneration (#41047)
mssfang Jul 8, 2024
849dc0f
Fix Azure AI Search Sample Issues (#40355)
Menghua1 Jul 8, 2024
1ea9aa3
Migrate azure-communication-common to azure-json. (#40952)
conniey Jul 8, 2024
1ee90bf
Sync eng/common directory with azure-sdk-tools for PR 8558 (#41006)
azure-sdk Jul 8, 2024
e6ef11b
migrate azure messaging servicebus tests to use token auth. (#41032)
anuchandy Jul 9, 2024
3b7e612
maven build fail exclude from scriptError (#41039)
XiaofeiCao Jul 9, 2024
6b78a86
Minor cleanup of azure-monitor-ingestion (#40925)
alzimmermsft Jul 9, 2024
35d170b
Add link to Azure CA details outlining baseline Java support (#40832)
alzimmermsft Jul 9, 2024
c553ec1
Honor EnvVars from `ci.yml` (#41054)
scbedd Jul 9, 2024
b8b9017
Increment versions for servicebus releases (#40775)
azure-sdk Jul 9, 2024
6707fa2
Allow DefaultLogger to integrate better with newer versions of SLF4J …
alzimmermsft Jul 9, 2024
56db270
Added metrics and tracing for ReadMany operations (#41042)
FabianMeiswinkel Jul 9, 2024
df4cce0
Like Credentials also copy connection string properties when cloning …
anuchandy Jul 9, 2024
9fc5f6d
Update many READMEs with Java 8 Azure CA information (#41066)
alzimmermsft Jul 9, 2024
85a16ab
Migrate azure security confidential ledger tests to use token auth. (…
anuchandy Jul 9, 2024
cd9840b
Remove defunct parameters being passed to templates (#41070)
JimSuplizio Jul 9, 2024
a084413
Azure Monitor Metrics: Enable sovereign cloud support (#41048)
srnagar Jul 9, 2024
b35d30b
[Face] Update CODEOWNERS for Face (#41074)
mssfang Jul 10, 2024
b5bb251
[Automation] Generate SDK based on TypeSpec 0.18.0 (#41080)
azure-sdk Jul 10, 2024
dd3ada7
Update CHANGELOG ahead of beta release (#41076)
vcolin7 Jul 10, 2024
c75341e
Increment package versions for keyvault releases (#41084)
azure-sdk Jul 10, 2024
667817f
migrate azure-communication-chat to azure-json (#40936)
anuchandy Jul 10, 2024
82c2392
Cosmos - live test robustness improvements (#41068)
FabianMeiswinkel Jul 10, 2024
3301670
add the ability to override default succeeded() conditioning by param…
azure-sdk Jul 10, 2024
5927e30
Regions Contacted on Multi Region Diagnostics Fix (#41045)
tvaron3 Jul 10, 2024
4480af5
Support SNI authentication from EnvironmentCredential/DAC (#41031)
billwert Jul 10, 2024
9365f24
fix sample and make it runnable (#41102)
mssfang Jul 10, 2024
a22f49f
Add Refresh On Support (#41038)
g2vinay Jul 11, 2024
95fe86d
automation, rearrange folder (#41087)
XiaofeiCao Jul 11, 2024
3dc0e98
Update README.md
moarychan Jul 11, 2024
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
  •  
  •  
  •  
7 changes: 6 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@
# PRLabel: %Event Hubs
/sdk/eventhubs/microsoft-azure-eventhubs/ @sjkwak

# ServiceLabel: %Cognitive - Face
# PRLabel: %Cognitive - Face
/sdk/face/azure-ai-vision-face/ @leareai

# ServiceLabel: %Functions
# ServiceOwners: @ahmedelnably @fabiocav

Expand Down Expand Up @@ -864,13 +868,14 @@
# ######## Eng Sys ########

/eng/ @hallipr @weshaggard @benbp @JimSuplizio
/eng/automation/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 @hallipr @weshaggard @benbp @JimSuplizio
/eng/bomgenerator/ @vcolin7 @alzimmermsft @srnagar @jonathangiles
/eng/code-quality-reports/ @mssfang @JonathanGiles @alzimmermsft @srnagar
/eng/common/ @Azure/azure-sdk-eng
/eng/mgmt/ @weidongxu-microsoft @haolingdong-msft @XiaofeiCao @arthurma1978 @hallipr @weshaggard @benbp @JimSuplizio
/eng/spotbugs-aggregate-report/ @srnagar @JonathanGiles
/eng/versioning/ @alzimmermsft @samvaity @g2vinay @JimSuplizio
/eng/versioning/external_dependencies.txt @alzimmermsft @samvaity @g2vinay @jonathangiles @rujche @netyyyy @saragluna @moarychan
/.github/workflows/ @Azure/azure-sdk-eng

# Removing owners for these files to not require codeowner approval for changes to them given they are shared with project
/eng/versioning/version_client.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240610.2
--version 1.0.0-dev.20240708.1
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240610.2
--version 1.0.0-dev.20240708.1
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled-event-processor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: >
dotnet tool install
Azure.Sdk.Tools.GitHubEventProcessor
--version 1.0.0-dev.20240610.2
--version 1.0.0-dev.20240708.1
--add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
--global
shell: bash
Expand Down
1 change: 0 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
"sdk/appconfiguration/azure-spring-cloud-feature-management-web/**",
"sdk/appconfiguration/azure-spring-cloud-feature-management/**",
"sdk/appconfiguration/azure-spring-cloud-appconfiguration-config-web/**",
"sdk/appconfiguration/azure-data-appconfiguration/**",
"sdk/appconfiguration/azure-spring-cloud-appconfiguration-config/**",
"sdk/boms/azure-sdk-bom/**",
"sdk/boms/azure-sdk-template-bom/**",
Expand Down
4 changes: 2 additions & 2 deletions common/smoke-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs</artifactId>
<version>5.18.4</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;dependency} -->
<version>5.18.5</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs;dependency} -->
</dependency>

<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-messaging-eventhubs-checkpointstore-blob</artifactId>
<version>1.19.4</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;dependency} -->
<version>1.19.5</version> <!-- {x-version-update;com.azure:azure-messaging-eventhubs-checkpointstore-blob;dependency} -->
</dependency>

<dependency>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 29 additions & 1 deletion eng/mgmt/automation/generate.py → eng/automation/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,33 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
}


def update_changelog_version(sdk_root:str, output_folder:str, current_version:str):
pwd = os.getcwd()
try:
os.chdir(sdk_root)
changelog_file = os.path.join(output_folder, "CHANGELOG.md")
if os.path.exists(changelog_file):
with open(changelog_file, "r") as fin:
changelog_str = fin.read()
logging.info("[CHANGELOG][Version] Update changelog latest version")
version_pattern = "^## (\d+\.\d+\.\d+(?:-[\w\d\.]+)?) \((?P<date>.*?)\)"

changelog_str = re.sub(
pattern = version_pattern,
repl = f"## {current_version} (\\g<date>)",
string = changelog_str,
count = 1,
flags = re.M
)
with open(changelog_file, "w") as fout:
fout.write(changelog_str)

logging.info("[Changelog][Success] Updated changelog latest version")
else:
logging.info("[Changelog][Skip] Cannot find changelog file under the given output folder")
finally:
os.chdir(pwd)

def main():
(parser, args) = parse_args()
args = vars(args)
Expand Down Expand Up @@ -332,6 +359,7 @@ def main():
update_parameters(None)
output_folder = OUTPUT_FOLDER_FORMAT.format(service)
update_version(sdk_root, output_folder)
update_changelog_version(sdk_root, output_folder, current_version)
else:
if not args.get("readme"):
parser.print_help()
Expand Down Expand Up @@ -374,7 +402,7 @@ def main():
try:
os.chdir(sdk_root)
os.system(
"git add eng/versioning eng/mgmt pom.xml {0} {1}".format(
"git add eng/versioning eng/automation pom.xml {0} {1}".format(
CI_FILE_FORMAT.format(service), POM_FILE_FORMAT.format(service)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
repo_url: str = config["repoHttpsUrl"]
breaking: bool = False
changelog: str = ""
clean_sdk_folder_succeeded = False

succeeded, require_sdk_integration, sdk_folder, service, module = generate_typespec_project(
tsp_project, sdk_root, spec_root, head_sha, repo_url
Expand All @@ -54,6 +55,8 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
if require_sdk_integration:
update_service_files_for_new_lib(sdk_root, service, GROUP_ID, module)
update_root_pom(sdk_root, service)
if clean_sdk_folder_succeeded:
current_version = DEFAULT_VERSION

# compile
succeeded = compile_package(sdk_root, GROUP_ID, module)
Expand All @@ -74,7 +77,8 @@ def sdk_automation_typespec_project(tsp_project: str, config: dict) -> dict:
succeeded, require_sdk_integration, sdk_folder, service, module = generate_typespec_project(
tsp_project, sdk_root, spec_root, head_sha, repo_url
)
stable_version, current_version = set_or_default_version(sdk_root, GROUP_ID, module)
stable_version, _= set_or_default_version(sdk_root, GROUP_ID, module)
current_version = DEFAULT_VERSION
if require_sdk_integration:
update_service_files_for_new_lib(sdk_root, service, GROUP_ID, module)
update_root_pom(sdk_root, service)
Expand Down
2 changes: 1 addition & 1 deletion eng/mgmt/automation/generate_utils.py → eng/automation/generate_utils.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def generate_changelog_and_breaking_change(
) -> Tuple[bool, str]:
logging.info("[CHANGELOG] changelog jar: {0} -> {1}".format(old_jar, new_jar))
stdout = subprocess.run(
'mvn --no-transfer-progress clean compile exec:java -q -f {0}/eng/mgmt/changelog/pom.xml -DOLD_JAR="{1}" -DNEW_JAR="{2}"'.format(
'mvn --no-transfer-progress clean compile exec:java -q -f {0}/eng/automation/changelog/pom.xml -DOLD_JAR="{1}" -DNEW_JAR="{2}"'.format(
sdk_root, old_jar, new_jar
),
stdout=subprocess.PIPE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ jobs:
- bash: |
java -version
set -x
./eng/mgmt/automation/generate.py --tsp-config "$(TSP_CONFIG)" --version "$(VERSION)" --auto-commit-external-change --user-name "azure-sdk" --user-email "[email protected]"
./eng/automation/generate.py --tsp-config "$(TSP_CONFIG)" --version "$(VERSION)" --auto-commit-external-change --user-name "azure-sdk" --user-email "[email protected]"
displayName: Generation from TypeSpec
condition: ${{ eq(parameters.RELEASE_TYPE, 'TypeSpec') }}

- bash: |
java -version
set -x
./eng/mgmt/automation/generate.py --readme "$(README)" --tag "$(TAG)" --autorest-options="$(AUTOREST_OPTIONS)" --service "$(SERVICE)" --version "$(VERSION)" --suffix "$(SUFFIX)" --auto-commit-external-change --user-name "azure-sdk" --user-email "[email protected]"
./eng/automation/generate.py --readme "$(README)" --tag "$(TAG)" --autorest-options="$(AUTOREST_OPTIONS)" --service "$(SERVICE)" --version "$(VERSION)" --suffix "$(SUFFIX)" --auto-commit-external-change --user-name "azure-sdk" --user-email "[email protected]"
displayName: Generation from Swagger
condition: ${{ eq(parameters.RELEASE_TYPE, 'Swagger') }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ steps:
- bash: |
export PATH=$JAVA_HOME_11_X64/bin:$PATH
java -version
./eng/mgmt/automation/generate_data.py --readme="$(README)" --spec-readme="$(SPEC_README)" --input-file="$(INPUT_FILE)" --service="$(SERVICE)" --module="$(MODULE)" --security="$(SECURITY)" --security-scopes="$(SECURITY_SCOPES)" --title="$(TITLE)"
./eng/automation/generate_data.py --readme="$(README)" --spec-readme="$(SPEC_README)" --input-file="$(INPUT_FILE)" --service="$(SERVICE)" --module="$(MODULE)" --security="$(SECURITY)" --security-scopes="$(SECURITY_SCOPES)" --title="$(TITLE)"
displayName: Generation

- template: /eng/common/pipelines/templates/steps/create-pull-request.yml
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions eng/mgmt/automation/parameters.py → eng/automation/parameters.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
MAVEN_HOST = "https://repo1.maven.org/maven2"
MAVEN_URL = MAVEN_HOST + "/{group_id}/{artifact_id}/{version}/{artifact_id}-{version}.jar"

SDK_ROOT = "../../../" # related to file dir
SDK_ROOT = "../../" # related to file dir
AUTOREST_CORE_VERSION = "3.9.7"
AUTOREST_JAVA = "@autorest/[email protected].32"
AUTOREST_JAVA = "@autorest/[email protected].34"
DEFAULT_VERSION = "1.0.0-beta.1"
GROUP_ID = "com.azure.resourcemanager"
API_SPECS_FILE = "api-specs.yaml"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def main():
try:
os.chdir(sdk_root)
os.system(
"git add eng/versioning eng/mgmt pom.xml {0} {1}".format(
"git add eng/versioning eng/automation pom.xml {0} {1}".format(
CI_FILE_FORMAT.format(service), POM_FILE_FORMAT.format(service)
)
)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,24 @@
"$schema": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/documentation/sdkautomation/SwaggerToSdkConfigSchema.json",
"initOptions": {
"initScript": {
"path": "./eng/mgmt/automation/init.sh",
"path": "./eng/automation/init.sh",
"envs": [
"JAVA_HOME_11_X64"
]
}
},
"generateOptions": {
"generateScript": {
"path": "./eng/mgmt/automation/generate.py",
"path": "./eng/automation/generate.py",
"logPrefix": "Java-Sdk-Automation",
"stderr": {
"showInComment": "(\\[GENERATE\\]\\[Error\\]|\\[COMPILE\\] Maven build fail|ExternalError).*",
"scriptError": "(\\[GENERATE\\]\\[Error\\]|\\[COMPILE\\] Maven build fail).*"
"showInComment": "(\\[GENERATE\\]\\[Error\\]|\\[COMPILE\\] Maven build fail|ExternalError).*"
}
}
},
"artifactOptions": {
"installInstructionScript": {
"path": "./eng/mgmt/automation/install_instruction.py"
"path": "./eng/automation/install_instruction.py"
}
},
"advancedOptions": {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,13 @@
"old" : ".*? com\\.azure\\.communication\\.callautomation\\.models.*",
"new" : ".*? com\\.azure\\.communication\\.callautomation\\.models.*",
"justification": "Migration to azure-json"
},
{
"regex": true,
"code" : "java\\.annotation\\.removed",
"old" : ".*? com\\.azure\\.communication\\.chat\\.models.*",
"new" : ".*? com\\.azure\\.communication\\.chat\\.models.*",
"justification": "Migration to azure-json"
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions eng/codegen_to_sdk_config.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"init": {
"initScript": {
"path": "./eng/mgmt/automation/sdk_init.sh"
"path": "./eng/automation/sdk_init.sh"
}
},
"generateAndBuild": {
"generateAndBuildScript": {
"path": "./eng/mgmt/automation/sdk_generate.py",
"path": "./eng/automation/sdk_generate.py",
"script": "python3"
}
}
Expand Down
Loading
Loading